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.

TM4C1292NCPDT: CCS post-build .bat file

Part Number: TM4C1292NCPDT

Hello
I am trying to build the project and the generate a .bin file and then copy that file to other location, Originally I have this in the post-build command:

"${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"

this work perfect because I get the .bin file that I need.

then the problem start when I add some .bat files to the post-build field:

"${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" "${CCE_INSTALL_ROOT}/post-build/test.bat"

in my test.bat file I have:

xcopy /f /s /y C:\Users\TM4C_TEST.bin C:\Users\TM4C\

where this TM4C_TEST.bin is direct generated by the compiler I think with the line mkhex4bin

so the problem that I have is that when I add  "${CCE_INSTALL_ROOT}/post-build/test.bat" in the post-build step then CCS does NOT generate .bin file anymore.
maybe some suggestion how to do this?

  • Hello,

    "${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"

    Note that the above is all ONE command.

    If you want to then execute a second command to run a batch file, you should add it on a new line of the post build step field like so:

    Thanks

  • Thanks for the answer, this was the problem, now it is working correct.