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/TMS570LS3137: Post build command that can generate both .BIN and .HEX file for TI TMS570LS3137

Part Number: TMS570LS3137


Tool/software: Code Composer Studio

I am using following commands in CCS 5.5 IDE post build

Right click the project -> Show Build Settings -> Build -> Steps. the in the box for Post-build steps (in one line)

tiobj2bin and mkhex4bin files are in respective path.

 

To Generate .HEX file following command is working :

"${CG_TOOL_HEX}" -order MS --memwidth=8 --romwidth=8 --intel -o "${ProjName}.hex" "${ProjName}.out" 

I am using following command To Generate .BIN that is not working , it is not generating .bin file.

"${CCE_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/armofd" "${CG_TOOL_ROOT}/bin/armhex" "${CCE_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin"

Error displayed after clicking cancel is as follows :

'Finished building target: SIL2PSP_Extension_TMS570LS3137.out'
' '
'"" -order MS --memwidth=8 --romwidth=8 --intel -o ".hex" ".out"'
"C:/ti/ccsv5\utils\tiobj2bin\tiobj2bin" "SIL2PSP_Extension_TMS570LS3137.out" "SIL2PSP_Extension_TMS570LS3137.bin" "C:/ti/ccsv5/tools/compiler/arm_5.1.5\bin\armofd" "C:/ti/ccsv5/tools/compiler/arm_5.1.5\bin\armhex" "C:/ti/ccsv5\utils\tiobj2bin\mkhex4bin"

INTERNAL ERROR: C:/ti/ccsv5/tools/compiler/arm_5.1.5\bin\armhex experienced a fatal internal fault

This is a serious problem. Please contact Customer
Support with this message and a copy of the input file
and help us to continue to make the tools more robust.

gmake: *** Deleting file `SIL2PSP_Extension_TMS570LS3137.out'
gmake: unlink: SIL2PSP_Extension_TMS570LS3137.out: Permission denied
Terminate batch job (Y/N)?
gmake: *** [SIL2PSP_Extension_TMS570LS3137.out] Error 130

**** Build of configuration Debug for project SIL2PSP_Extension_TMS570LS3137 ****

I want to  include the entire command in one step in post build box. 

Do we have common Post build command that can generate both .BIN and .HEX file for TI TMS570LS3137 in one step

  • CHANDRE SHEKAR KALVACHERLA said:
    I want to  include the entire command in one step in post build box. 

    Prior to CCSv6, the post-build step field did not allow multi line commands to be specified.  To run multiple commands you can either put all of them in a batch file/shell script and call the batch file in the Command field, or you can use the applicable Windows command processing symbol for running multiple commands on one line (cmd1 & cmd2 for example). 

    When invoking batch files, a question that often comes up is whether the batch file can access CCS variables such as CG_TOOL_ROOT etc. You cannot directly access CCS variables from within the batch file, but you could pass it as an argument to the batch file.

    For example, you could do something like this in the batch file:

    @ECHO OFF 
    set HexUtil=%1%
    set CCSOutFile=Project.out
    %HexUtil% -a %CCSOutFile%
    

    and invoke the post build step as: 
    postbuildstep.bat "${CG_TOOL_ROOT}/bin/hex2000.exe" 


    Please also note that CCS 5.5 is very old and no longer supported. We would recommend updating to a more recent version of CCS as soon as it is practical. 

    Hope this helps!