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.

programmer, bin to hex,

Other Parts Discussed in Thread: MIKROELEKTRONIKA

Hi all,

I'm trying to use a Mikroelektronika programmer for a LM4F23H5QD, but I'm not able to find the hex file needed by the programmer, Can someone point how to generate the hex file from CCS  or from another source?

Thanks

German

  • Hi,

    Usually CCS generate .bin files, since this is used by LMFlash. I suppose you find out the place where the command is called to generate .bin(Post-Build tab in compiler settings). In your case, that command should be changed to generate .hex instead of .bin. 

    To find out what the new command should be look for this document and read the chapter 11 - Hex conversion utility.

    Petrei

  • Hi German,

    add these commands to your build steps; they should do the job for you!

    Rgds
    aBUGSworstnightmare

    "${CCE_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/ofd470" "${CG_TOOL_ROOT}/bin/hex470" "${CCE_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin"

  • Hi German,

    I think these post-build steps are more up-to-date (taken from the 

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

    Be shure to enter them as a single line in the command box (see screenshot above)!

    aBUGSworstnightmare