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.

CCSV6 *.out file convert to *.bin

I 'd like to know How to generate .bin file from CCS V6 for ARM.

I have referenced other posts but cant get a .bin output after successful compile and creation of .out file

in CCS i have configured as follows,

CCS Build Settings => Build => Steps => Post-Build Steps =>

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

Where is the .bin placed after build ? I'm assuming in the debug directory as with the .out file.

regards

Rob

  • Rob Price said:
    Where is the .bin placed after build ? I'm assuming in the debug directory as with the .out file.

    That is a correct assumption.  I presume you see something else.  Please build the project again, capture the contents of the Console window in a file, and attach that file to your next post.  Use the Console icon for Copy Build Log to create that file.  Seeing that should allow me to explain what happened.

    Thanks and regards,

    -George

  • Hi George,

    i have had another play with the settings, i can see there is an error but unable to resolve the file name "MZ.out", i don't understand where this is coming from.

    Report

    ---->

    'Finished building: MAP.hex'

    ' '
    '.out to .bin command'
    "C:/ti/ccsv6/utils/tiobj2bin/tiobj2bin.bat" "MAP.out" "MAP.bin" "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.6/bin/armofd.exe"
    tiobj2bin.bat failed on hex470
    Please see processors.wiki.ti.com/.../Tiobj2bin_Failed
    'mkhex4bin' is not recognized as an internal or external command,
    mkhex4bin failure occurred. Giving up.
    operable program or batch file.
    "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.6/bin/armhex.exe" "C:/ti/ccsv6/utils/tiobj2bin/mkhex4bin.exe"
    fatal error: cannot open input file "MZ.out": No such file or directory
    gmake[1]: [post-build] Error 1 (ignored)
    ' '

    Post build Steps

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

    Problems Console

    Cannot open input file "MZ.out": No such file or directory

    Thank you for your feedback,

    Rob

    ------>

  • I can see one problem you have.  In the post-build steps make sure that all of this ...

    Rob Price said:

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

    is on the same line.  The tiobj2bin.bat file does not see those last two parameters because they are on the next line.  It goes downhill from there.

    Thanks and regards,

    -George

  • Hi George

    That was the problem, splitting the line...

    Thank you for your help.

    Rob