Skip to main content
SGasp.1
Associate III
October 22, 2021
Question

HEX file in stm32F4

  • October 22, 2021
  • 2 replies
  • 1219 views

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

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
October 22, 2021

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
SGasp.1
SGasp.1Author
Associate III
October 22, 2021

Hi Tesla..

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

  1. :040000050800ACB98A