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.

coff file has wrong magic number

 

Hi,

i am using the hex2000.exe to convert from my cofffile to hex file.

when i use the command like this $hex2000 -a myoutfile.out -romwidth 16

then i get the error COFF file has wrong magic number<aborting>.

Some one know how to solve this problem?

 

Ramana.

 

  • The file myoutfile.out is probably corrupt.  The magic number is the first few bytes of the file.  This "magic number" has to match an exact pattern, or you get that error message.  Try building it again.

    Thanks and regards,

    -George

  •  

    I tried with Hex6x.exe file then it works, i generated the .out file with C6X platform and i falsely used Hex2000 to convert my .out file. i see this is the problem.

    Is this possible for me to use these hex files(i got two hex files as i gave the ROMwidth->16 ) which is converted from my coff file to boot directly the DSP?

     

    Ramana.

  • Ramana_Munich said:
    s this possible for me to use these hex files(i got two hex files as i gave the ROMwidth->16 ) which is converted from my coff file to boot directly the DSP?

    We compiler experts can't help you with that question.  Try searching the main wiki for the device you are using.  There are probably examples of how to boot up that device.  If that doesn't work out, start a new thread on the forum for your device..

    Thanks and regards,

    -George