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.

Stellaris M4F COFF format

Hi,

   I am working with CCS4.2.4.00033 ( cgt v4.9.1) on M4F. I let it generate the legacy COFF file. I can download the binary to Stellaris EVM and it works fine. However when I try to post process the COFF file, I found that the COFF header is wrong (and hence all the rest of are wrong.). The ID is 17791. The section number is too big(17996). Following is the header format I am using. This is the format that I used on DSP6000. Does ARM have a different header or probably I missed anything?

Thank you!

Eric (HPA-High Speed Product)

Byte-Number    Type     Description (Copied from spraao8.pdf)

0-1 Unsigned short Version ID;    indicates version of COFF file structure

2-3 Unsigned short:    Number of section headers

4-7 Integer Time and date stamp;     indicates when the file was created

8-11 Integer File pointer; contains the symbol table's starting address

12-15 Integer Number of entries in the symbol table

16-17 Unsigned short Number of bytes in the optional header. This field is either 0 or 28; if it is 0, there is no optional file header.

18-19 Unsigned short Flags

20-21 Unsigned short Target ID; magic number