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.

Executing an exe with parameters as part of CCS 5.1 Post build step



Hi,

I am trying to execute the below two post build steps in a CCS 5.1.0.9 project. The first step (highlighted in green) is successfully completing. However, the second step, which is separated by '&' is not able to successfully complete.

"${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin.bat"  "../../../../../../../binary/${ProjName}.out"  "../../../../../../../binary/${ProjName}.bin"  "${CG_TOOL_ROOT}/bin/ofd470.exe"  "${CG_TOOL_ROOT}/bin/hex470.exe"  "${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin.exe" &  "../../../../../../../tiimage.exe"  "0x80000000" "NONE"  "../../../../../../../binary/${ProjName}.bin"  "../../../../../../../binary/${ProjName}_ti.bin"

Here actually the intention is to give four parameters to tiimage.exe executable. But this way it is not taking them as parameters, but as separate commands. If I avoid the quotes, it says CCS cannot find the specified paths. i tried different options like

"../../../../../../../tiimage.exe 0x80000000 NONE ./../../../../../../binary/${ProjName}.bin ./../../../../../../binary/${ProjName}_ti.bin"

"../../../../../../../tiimage.exe & 0x80000000 & NONE ./../../../../../../binary/${ProjName}.bin & ./../../../../../../binary/${ProjName}_ti.bin"

But none of them works. I am not getting how to pass parameters here. (In windows command line, it can be executed as  > tiimage.exe   0x80000000   NONE   xx.bin   xx_ti.bin )

Can anyone help on this please?

 

Regards,

Sujith.