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.

Converting COFF file to binary image on C6454



·         We currently use the HPI32 boot option for the C6454 target device which appears to work properly.

·         After the DSP is out of reset, we are able to load code into DSP memory from a COFF type file generated from CCS and run code – this all seems to be working fine.

·         For our application, we will store the DSP code in System Flash memory. Instead of a COFF type file, I want a binary file,

·         One thing I have tried is to run the following command line to create a binary file with the hex6x executable that comes with CCS.

"C:\Program Files\Texas Instruments\ccsv4\tools\compiler\c6000\bin\hex6x" -b  “C:\Perforce\SonoSculptP2\Software\dsp2\randy\test\Debug\test.out" -o test.bin

·         The resulting test.bin file is only a few Kbytes compared to the 22Kbytes of the original test.out file in COFF format. The binary data in the test.bin file matches the data loaded into the first few Kbytes or so of the L2 memory in the C6454 (when I load from the test.out). However, there is apparently more stuff loaded by the test.out COFF file that is not accounted for in the test.bin file created above. When I try to transfer the bin file into L2 memory, I am not able to get the code to run properly.

Is there a different/better way to generate a binary file from the COFF?

Thanks.

  • Joel,

    The Assembly Language Tools User's Guide has a section that describes the use of the hex6x utility. Some options may vary from one release to another, so be sure to use the version of the ALT guide that matches the version of the tools you are using.

    What differences do you see between the contents of memory when you load the program using test.out compared with the contents of memory when you load using test.bin?

    It is common for the file sizes to vary significantly. But if any sections are missing, you may need to use a .cmd file to help control the execution of the hex6x program. The ALT UG will help explain what can be controlled, but you may have to first figure out what you are missing, if anything.

    Regards,
    RandyP

     

    If you need more help, please reply back. If this answers the question, please click  Verify Answer  , below.

  • Thanks Randy.

    I think we're on the right track with the .cmd line options.

    Regards,

     

    Joel