cancel
Showing results for 
Search instead for 
Did you mean: 

HEX file in stm32F4

SGasp.1
Senior

Hi folks..

I did a bootloader for the STM32F4 microcontroller..

I read a text file and I flash the bytes..

i really don't understand the following parts of the HEX file ,..

:020000040800F2
 
:040000050800ACB98A
 
 

The other parts of the fix are address in the flash starting from usually 0x800000 and the data to flash plus checksum ..

but what are these two'

How should handle them?

Thanks

2 REPLIES 2

I think you'll find the Intel .HEX format reasonably well documented, it's been used since the late 1970's

Record type 4 describes the memory region/ segment the next 64KB (16-bit address space) data falls within. ie 0800xxxx

Record type 5 describes the code entry point, here its likely to be Reset_Handler (or perhaps main), it's mainly there to assist the debugger in placing a break-point, it is not stored in the MCU anywhere.

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

Hi Tesla..

So you mean that when I am flashing the bootloader from the txt file I can skip this line ?

  1. :040000050800ACB98A