cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F411RE bootloader via uart

Mabou.1
Associate II

Hi, 

I have an STM32F411RE master device connected to a slave STM32F411RE device via a UART connection. I need to update the firmware of the slave device using a UART bootloader. How can I initiate the bootloader mode on the slave device, and what protocol should I follow to transmit the new binary code to the slave device? Are there any examples available that I can use to get started?

 

1 REPLY 1
TDK
Guru

To get into bootloader mode, you can either jump there in software on the slave device, or you can control the BOOT0 and NRST pins to force it to load there.

General bootloader info:

https://www.st.com/resource/en/application_note/an2606-stm32-microcontroller-system-memory-boot-mode-stmicroelectronics.pdf

See AN3155 for the bootloader UART protocol:

https://www.st.com/resource/en/application_note/an3155-usart-protocol-used-in-the-stm32-bootloader-stmicroelectronics.pdf

 

If you feel a post has answered your question, please click "Accept as Solution".