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.

.bin file not created, PAR/Dist.pm did not return a true value at -e line 320. error: -image requires ROMS directive

Hi and thank you for looking at my problem.

version: CCSv4.2.4.00033

There is a previous post with a similar problem from Feb 2010, however the only response is sort of a "works for me" answer. I'm hoping to get more detailed help here.

My project resides on the C drive, but outside of the C:/StellarisWare location. It is basically a copy of the enet_io demo with the main difference that the project has actual copies of the third party Lwip. There are no linked files within my project.

My project compiles and a .out file is created, but no .bin file. Here is the output from the console:

<Linking>
'Finished building target: webIO_src.out'
' '
C:/Program Files/Texas Instruments/ccsv4/utils/gmake/gmake --no-print-directory post-build

"C:/Program Files/Texas Instruments/ccsv4/utils/tiobj2bin/tiobj2bin.bat" "webIO_src.out" "webIO_src.bin"

"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/TMS470 Code Generation Tools 4.6.6/bin/ofd470.exe"

"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/TMS470 Code Generation Tools 4.6.6/bin/hex470.exe"

"C:/Program Files/Texas Instruments/ccsv4/utils/tiobj2bin/mkhex4bin.exe"
PAR/Dist.pm did not return a true value at -e line 320.
error: -image requires ROMS directive
' '
Build complete for project webIO_src

Thanks in advance for your help.

/Jason

  • Jason,

    Can you copy and paste exactly what you have as your post-build step command?

    Do you see the same error when building unmodified Stellarisware examples at their original location, or is it specific to your custom project only?

    Which OS are you working with - Windows7/XP?

     

     

  • Hi AartiG,

    Thanks for the help.

    I'm running Windows XP.

    Post-build step: Command:

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

    The unmodified demo projects have the same error.

  • I've actually never seen this error before, but one thing to check would be permissions for the system temporary directory. The utility creates temporary files in the system temporary directory set by TMP environment variable (usually defaults to C:\Documents and Settings\<username>\Local Settings\Temp). If you take a look at tiobj2bin.bat file you will see the commands to create the temporary files (which are then removed in the end). I'm not certain if this is contributing to the errors, but I would suggest checking permissions to your TMP directory or set TMP to something simple like c:\temp with full permissions and see if that changes anything.

    If this does not help, let us know and I'll try to ping someone who is more familiar with this utility. He is out of the office this week though so response may be delayed until next week.

  • The single User Account on this machine is 'Computer administrator'

    You are correct, the TMP environment variable is used in the tiobj2bin.bat file, and again correct on TMP's default. I created a CCS_TEMP environment variable and set it to "C:\CCS_dev\Temp" and then modified the batch file to use CCS_TMP.

    After a rebuild, nothing is in C:\CCS_dev\Temp, and the problem has not gone away.

    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/203800/724202.aspx#724202

  • This is a very strange issue.  It will likely take several more exchanges before we figure it out.

    Do you have Perl installed?  If so, do you also have the Perl module PAR::Packer installed?  These questions may seem random.  I thought about trying to explain why I am asking.  But I think that would take too long, and not help much.  So, just for now, please take my word for it that these questions are relevant.

    Thanks and regards,

    -George

  • Pearl is not installed on this machine.

    Thanks

    /Jason

  • One of the executables invoked by tiobj2bin.bat is named mkhex4bin.exe.  My next guess is that your copy of mkhex4bin.exe is corrupted.  Ordinarily, something like this calls for a complete re-installation of CCS.  Fortunately, we have a less drastic option.  Please install the cg_xml package.  Among other things, this package is the origin of mkhex4bin.exe and tiobj2bin.bat.  Copy those two files from the cg_xml package into the directory ccs_install_root/utils/tiobj2bin .  There is a good chance this will fix your problem.

    Thanks and regards,

    -George

  • Thank you, this has fixed the issue and I now have a .bin file created at the end of the build process.

    I installed version 2.30.00 of the cg_xml package and copied the files as you instructed.

    Thanks again.

    /Jason

  •  

    I worked with RDK-IDM-L35 - Stellaris with CCS v5 by three months.

    I could open program Hello World! and others programs without any problem.

    I bought the new version of CCS the ccsv6 (Activation ID : 5B55-37D0-ED8D-11E3-85C4-C3B3-1ABA-B367)

    and I got Error:

    -image requires ROMS directive

    Can You help me? 

    The best regards

    Andrzej M.

    P.S.

     

    I can open the program  "Hello  World!" with this error -image requires ROMS directive

    but other program  I can’t open.

    The best regards

    Andrzej M.