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.

creating a .bin file with CCS 6.1.1

I'm having difficulty generating a .bin file.  I've read the relevant post-build section from the Projects and Build Handbook, and my post-build step is below:

 

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

A .bin file is generated, but it doesn't match what I expect from my map file.  Does anything seem to be out of order with my post-build step?

Thanks,

Scott

  • Scott Kruegel said:
    Does anything seem to be out of order with my post-build step?

    No.

    Scott Kruegel said:
    A .bin file is generated, but it doesn't match what I expect from my map file.

    Perhaps you expect something a .bin file does not provide.  A .bin file contains the state of memory right before execution begins.  The starting address is not in the file; that is supplied some other way.  The length of memory is the length of the .bin file.  Is this what you expect?  Or do you expect something else?

    Thanks and regards,

    -George

  • George-

    I'm now able to generate a .bin file of the correct size. It looks like the only problem now is that the most significant byte and least significant byte of each 16 bit word is reversed.

    Here are the contents of my post build step box:

    "${CG_TOOL_HEX}" -i "${BuildArtifactFileName}" -o "${BuildArtifactFileBaseName}.hex" -order MS -romwidth 16
    "${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/ofd2000" "${CG_TOOL_ROOT}/bin/hex2000" "${CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin"

    Thanks for your help,
    Scott