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/TMS570LC4357: How to install Cross GCC compiler and link it in ccs 8.3.0 for ANSI C program

Part Number: TMS570LC4357


Tool/software: Code Composer Studio

Hello,

I want to run an ANSI C program. I am using ccs8 and windows.

Where can I download Cross GCC?

How can I link it to the project?

Best,

Soundes

  • Is your goal to use the GCC cross compiler to build a program to run on the TMS570LC4357?

    CCS comes included with GNU compiler toolchain (it is installed into the directory \ccsv8\tools\compiler\gcc-arm-none-eabi-7-2017-q4-major-win32 ) which you can select as the Compiler Version when creating a CCS project. However, note that GCC projects for this device will require additional manual set up for project initialization (like startup files, linker command files etc) that is up to the user to do. Also as per this post, it appears that support for TMS570 big-endian is not available out of the box in the GCC toolchain. It requires rebuild of the toolchain and perhaps other details, so that is also something you would need to try to address on your own as well. 

  • Hello,
    Yeah I found the path to the compiler. But when compiling a simple hello world example I have the same issue:

    Description Resource Path Location Type
    Program "arm-none-eabi-gccg++" not found in PATH C project Project Properties, C++ Preprocessor Include.../Providers, [CDT Cross GCC Built-in Compiler Settings] options C/C++ Scanner Discovery Problem

    I do not need the c program to be run on device, I need just to run a very ordinary program.

    Best regards,
    Soundes.
  • There are different types of projects that you can create using CCS (see this link for more details), however it is really only the CCS project type designed to run on TI embedded devices that is fully enabled and supported by TI. For other project types like Eclipse C/C++ projects, although we include a GCC toolchain, we leave it up to the user to add the necessary compile options, set up files, and to configure the project for it to build successfully.

    You may use this page as a reference if you are creating an Eclipse C/C++ project. Note that the page is quite old, so some dialogs may look different but should give you a general idea of how to proceed. Also, instead of needing to download a GCC toolchain you can use the one included with CCS.