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.

Out to Bin conversion

Other Parts Discussed in Thread: AM3894, CCSTUDIO

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?

 

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

  • Sankar,

    CCStudio works with .out files. Why do you need to convert the .out file to .bin file?

    Regards,

    Pavel

  • i dont have any emulator where through JTAG directly i can debug. hence i am using UBOOT to program the bin file to execute from NAND directly from dm816x evm. i can't program the .out. hence i need automatic .bin conversion when i build the code. now every time at command prompt i am manullay running the batch file to get the bin output

     

    Sankar

     

  • Hi Sankar,

    I found some threads discussing how to convert from .out to .bin;

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/99/p/180034/652114.aspx

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/99/t/6673.aspx

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/99/t/5782.aspx

    I hope these will help.

    Regards,

    Pavel

  • And below are some threads from the CCStudio forum, which also discuss how to convert from out to bin:

    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/68158.aspx

    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/243301.aspx

    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/38390/134538.aspx

    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/201756/719886.aspx

    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/65174/237235.aspx

    Regards,

    Pavel

  • Hi

    i gone through all the links referred by you and its useful for me to understand few concepts. however i could not generate .bin directly from CCS. but from command prompt i could generate .bin without much difficulities. i have copied .bat and required hex470 files in same folder and binary output also generated.

    command prompt >tiobj2bin.bat  uart_loopback.out uart_loopb ack.bin

    its generating binary file with default settings. just i wa3034.uart_loopback.zipnt to ensure my method is correct. because the generated binary is file not getting executed properly from NAND or RAM. i have attached the .map file and .out & .bin which is generated from CCS

  • now i could directly generate the .bin from CCS itself with post build steps; the issue was with tiobj2bin.bat file path. its wrongly placed. after path correction it is generating.

     

    however it is not running. but its totally diffrent from out to bin issue

     

    Sankar