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.

Export Binary File for MSP430

Hello

The hex files are rather large compared to actual binary image that resides on the uC.  Is it possible to export the actual binary image that would reside on the uC using CCS6, or is the only way is to write the hex translator.  I am looking for this ability for over the air programming capability.

  • Hi,

    Hex files are ASCII and therefore their size will forcefully be larger than a raw binary file.

    A raw binary file format such as .bin could be the answer. However, since a typical MSP430 has code in non-contiguous memory, the output file may become very large - for details check this post.

    If you still want to give the .bin file a try, you can add the command below as a post-build step to your MSP project.

    "${CCE_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/ofd430" "${CG_TOOL_ROOT}/bin/hex430" "${CCE_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin"

    Keep in mind that you will have to use COFF instead of ELF binary format to use the mkhex4bin utility (details are at this post).

    I will think about other binary formats and reply if I have additional ideas.

    Hope this helps,

    Rafael