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.

Compiler/TMS570LS3137: Create bin file from hex or elf file

Part Number: TMS570LS3137

Tool/software: TI C/C++ Compiler

After reading the documentation I am not sure how the bin file is generated with ARM CGT compiler.

Is the source file the *.elf or the *.hex file? It seems to work with both, or at lestI get for both version similar bin file:

  • C:\ti\ccs910\ccs\utils\tiobj2bin\tiobj2bin.bat out.elf out.bin C:\ti\ccs910\ccs\tools\compiler\ti-cgt-arm_18.12.2.LTS\bin\armofd.exe C:\ti\ccs910\ccs\tools\compiler\ti-cgt-arm_18.12.2.LTS\bin\armhex.exe C:\ti\ccs910\ccs\utils\tiobj2bin\mkhex4bin.exe
  • C:\ti\ccs910\ccs\utils\tiobj2bin\tiobj2bin.bat out.hex out.bin C:\ti\ccs910\ccs\tools\compiler\ti-cgt-arm_18.12.2.LTS\bin\armofd.exe C:\ti\ccs910\ccs\tools\compiler\ti-cgt-arm_18.12.2.LTS\bin\armhex.exe C:\ti\ccs910\ccs\utils\tiobj2bin\mkhex4bin.exe

Are both versions okay to use and correct?

Best regards,

Stefan

  • Please look at the linker invocation.  Find the file named with the option --output_file (or short equivalent -o).  This is the final executable object file created by the linker.  This same file is what tiobj2bin.bat expects as the first parameter.

    A confusing detail in this case ...  The most common extension for this file .out.  Yet, in your examples, you use out as the base file name.

    Thanks and regards,

    -George

  • Thanks!

    Regarding the confusing detail: In our build tool, we name the binary {application-name}.elf instead of {application-name}.out.