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 Creating a .bin for MSP430

Other Parts Discussed in Thread: MSP430F5659

Hello all,

I'm currently using Version: 6.0.1.00040 on Windows 7 64-bit SP1.

I'm trying to get CCS to output a .bin alongside the ti-txt file that it normally outputs for the MSP430F5659.  I read through a few posts and discovered the tiobj2bin and tried using it after reading this. 

http://processors.wiki.ti.com/index.php/Projects_and_Build_Handbook_for_CCS#Pre_and_Post_Build_Steps

I am currently putting this string into the Post-build steps

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

but when I do CCS gives the error 

-image requires ROMS directive

It builds just fine without the string in the Post-build steps. I've searched the TI forums and Googled it to no avail.

Best Regards,

Drew Mangus

  • Drew Mangus said:
    -image requires ROMS directive

    I'm pretty sure some other error happened before this point.  Please post the full contents of the Console (not Problems) view.  Use the Copy Build Log icon in the Console view to create the text file, then post it as an attachment in your next post.

    Thanks and regards,

    -George

  • George,

    Thanks for the quick response, here is the build log.

    /cfs-file/__key/communityserver-discussions-components-files/81/2553.BuildLog.txt

    Looks like you are correct, there was an issue that led to the ROM error.

    Excerpt ->

    ' '

    "c:/ti/ccsv6/utils/tiobj2bin/tiobj2bin" "ParkTelMechanism.out" "ParkTelMechanism.bin" "c:/ti/ccsv6/tools/compiler/msp430_4.3.1/bin/ofd430" "c:/ti/ccsv6/tools/compiler/msp430_4.3.1/bin/hex430" "c:/ti/ccsv6/utils/tiobj2bin/mkhex4bin"
    Unexpected target: unknown at script/mkhex4bin.pl line 261.
    error: -image requires ROMS directive
    ' '

    Googleing that leads to a post that you have already answered before,

    https://e2e.ti.com/support/development_tools/compiler/f/343/p/293330/1024029

    Which leads me to the question of,

    How do I output a binary file for an MSP430?  Is there a good way to do so?  I ask because I'm using the driver libraries that are built with the newer eabi so using the older version is problematic.

  • Drew Mangus said:
    How do I output a binary file for an MSP430?

    The bug which causes your problem has been fixed.  You only need to update two files in your CCS installation.

    The tiobj2bin post-build command uses two utilities from the directory ${CCS_INSTALL_ROOT}/ccsv6/utils/tiobj2bin: tiobj2bin.bat and mkhex4bin.exe.  Both those files come from the cg_xml package.  A bug in mkhex4bin causes your problem.  This bug is fixed in the most recent release of cg_xml, version 2.40.00.  This fix has not yet propagated to the CCS distribution.  But you can do it yourself.

    Install cg_xml.  Then copy these two files to ${CCS_INSTALL_ROOT}/ccsv6/utils/tiobj2bin:

    • cg_xml_install_root/ofd/tiobj2bin.bat
    • cg_xml_install_root/bin/mkhex4bin.exe

    (For those who develop on Linux systems, copy the shell script tiobj2bin instead of the Windows batch file tiobj2bin.bat.)

    Thanks and regards,

    -George