Skip to main content
sra
Associate
August 10, 2022
Question

how to transfer hex file between two stm32 boards. I am trying to transfer the hex file which is present in one stm32 board and i need to transfer it to another stm32 board via uart ?

  • August 10, 2022
  • 1 reply
  • 772 views

..

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
August 10, 2022

The MCU isn't holding the .HEX file like that, the binary data it is describing is held as data in memory.

Y​ou could use standard serial transfer methods, say like XMODEM, to move it as a block of data. You could also have it "print" the data in a more familiar Intel or Motorola. HEX format if you're more comfortable with handling that. There will be about 2.5x the data.

On receiving side you'd take the data and use the HAL FLASH functions to write the data into memory.

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