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.

TMS320F280039C: binary format (.bin) output file with EABI files support

Part Number: TMS320F280039C
Other Parts Discussed in Thread: C2000WARE

Hi Champ,

I am asking for my customer. 

From below html, sector 6.1.3.4. Pre and Post Build Steps, it tells how to convert the executable (.out) to binary format (.bin) with following command.

https://software-dl.ti.com/ccs/esd/documents/users_guide/ccs_project-management.html

In the past, I had successfully produced binary format (.bin) in such device and previous CCS version, couldn't exactly remember which PN, which output format (COFF/EABI) and specific CCS version. Anyway, with following command it was correct to have binary format (.bin) output.

Recently, my customer found out there was two scenario to have different errors with selecting EABI output format on F28003x, to generate the binary format (.bin) output file with the two following commands, the difference is directory separator / \ , highlighted in bold command as below. They are using CCS12.5 version.

"${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "C:/ti/ccs1250/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/ofd2000" "${CG_TOOL_ROOT}/bin/hex2000" "${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin" (command 1)

"${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "C:\ti\ccs1250\ccs\tools\compiler\ti-cgt-c2000_22.6.1.LTS\bin\ofd2000" "${CG_TOOL_ROOT}/bin/hex2000" "${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin" (command 2)

I have also duplicated the issue, and got the different error message with two commands in console window in both CCS12.5 and 12.4 version as below snippet.

  (command 1 error : makefile:160: recipe for target 'post-build' failed 'C:' is not recognized as an internal or external command, operable program or batch file.) 

  (command 2 error : C28x files built with --abi=eabi are not supported)

Dig into tiobj2bin.bat file, it was found that it showed that C2000 EABI files aren't supported as below snippet.

So, I have tried to select COFF output format file on F28004x (support both output format), while the error message in Console window was still the same with selecting COFF output format file.

So, here are few questions needed the expert's comment : 

(1). To generate the binary output file, may I reconfirm is it only need to add the following command in the post-build step, correct ? Which command is correct ? 

(2). The following command "${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/ofd2000" "${CG_TOOL_ROOT}/bin/hex2000" "${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin" , does it restrict either output format (COFF/EABI) ? 

(3). The tiobj2bin.bat file in ccs1250\ccs\utils\tiobj2bin, could the expert confirm it do not support C2000 EABI output format ? 

(4). From the error got from the console, customer is afraid of is there always a risk when using tiobj2bin to generate binary output file in EABI format. In the previous old version CCS, is the error be checked ? since customer has a concern the error which wasn't be checked and reported in previous version CCS.

(5). If it is selected the EABI format, what is the correct way to generate the binary output file ? how 

Thanks and regards,

Johnny