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.

hex55

Other Parts Discussed in Thread: TMS320VC5501

[:S]

Greetings.

I 'm taking my first steps with the CCS v3.3.

I made my first program for the TMS320VC5501 device without errors.

Now I need to generate a hex file for the DSPs use an external memory. I have read the document SPRU280 where it talks about a tool to converitr COFF to hex file.

This tool is hex55.

My question is: Where do I write the commands in CCS for Invoke this tool?

Is it in Tools / Command Windows?

Thanks!
  • Fabian,
    You can use the Tools -> Command Window to enter commands for the hex55 utility.  I typically use a DOS Window, but the result is the same.

    You should also look at the C5501/2 Bootloader document which can be found here: http://www-s.ti.com/sc/techlit/spra911.  This describes how the bootloader works and how to prepare a program for booting from available sources like the DSP external memory.

    Hope this helps.

    Regards.

  • Hi.

    But when I enter the commands, the CommandWindows says:

    hex55 myproyect
    Command "HEX55" not found

    What happens?

    Thanks!  [:(]

     

  • Fabian,

    You need to define the path to the Code Generation tools.  The default location is under the CCS3.3 installation folder at \c5500\cgtools.  However, when installing new versions of Code Gen tools the user is given the option of locating the tools at a location of your choice.  Not sure which will be correct for you.  Also, make sure you are using the version of Code Gen tools defined in CCS.  You can see which version is active by going to Help -> About in CCS.

    Regards.

  • My version is:

    Code Generation Tools v3.3.2

    The path to the Code Generation tools is C:\Texas Instruments\CCS\C5500\cgtools\bin

    Where do I set the path for Code Generic tools?

    Thanks


    [:S]




     

  • Fabian,

    You can find details on how to use the hex55 utility in TMS320C55x Assembly Language Tools UG (http://www-s.ti.com/sc/techlit/spru280) in section 14.  I either do one of 2 things: 1) specify the complete path for hex55 on the command line which in your case would be C:\Texas Instruments\CCS\C5500\cgtools\bin\hex55, or setup environment variable a DOS window where I run the hex55 command.

    Regards.

     

  • Greetings.

    I managed to access the hex55 via DOS:

    C:\Texas Instruments\CCS\C5500\cgtools\bin>hex55

    TMS320C55x COFF/Hex Converter   v3.3.2
    Tools Copyright (c) 1996-2006   Texas Instruments Incorporated

    Usage hex [-option |-h] filename



    -----------------------------------------------------------------------------------------

    However, I have the following problem:



    C:\Texas Instruments\CCS\C5500\cgtools\bin>hex55 C:\Myproject
    >> FATAL ERROR: cannot open input file 'Myproject.out': No such file or directory
            (aborting)

    I will try to create a hex file. Maybe I need to read more SPRU280 document.

    Thanks

     




  •  

    TommyG. I did it.

    It's like this:

    C:\Texas Instruments\CCS\C5500\cgtools\bin>hex55 -i C:MyProject\MyProject\MyProject.obj -o C:MyProject\MyProject\MyProject.hex

    But still don't understand why I can from the CCS.

    I think these commands should not run from DOS [;)]

    Thank you very much TommyG

    Fabián Romo

    [:D]
  • Fabian,

    Congrats, glad you got the hex55 utility to work as you desire.

    I think that the CCS running of hex55 didn't work because you did not have the environment variable PATH setup to point to the code gen tools.  I remember in the Build Options that you can run before and after processing around the compile step.  I looked this up in the CCS Help and there was a note that you need to run DosRun.bat prior to running any code gen tools (like hex55).  I'm not sure if this would work from the command line, but you should be able to use the Build Options - General tab settings to run hex55 utility.  You can find the details in the CCS Help -> Contents.  This will open the Help Dialog Window.  From there select Making a Code Composer Project -> Building & Running Your Project -> Building Your Project -> Choosing Custom Build Steps.

    Regards.

  •  

    Yeah!  It  works! Thus, I need not ever write in DOS commands to create the *. hex!

    I can see it in Output Window when I compile my project:

    C:\Texas Instruments\CCS\C5500\cgtools\bin\hex55TMS320C55x COFF/Hex Converter v3.3.2 Tools Copyright (c) 1996-2006 Texas Instruments Incorporated

    Usage: C:\Texas Instruments\CCS\C5500\cgtools\bin>hex55 -i C:MyProject\MyProject\MyProject.obj -o C:MyProject\MyProject\MyProject.hex

    Build Complete, 0 Errors, 7 Warnings, 0 Remarks.

    Please view the build output for errors and warnings for any custom steps.

     

    Thanks a lot TommyG.   [:)]

  • Fabian,

    Glad you got the hex55 conversion working.  Can you mark any of the posts on this thread as "Verify Answer" if they helped answer your questions?  This will make it easier for others to see that there might be good information in this thread.

    Thanks.