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.

Using SDP470 with CCS4

I am trying to use sdp470, but keep getting the following error:  >> fatal error: this application only supports COFF version 2

I have tried a couple different compiler and linker settings but haven't found a magic combination.

Anyone used this utility with code built using CCS4?

 

 

 

  • Larry,

    When creating a project for Stellaris CCS defaults to using a different ABI, EABI (ELF ABI).  You will need to go into the Runtime Model options in the compiler build settings.  Change it to "Use the COFF object file format" and also change the "Application binary interface" to ti_arm9_abi instead of eabi.

    In the linker options you will need to change the runtime support library that is automatically included from "rtsv7M3_T_le_eabi.lib" to "rtsv7M3_T_le_tiarm9.lib"

    The "--retain=g_pfnVectors" line in the linker command file is also going to cause problems as that option won't work for COFF.  You have to get rid of that line.

    Warning: Switching ABI is a pretty big deal as if you change ABI you have to change it for everything, i.e. all other libraries you are using have to be using the same ABI.  I think you are going to run into trouble pretty quickly as all the stellarisware examples will be using EABI.

    Moving this to the compiler forum to see if anyone has any other ideas.

     

    John