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/TMS320F280049: Will C2000 C/C++ CODE GENERATION TOOLS 18.9.0.STS support generating eabi (ELF) output format on F280049

Part Number: TMS320F280049
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Hi experts,

I'd like to know if C2000 C/C++ CODE GENERATION TOOLS 18.9.0.STS support generating eabi (ELF) output format on F280049?

I get errors from using this configuration. The error message reads:

"C:/ti/c2000/C2000Ware_1_00_06_00/libraries/calibration/hrpwm/f2837xd/lib/SF
   O_v8_fpu_lib_build_c28.lib" contains TI-COFF object files which are
   incompatible with the ELF output file.  Ensure you are using the proper
   library.
fatal error #16000: object files have incompatible formats
   ("C:/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.9.0.STS/lib/rts2800_fpu32.lib<b
   oot28.asm.obj>" = TI-COFF, "./F2837xD_CodeStartBranch.obj" = ELF)
 
>> Compilation failure
makefile:153: recipe for target 'hrpwm_deadband_sfo_cpu01.out' failed
gmake: *** [hrpwm_deadband_sfo_cpu01.out] Error 1
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

Thanks

Sheldon

  • Sheldon He said:
    I'd like to know if C2000 C/C++ CODE GENERATION TOOLS 18.9.0.STS support generating eabi (ELF) output format on F280049?

    Yes.  But, as you have discovered, there is more to it than that.

    C2000Ware does not support EABI yet.  I understand such support is planned, but I don't know any details.  At the present time, if your program uses C2000Ware, then you cannot use EABI.

    This error ...

    Sheldon He said:
    fatal error #16000: object files have incompatible formats ("C:/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.9.0.STS/lib/rts2800_fpu32.lib<b oot28.asm.obj>" = TI-COFF, "./F2837xD_CodeStartBranch.obj" = ELF)

    ... means your link command explicitly refers to the specific compiler RTS library rts28000_fpu32.lib.  Replace that with libc.a, then you can rely on the linker to automatically choose the correct RTS library.  In this case, the correct library is rts2800_fpu32_eabi.lib.  

    Thanks and regards,

    -George