2020-09-07 11:15 AM
as this is my hex record...
:10001000D1EC0008DBEC0008E5EC00080000000073
it has 0010 address value and all 16 data value(D1 EC 00 08 DB EC 00 08 E5 EC 00 08 00 00 00 00) as zero. Where do this data will be placed in flash memory?
2020-09-07 11:51 AM
An earlier record will determine the section of memory (64KB) which this record refers too.
At the beginning of the file, likely 0x08000010
This type of HEX has about 4 decades of documentation behind it. It is not a complex format.
2020-09-07 11:15 PM
Even Wikipedia has a good documentation of the Hex file format.
Or better, switch to the S19 format, which directly supports 24 bit and 32 bit addresses.
2020-09-08 03:10 AM
Thanks clive, actually i am not getting my answer. can you elaborate. i am shearing first two line of my hex file, can you tell me where it shall be stored? and which values ?
:020000040800F2
:1000000000000320AD03010841E600084FE60008A8
2020-09-10 12:14 PM
Thank you all,
I got my answer from following link...
https://github.com/bradgrantham/hex2bin/blob/master/readhex.c
2020-09-10 12:58 PM
:020000040800F2
BASIS : 0x0800 << 16 --> 0x08000000
:1000000000000320AD03010841E600084FE60008A8 -> 0x0800000 + 0x0000 = 0x08000000
:10001000D1EC0008DBEC0008E5EC00080000000073-> 0x0800000 + 0x0010 = 0x08000010