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.
Good morning,
Could you tell me please what should be included on CCS v5.2 settings in order to create a .bin file after building? At this time I can only generate a .out file.
I know that I should write a sentence on Project --> Properties --> Build --> Build Steps --> Post-build Steps , but I don't know what should be written...
Thanks in advance!
Patricio
Hi Patricio,
what target do you use?
Do you see the option already there under "Apply predefined post build step"?
Best Regards,
Lisa
Hi Lisa,
I'm using LM3S1165 and I have already tried with these three options (Clear All, TI-TXT, Intel-HEX) and I'm still getting only the .out file on the Debug folder of my workspace (C:\Documents and Settings\pdubini\workspace_v5_1\testARM\Debug).
Thank you for your fast response!
Patricio
Hi Patricio,
Have a look and see if this post gets you the answer you need and please keep us informed.
http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/65174.aspx
Best Regards,
Lisa
Hi Lisa,
I have tried with the following sentence (included on the post that applies for CCS v4) but it's not working for CCS v5.2 :
"${CCE_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin.bat" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/ofd470.exe" "${CG_TOOL_ROOT}/bin/hex470.exe" "${CCE_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin.exe"
Any ideas on how to solve it? Thanks again!!
Patricio
Hi Patricio,
this is to create a hex. Please read the post carefuly.
Also there is an error in that the top line should be CCS not CCE.
Try
"${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin.bat" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin"
You may need to adjust where the tiobj2bin.bat is but that is what you are looking for.
Mine was here so it seems the location has not changed much:
F:\CCS\RC1\ccsv5\utils\tiobj2bin
Please give that a try and keep us informed.
Best Regards,
Lisa
Hi Lisa,
Is that sentence working for you? Unfortunately is not working for me...
The path in my case is: C:\ti\ccsv5\utils\tiobj2bin\tiobj2bin.bat
Thanks again!
Patricio
HI Particio,
ok let me see if we can verify a couple things here and put together some steps for you. Sorry for any confusion ... I will come back to you as soon as I can.
Best Regards,
Lisa
Hi Patricio,
try the following which worked for me when added as a post build step in CCS ...
"${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin.bat" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/ofd470.exe" "${CG_TOOL_ROOT}/bin/hex470.exe" "${CCE_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin.exe"
Please keep us informed.
Best Regards,
Lisa
Hi Lisa,
This sentence is not working for me... Could you tell me please which are your paths for: {CCS_INSTALL_ROOT} , {CG_TOOL_ROOT} and {CCE_INSTALL_ROOT} ?
So that I can verify if those files are on my disc... Thanks again!
Patricio
HI Patricio,
that should not make a difference. And I am sorry the CCE should be changed to CCS. Please give that a try, as mention, I have verified it on CCS v5.2.
Best Regards,
Lisa
Hi Lisa,
It's working for me now! Thank you so much for the support!
Best regards,
Patricio
Hi Patriciio,
great glad to hear and all the best with development.
Best Regards,
Lisa
For CCS 5.3
"${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin.bat" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/armofd.exe" "${CG_TOOL_ROOT}/bin/armhex.exe" "${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin.exe"
Small change :)
Regards
Paddy
Hi
i am new user to CCS. i am trying to run few sample application on ti am3894 (cortex a8) processor. i built the one sample project and i am getting .out as output; to convert into binary i used the "${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin.bat" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/armofd.exe" "${CG_TOOL_ROOT}/bin/armhex.exe" "${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin.exe" in post build. i am getting below mentioned error.
C:/Program Files/Texas Instruments/ccsv5/utils/gmake/gmake --no-print-directory post-build
"C:/Program Files/Texas Instruments/ccsv5/utils/tiobj2bin/tiobj2bin.bat" "uart_loopback.out" "uart_loopback.bin" "C:/Program Files/Texas Instruments/ccsv5/tools/compiler/tms470/bin/armofd.exe" "C:/Program Files/Texas Instruments/ccsv5/tools/compiler/tms470/bin/armhex.exe" "C:/Program Files/Texas Instruments/ccsv5/utils/tiobj2bin/mkhex4bin.exe"
The system cannot find the path specified.
gmake[1]: [post-build] Error 1 (ignored)
i tried to copy all the exe into single folder and ran through command prompt.
gmake --no-print-directory post-build "tiobj2bin.bat" "uart_loopback.out" "uart_loopback.bin" "ofd470.exe" "hex470.exe" "mkhex4bin.exe"
and the output is
"C:/Program Files/Texas Instruments/ccsv5/utils/tiobj2bin/tiobj2bin.bat" "uart_l
oopback.out" "uart_loopback.bin" "C:/Program Files/Texas Instruments/ccsv5/tools
/compiler/tms470/bin/armofd.exe" "C:/Program Files/Texas Instruments/ccsv5/tools
/compiler/tms470/bin/armhex.exe" "C:/Program Files/Texas Instruments/ccsv5/utils
/tiobj2bin/mkhex4bin.exe"
The system cannot find the path specified.
gmake: [post-build] Error 1 (ignored)
' '
gmake: Nothing to be done for `tiobj2bin.bat'.
gmake: `uart_loopback.out' is up to date.
gmake: *** No rule to make target `uart_loopback.bin'. Stop.
one more try i done is below
D:\CCS\uart_loopback\Debug>gmake "tiobj2bin.bat" "uart_loopback.out" "uart_loopb
ack.bin" "ofd470.exe" "hex470.exe" "mkhex4bin.exe"
gmake: Nothing to be done for `tiobj2bin.bat'.
gmake: `uart_loopback.out' is up to date.
gmake: *** No rule to make target `uart_loopback.bin'. Stop.
how to generate .bin?
Sankar
I have tried with command prompt >tiobj2bin.bat uart_loopback.out uart_loopb ack.bin
its generating binary file with default settings. will it work same as the process suggested by CCS?
Sankar
Lisa,
I am having the same problem as Patricia. I'm having trouble creating a bin file. I can't find the .out file within the debug folder of my project. Can you give me any tips on how to create an .out file or a .bin file directly?
Thank you,
Brian
Hi,
reason for not able to create .out file may be your project has some errors, or settings issue, please take blinky project and compare your project settings
and able to create out file and not .bin please enter below command under project settings -> build -> steps -> command
"${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin.bat" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/armofd.exe" "${CG_TOOL_ROOT}/bin/armhex.exe" "${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin.exe"
Regards
- Paddy
Actually the correct way is:
In Properties->Build->Steps Tab:
Enter:
"${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"
Remember, above is a single line. Command is in red. Rest are just parameters.
It builds the *.bin file in either Debug or Release folder.
It should be noted that that syntax will not work in Linux. In my Ubuntu 16.04, that gave a "Command not found" and "Ignored" errors. Somewhere I found a tip to change the double quotes to single ones, and it works:
'${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin' '${BuildArtifactFileName}' '${BuildArtifactFileBaseName}.bin' '${CG_TOOL_ROOT}/bin/armofd' '${CG_TOOL_ROOT}/bin/armhex' '${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin'