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.

Incompatible object files error when building 16kb user experience demo for MSP-EXP430F5529

I recently installed CCS version 6.2.0.00050 and purchased an MSP-EXP430F5529 demonstration board.  I loaded the "MSP-EXP430F5529 User Experience_16KB" firmware into CCS.  I understand that this is the firmware that runs on the demonstration board when it ships from the factory.

When I try to build the firmware, I get this error:

"C:\\Users\\ENG3~1\\AppData\\Local\\Temp\\913763", line 26: fatal error: object
files have incompatible formats
("C:/ti/msp430/MSP-EXP430F5529_UE_1_31_00_00/src/CCS_Code_Size_Limited/MSP-E
XP430F5529_UE.lib<HAL_UCS.obj>" = TI-COFF, "./UserExperience.obj" = ELF)

MSP-EXP430F5529_UE.lib is a library included with the firmware that appears to be in the object file format known as TI-COFF.  UserExperience.c is a source file within the firmware that compiles in to an ELF format object file (even though the project (general) settings configure output files to be 'legacy COFF'.

From what I have read, I understand that TI is making a gradual transition from COFF to ELF.  I believe I need either

A) the MSP-EXP430F5529_UE.lib in ELF format (to match the output of the latest CCS build tools) - but I haven't been able to find this and haven't been able to find the source files for this library to build into ELF object files myself    or

B) a means of compiling the source files of this project into COFF format (to match the incompatible library file).  I haven't been able to find a way to get the current CCS version to compile differently.  There is discussion online of loading older build tools (v4.4) to generate COFF object files, but I can't seem to find these or find out how to get the current CCS to use them.

Clearly updating the library file to ELF format makes more sense than rolling back to older versions (and ongoing support headaches this would yield).  Does anyone know where I can find the library file in ELF format or its source files - or another solution to this problem?

  • This project was built with an old compiler version (TI v3.3.2 legacy COFF) that is incompatible with newer compilers that only support eabi (ELF). To fix this issue, you must go inside of CCS to Help -> Install New Software -> Work with: Code Generation Tools Updates -> TI Compiler Updates, any MSP430 Compiler Tools v4 should support the legacy COFF output format and build the code properly.

    Regards,
    Ryan
  • Thanks Ryan.  This worked perfectly to get the earlier compiler working under CCS 6 (and generating object files all with the matching, older COFF format). 

    Much appreciated,

    Rob

**Attention** This is a public forum