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.

OMAP-L138: Can I build a COFF executable from the McASP project from the pdk_omap library?

Part Number: OMAP-L138

Hi Sahin, currently, I have built an ELF executable using the TI v8.3.5 compiler on CCSv9. Do the scripts (pdkCreateEnv.bat) create an appropriate project if I specify the compiler version to v7.4.13 that allows me to build a COFF executable?

Please let me know so that I can give this a shot.

Mahesh

  • Hi, Mahesh,

    Sahin is out this week, but will be back on Monday. I'll see if someone else can help you on this one before Sahin is back.

    Rex

  • Hi, Mahesh,

    Actually, I took a look at the CGT 8.x User's Guide, it says:

    Output Files The following type of output file is created by the compiler: • ELF object files Executable and Linking Format (ELF) enables supporting modern language features like early template instantiation and exporting inline functions. ELF is part of the System V Application Binary Interface (ABI). The ELF format used for C6000 is extended by the C6000 Embedded Application Binary Interface (EABI), which is documented in SPRAB89. COFF object files are not supported in v8.0 and later versions of the TI Code Generation Tools. If you would like to produce COFF output files, please use v7.4 of the Code Generation Tools and refer to SPRU186 for documentation.

    Does this answer your question?

    Rex

  • Hi Rex, unfortunately, that does not answer my question.

    I created the project using pdkCreateEnv.bat script and if I try to switch the compiler from 8.3.5 to 7.4.13 and specify the COFF format the project does not build. 

    So, my question is if I set the compiler version to 7.4.13 in pdkCreateEnv.bat will it create a project that will build with 7.4.13?

    Thanks.

    Mahesh

  • Mahesh,

    Can you please explain the need to build DSP binary in COFF binary format ? the reason the project won`t build is that the project links to  CSL, board and driver libraries into the project that are built using the TI CGT 8.3x which only supports ELF binaries.

    If you want to build the project to output COFF binary, you need to build the entire PDK stack using COFF binaries and CGT 7.4.x.. Another thing that you will need to confirm is if TI RTOS/BIOS package supports COFF binaries. It is non-trivial to build the entire PRocessor SDK RTOS stack using COFF so pllease provide more details on your usecase.

    Regards,

    Rahul