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.

RE: Generating .bin file in CCS v5.2

Other Parts Discussed in Thread: TMS320F28335

Hi,

 

 I am also facing the same problem with CCS5.1. I want to convert my .out file to .bin. I am using TMS320F28335.

I used the above command in post build option but it is giving following error.

C:/ti/ccsv5/utils/bin/gmake --no-print-directory post-build

"C:/ti/ccsv5/utils/tiobj2bin/tiobj2bin.bat" "Cyber2G.out" "Cyber2G.bin" "C:/ti/ccsv5/tools/compiler/c2000/bin/ofd470.exe" "C:/ti/ccsv5/tools/compiler/c2000/bin/hex470.exe" "C:/ti/ccsv5/utils/tiobj2bin/mkhex4bin.exe"

'"C:/ti/ccsv5/tools/compiler/c2000/bin/ofd470.exe"' is not recognized as an internal or external command,

operable program or batch file.

File does not exist: at XML_TI_OFD.pm line 875

'"C:/ti/ccsv5/tools/compiler/c2000/bin/hex470.exe"' is not recognized as an internal or external command,

operable program or batch file.

Thanks in advance

Regards,

Bhanu

 

  • Hi Bhanu,

    I have put this as a new post for you. 

    Best Regards,
    Lisa

  • Hi Bhanu,

    Have a look at this post and try doing it this way and keep us informed.

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

    Basically try this as the post build step :

    "${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin.bat" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/ofd470.exe" "${CG_TOOL_ROOT}/bin/hex470.exe" "${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin.exe"

    Best Regards,
    LIsa

  • Bhanu,

    villuribhanu said:

    '"C:/ti/ccsv5/tools/compiler/c2000/bin/ofd470.exe"' is not recognized as an internal or external command,

    operable program or batch file.

    The key thing to note here is that you need to change the executables to match your target processor. So ofd470.exe and hex470.exe should be changed to ofd2000.exe and hex2000.exe. If you take a look in the C:/ti/ccsv5/tools/compiler/c2000/bin folder you will see the correct executables to use.

  • So 

    "${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin.bat" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/ofd2000.exe" "${CG_TOOL_ROOT}/bin/hex2000.exe" "${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin.exe"


    or


    use the tiobj2bin.bat in C:\ti\ccsv5\utils\tiobj2bin

    edit it, replace the ofd470 and hex470 by ofd2000 and hex2000 (C:\ti\ccsv5\tools\compiler\c2000_6.1.0\bin)

    copy these 2 files in the same directory of the .bat (easier) or change the path in the .bat

    try to remove the option "-image" of hex2000    if you don't need all the zero completing the file, the binary file will be smaller.


    if you don't have this file .bat, reinstall CCS and add the CORTEX M MCU (I dot it, it works)

    so now place the file.out in the same directory of the .bat

    open the cmd windows to run the .bat and copy this without bracket : "tiobj2bin.bat file.out file.bin"

    more information for the option of hex2000 in the doument http://www.ti.com/lit/ug/spru513f/spru513f.pdf