srec data

Hi all, How to calculate the size of srec data ? My srecord is below S00600004844521B

S32502100001000000000000000000000000000000000000000000000000000000000000000000C1

S32502100025000000000000000000000000000000000000000000000000000000000000000000A0

S325021000460000000000000000000000000000000000000000000000000000000000000000007F

S325021000670000000000000000000000000000000000000000000000000000000000000000005E ... the start address is 2100001 and the end address in 21e1e54 How to calculate the size of srec data ? is it end addr - strt address or some other way ?

Reply to
jack
Loading thread data ...

S32502100001000000000000000000000000000000000000000000000000000000000000000000C1

S32502100025000000000000000000000000000000000000000000000000000000000000000000A0

S325021000460000000000000000000000000000000000000000000000000000000000000000007F

S325021000670000000000000000000000000000000000000000000000000000000000000000005E

Did you Google for 'srec format'?

I got about 25000 responses, and at least the first ones were relevant and to the point.

In principle, the last address is the address of the the last data record + data length - 1. However, it is allowed that the records are not in address order. Some linkers produce a quite mixed-up set of records.

Also, there may be holes in the area covered by the records. You have to decide if these are included into the size.

--
Tauno Voipio
tauno voipio (at) iki fi
 Click to see the full signature
Reply to
Tauno Voipio

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.