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.

GNU compiler in CCSv6

Hi,

I can't seem to get the XDC tools to compile with the GNU compiler.

The XDC tool searches for a file "c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/bin/cl470" which doesn't exist.

What's wrong?

EDIT:

I found this in  xxx_pem3.cfg  :

      cc: {             cmd: "cl470%20-c"         },        

asm: {             cmd: "cl470%20-c"         },        

 

So here it gets the link to cl470 for the compiler. Where does it come from?

 

  • What is your goal here? Are you trying to build a RTSC project (that invokes XDCtools first) with the GNU compiler? Do you have the Linaro GNU compiler selected as the compiler in your project properties?

    Which device/target are you building for?

    Mallekot said:

    The XDC tool searches for a file "c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_7-2013q3/bin/cl470" which doesn't exist.

    That looks like it is combining the path to the GCC compiler with the executable name of the TI compiler (cl470) which is not right.

    Can you provide more details on how you created this project?

  • I have a normal project with TIRTOS which works fine. Now I need to implement a function which uses the 'extended assembler function' from GNU : assembler with semicolons to transfert data from and to C-variables. TI compiler does not support this feature so I would like to simply compile this working project with the GNU compiler instead of the TI compiler.

    I have included some screenshots : the first two of the settings of the original project, no problems here.

    The 4 next screenshots of the same project, trying to compile under GNU. The settings screen warns me about having to set something manually, but I'm searching for over a day now, getting frustrated and trying so much that I fear i'm getting in an even deeper sh*t. It looks like it's missing or does not seem to know the processor and/or platform, but I'm out of ideas and internet links trying to solve this mystery.

     

     

  • When you switch from the TI to GNU tools, the RTSC "Target" field changes from ti.targets.arm.elf.M3 to gnu.targets.arm.M3 as you can see in the screenshots. These targets come as part of the BIOS 6.4x product that is included in TI-RTOS. Now it looks like you only have TI-RTOS for C2000 installed, and the C2000 package does not include the GNU targets. The GNU Targets are included in TI-RTOS for TivaC (Cortex M3/M4) though, so I think you should be able to move ahead if you install and enable TI-RTOS for TivaC. You can install this through the CCSv6 App Center.

    Please give this a try and let us know how it goes.

  • I installed TI-RTOS vor TivaC. Now I get the error : device not supported?

    The compiler then lists all M4 devices? Why not the M3?

     

  • I apologize, but I think I may have been incorrect in the information I provided earlier. It looks like there might be no RTSC support for GNU for the Concerto devices. They do exist for Cortex M4 (LM4F and TivaC devices) and a quick look at the files in the TI-RTOS packages led me to believe that it supported the Cortex M3 as well but it looks like it does not. I was not able to get a RTSC program for F28M36 to build with the GNU compiler either.

    The folks who can answer this with certainty though would be the experts who watch the TI-RTOS forum. I would suggest you post a new question to that forum asking if there is GNU support for RTSC projects for the Cortex M3 in Concerto devcies. I would move this thread there myself, but it may get overlooked due to 1) there have already been a few interactions so it may not come up at the top of their list, and 2) the real underlying question may be missed due to the already ongoing discussions. So, if you wouldn't mind, please go ahead and post a new question to the TI-RTOS forum and sorry again about the confusion.

  • OK, I will. Thanks for the effort.