This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SK-AM62: Error when trying to create a new target in CCS (under Linux)

Part Number: SK-AM62

Hello all,

I have installed the CCS version 12.2.0.00009 (on my Linux PC with Ubuntu 18.04.6 LTS) following the instructions under link

https://software-dl.ti.com/mcu-plus-sdk/esd/AM62X/08_06_00_18/exports/docs/api_guide_am62x/CCS_SETUP_PAGE.html

When trying to do the "Create Target Configuration" step it does not let me pick the 'AM62x_SK_EVM' under "Board or Device"

     

Not sure what could be the problem here or how I can overcome this ... 

I'm using Linux SDK "ti-processor-sdk-linux-am62xx-evm-08.06.00.42" This is what I have installed on my Ubuntu PC.

I would also like to be able to load and run some simple "Hello World" examples on my SK-AM62 EVM, but it seems that under this SDK there are no such simple example applications.

Please try to direct me to Prashant Shivhare. He is the one who helped be before.

Thank you very much.

Dan

  • Hello Dan,

    Please refer to the below response to resolve the CCS error

    https://e2e.ti.com/.../sk-am62-sk-am62-not-getting-connected-to-ccs/4522336#4522336

    I would also like to be able to load and run some simple "Hello World" examples on my SK-AM62 EVM, but it seems that under this SDK there are no such simple example applications.

    Please note the Processor SDK is aimed towards using A53 core to run Linux. If you are keen on running Hello World on A53 core under Linux, please refer to the following Linux Academy guide

    https://dev.ti.com/tirex/explore/node?node=A__AHboa0Lb4CnJkHPouAdFaA__linux_academy_am62x__XaWts8R__LATEST

    Regards,

    Prashant

  • Hello again Prashant,

    Yes, the problem was solved just by changing the "am62x" folder name to "AM62x". After doing that I was able to successfully create the new target.

    Regarding the "hello world" simple application ...

    I was thinking to import a simple "hello_world" application in CCS or maybe create a new one and build it under CCS just like on the Windows side when using the already existing applications under SDK "mcu_plus_sdk_am62x_08_06_00_18". Is this possible? The steps under link

    https://dev.ti.com/tirex/explore/node?node=A__AHboa0Lb4CnJkHPouAdFaA__linux_academy_am62x__XaWts8R__LATEST

    they are not creating and building the "hello_world" application / program by using CCS... Where should I create that simple C program to print 'Hello world'?

    Where should that 'hello_world.c' file be placed? I was thinking of a new project under CCS maybe ... Sorry, this is quite confusing for me ...

    Thanks

    Dan

  • Hello Dan,

    Please note the Hello World example from PSDK & MCU+ SDK are very different. The former example runs on Linux while the latter runs on barematel. I believe what you are looking for is to run the same Hello World example for M4F core from MCU+ SDK that you successfully ran while working with MCU+ SDK on Windows.

    If so, yes you can use the same steps & setup to flash the Hello World examle for M4F core from MCU+ SDK on Linux & run the same. More specifically, the steps carried out in the below two threads can be followed to do the same from Linux.

    https://e2e.ti.com/.../sk-am62-flash-an-example-application---not-working

    https://e2e.ti.com/.../sk-am62-creating-a-first-hello-world-application-and-run-it-on-the-evm

    Regards,

    Prashant

  • Hello Prashant,

    You mean that I should be able to load and run examples under SDK "mcu_plus_sdk_am62x_08_06_00_18" (for Linux). 

    I'm not able to import them in the CCS workspace on the Linux side, like I was able to do it on the Windows. Should this be possible?

    I need to be able to run 'hello world' examples on A53 core under Linux. Not M4F with FreeRTOS. That was just a starting point for me since I was not successful on the Linux side. Our team aims to develop application under Linux OS with the TI solution. I'm just investigating and trying to make some first steps in this direction.

    Thank you.

    Dan

  • Hi Dan,

    Using the MCU+ SDK Linux installer, which is circled in the shared image, you should be able to install MCU+ SDK on Linux. Afterwards, you can import & build the examples from MCU+ SDK in CCS and run the same. However, please note MCU+ SDK support is limited to only R5F & M4F cores.

    If you are keen on developing application for Linux on A53, PSDK is the way to go. For this SDK, the development flow is kind of different. First, you can't use CCS to load & run the examples on A53 core which is already running Linux. This is because when the CCS tries to load & run the example on A53 core, it will reset the core because of which Linux will go off.

    So, the development flow would be to use any IDE to develop your code and build. Afterwards, you can copy the binaries to the board already running Linux and then run the binaries on the board itself from the terminal. This is the flow used in the previously shared Linux Academy guide on running Hello World example.

    Regards,

    Prashant

  • Hello Prashant,

    This is what I need "copy the binaries to the board already running Linux and then run the binaries on the board itself from the terminal". 

    So I should start doing (on the Linux PC) everything that is described starting from here

    But, I already tried this and I remember I got stuck at the 3.7.2 Flash Linux to eMMC step. After doing what is described at step 3.7.2.1 Flash U-Boot to e-MMC, I was stuck at 3.7.2.2 when creating that "ext4 partition" in the "user partition"

    - fdisk /dev/mmcblk0

    - mkfs.ext4 /dev/mmcblk0p1

    Also the "Copy the Linux image from the host to the EVM" indication is not very clear... Which image is this referring to? I have the "tisdk-default-image-am62xx-evm.wic.xz". I have tried this some time ago with a USB stick, but the transfer from USB stick to EVM I was not able to do. See here the e-mail sent by me at that time to TI team. 

    Developing Linux on TI SK-AM62 seems to be very difficult for me at this moment. But this I what I need to do.

    Thank you for your support.

    Dan 

  • Hello Dan,

    To run the Hello World example, you don't need to perform the steps of flashing Linux to eMMC. You already have a Linux running on the board from the SD card mounted on it. So, you can directly follow the Hello World example guide.

    The steps to flash Linux to eMMC are only required if you want to boot Linux from eMMC instead of SD card. It is highly recommended to use SD card for the initial phase of getting started with the board. If at later stage, it is required that the Linux must boot from eMMC then those steps can be followed.

    Regards,

    Prashant

  • Hello Prashant,

    Thanks for clarifying this. So I will move directly to 3.8 First "Hello World" Program

    Regarding the indication to "source the script" that should "set up the development environment including the toolchain paths on the host"

    I have done this on the Linux PC (development PC with Ubuntu), but I'm not sure what to do next. See below picture

    where should I create that "simple C program to print "Hello world" and where should I place this "hello_world.c" file?

    It's not very clear how to do this, and as I have said I'm not very experienced with Linux development.

    Thank you.

    Dan

  • Hello Dan,

    You can create the C source file anywhere you want. After creating the source file, you just need to run the below build command (also mentioned in the LInux Academy guide) from the directory of the source file.

    ${CC} hello_world.c -o hello_world

    where ${CC} will evaluate to the compiler toolchain which will build the C source file & generate the executable for the target architecture. Afterwards, you can copy the executable onto the board and run the same.

    Regards,

    Prashant

  • Hello again,

    I think I have managed to create the 'hello_world' program 

    after that I think I have managed to build the C source file and generate the executable. This I have transferred to the SK-AM62 EVM

    On the SK-AM62 EVM (target) I'm able to see 'hello_world' in /home/root, but when trying to run it (just by typing 'hello_world') I get the "command not found" error. Not sure why... I must have missed something. 

    Thank you.

    Dan

  • Hello Dan,

    The Hello World executable can be run with the following command

    ./hello_world

    This is because we have to tell Linux where the hello_world executable is present. The dot tells Linux to find the file in the current working directory. 

    Regards,

    Prashant

  • Yes. 

    I'm now able to successfully run the 'hello_world' executable on my SK-AM62 EVM

    Thank you very much for your support Prashant.

    Dan

  • Happy to help! Have a good day, Dan.