cancel
Showing results for 
Search instead for 
Did you mean: 

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 ?

sra
Associate II
 
1 REPLY 1

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 Venmo
Up vote any posts that you find helpful, it shows what's working..