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.

CCS6 GCC compiler build arm ccs project's cmd file failed

Hi,

I use ccs6 to create a arm ccs project, when I build the project with a cmd file like dsp, the compiler output error :

d:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/bin/ld.exe:../t4.cmd: file format not recognized; treating as linker script
d:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/bin/ld.exe:../t4.cmd:38: syntax error
collect2.exe: error: ld returned 1 exit status
gmake: *** [t4.out] Error 1
gmake: Target `all' not remade because of errors

I have a post in e2e multicore forum, here is the link:

http://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/p/407946/1446572#1446572

please help me to solve this problem, I have been troubled for several days. Thanks.

Best Regards,

Si

  • si cheng said:
    I use ccs6 to create a arm ccs project, when I build the project with a cmd file like dsp, the compiler output error :

    The linker command files used by GCC use a different syntax than the TI linker command files. You would need to adapt your linker command file to work with GCC. The Linker manual ld.pdf which can be found in the gcc installation directory in CCS ( C:\ti\ccsv6\tools\compiler\gcc-arm-none-eabi-4_7-2013q3\share\doc\gcc-arm-none-eabi\pdf) has details about the linker scripts and their syntax. There are also a few example linker scripts in C:\ti\ccsv6\tools\compiler\gcc-arm-none-eabi-4_7-2013q3\share\gcc-arm-none-eabi\samples\ldscripts which you can use for reference.

    When you have the linker script ready, remove the reference to t4.cmd from your Project Properties. Then add the .ld linker script at Project Properties->Build->GNU Linker->Libraries, under the -T option.

  • Hi AartiG,

    Thanks for you reply. I follow your way to add the gcc.ld to my project(remove my .cmd),and build there is error that can't find  Reset_Handler, I find it in startup file,  I am not sure whether I need to add the startup file to my project,  if I add it to my project, it also have some error; if I don't use startup file and remove the  ENTRY(Reset_Handler) from gcc.ld, my project can build ok, but load failed. Here is my test project,  can you help me to solve this problem running on bare A15 core with no boot.  And Need I modify the MEMORY  wtih MSMC or DDR replace the FLASH and RAM?

    t5.rar

    Best Regards,

    Si

  • forgot to tell you that the console output is CortexA15_1: AutoRun: Target not run as the symbol "main" is not defined,
    I find the main symbol in map file, but also can't find it.

    you can have a try with my project.

    Regards,
    Si
  • si cheng said:
    I follow your way to add the gcc.ld to my project(remove my .cmd),and build there is error that can't find  Reset_Handler, I find it in startup file,  I am not sure whether I need to add the startup file to my project,

    si cheng said:
    And Need I modify the MEMORY  wtih MSMC or DDR replace the FLASH and RAM?

    These questions will be better answered in the device forum as they are more familiar with which startup file and linker script is appropriate for the device you are working with. I would suggest posting these questions to the thread you have already started in the Multicore forum.