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.

CCS/PROCESSOR-SDK-AM57X: Debugging Linux executable

Part Number: PROCESSOR-SDK-AM57X
Other Parts Discussed in Thread: AM5728

Tool/software: Code Composer Studio

Dear TI/code composer/Linux,

     I am developing on the AM5728 and apologize for the simplicity of this question but I have no Linux background.  We are using the software you supplied for running the la pack libraries (LINALG).  We have it running on the board and it appears to be working.  The question I have is:  Is there a way to run code composer so that I have access to its debug facilities.  So we are running the eig function in the test directory supplied by you (TI) on the Linux running on the processor.  Is there any way I can 'execute' the eig test function running through code composer, and single step through the code?  I hope you understand my question.  Thanks.

  • Hi Rob,
    CCS can be used for both Linux application debug and low-level kernel JTAG debug. More details on the level of support is described in the below video:
    dev.ti.com/.../

    Thanks
    ki
  • Is this reference outdated?  The main question is, can I setup a toolchain in code composer so that I can compile an application for Linux in windows through code composer.

  • It is a but outdated in the sense that more current versions of CCS comes with GCC and standard CCS projects support GCC. So if you are fine with using the GCC toolchain that comes with CCS, then you work with standard CCS projects.
  • Forgive me if this is a silly question, I'm not a Linux person and I'm being forced into a position to try and resolve this.

    When I go new|CCSProject, then look at the available choices of compilers installed, I see two:

    GNUv6.3.1 (linaro) and GNU V4.9.3 (linaro) available.

    Now when looking through reading material, it appears that these compilers generate a 'bare metal' output? as opposed to however you say... 'an *.exe' equivalent in Linux terms...

    Where do you explain or where do I find a listing for the GNU compiler that shows any switches or options to tell it I want to compile for a given processor, say the Cortex-A15 on your AM5728 but I want an executable output since the Cortex-A15 will have a Linux OS on it.

    I ideally want to do this on windows, and then just copy the output to the board with the AM5728 on it, and run it there.

  • Hi Rob,
    I am going to move this thread to the Sitara forum. The experts there know how best to get you started for your device.

    Thanks
    ki
  • Rob,

    The following documentation should help you create a CCS project and get it set up to cross compile a simple application. The rest of the guide will give you some options on transferring the executable to Linux:

    processors.wiki.ti.com/.../Processor_SDK_Linux_Training:_Hands_on_with_the_Linux_SDK
  • Thanks,

    I have gotten cross compiling from a Linux VM on a PC to work following these instructions, do you supply the necessary toolchain GCC compiler etc  for windows?  Which version do I  require for windows?  ie:  when I point to the cross compiler in step 8, where do I point it to when I'm running under windows, and where do I get the toolchain to install for windows?  Or is it not possible under windows?

    Thanks.

  • Rob,

    The SDK provides a number of cross-compiled libraries in linux-devkit that go beyond just toolchain. We do not provide these nor the toolchain for windows. Your cross-compiling environment using a VM is probably the best path.