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.

Conversion using hex470

Hello,

I was trying an "elf" to "srec" format conversion using the "hex470.exe" provided along with code composer studio.

I have an elf file and correponding "map" file with the entry point address as

ENTRY POINT SYMBOL: "main"  address: 00081208  -- copied from the  start of the map file.

i used the following command

>hex470 -m3 pipt1.elf -o pipt1.abs

to convert to the srec format.

When i check the pipt1.abs  file, i observe that the starting address at the end is 0x00000000 which is not the one expected.

S70500081208D8  ---> expected

S70500000000FA    -----> Observed(from the srec file)

Can you please suggest a solution to this.

The corresponding elf, srec and map file has been attached.

5037.TMDX570LS_USB.zip

Thanks in advance,

Renjith George

 

 

 

 

 

 

 

  • Renjith,

    Hi, your file looks correct.  

    The first line is a header (S0).

    The second line through the end of the file, with the exception of the last,  are S3 records.

    S3 records are the data records in 32-bit format.   The address is embedded inside the record.

    S30D0008000096FEFEFEFEFEB0B0FE

    S3 = record type - 32-bit data

    0D = byte count  (excluding the S3 and the byte count itself).

     00080000 = start address

    96FEFEFEFEFEB0B0 = data

    FE = checksum

    I think that the S7 record is the one disturbing you - but this is just a termination record.  I wouldn't give the address here any significance.

    best regards,

    Anthony

  • I have run into this same issue as well. When I create an Srec file with hex470 there is no reference to to an entry point. So, I must find some other way to let my Srec loader where the entry point of the program it is loading is, or insert my own record that has this information.

    In most locations on the web it is stated that the S7 record may contain the entry point. Are there any plans to implement this functionality in hex470?

  • Hello Aleks,

    Please try to use some parser to get the entry point address from the .map file . Insert it in the srec file - S7 field. Hope this may solve the issue.

    The process can be represented as below -

    elf -> srec(s3) ->Parser

    Hope that this may help you.

    Best Regards,

    Renjith George