cancel
Showing results for 
Search instead for 
Did you mean: 

hi friends, can anyone help me to understand, how address and data values within hex records, accommodated in flash memory.? I just want to update my firmware via serial ! do i need to copy raw hex records @ each flash memory location sequentially?

takodiaviral
Associate II

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?

5 REPLIES 5

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.​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Ozone
Lead II

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.

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

takodiaviral
Associate II

Thank you all,

I got my answer from following link...

https://github.com/bradgrantham/hex2bin/blob/master/readhex.c

:020000040800F2

BASIS : 0x0800 << 16 --> 0x08000000

:1000000000000320AD03010841E600084FE60008A8 -> 0x0800000 + 0x0000 = 0x08000000

:10001000D1EC0008DBEC0008E5EC00080000000073-> 0x0800000 + 0x0010 = 0x08000010

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..