Skip to main content
Visitor II
October 20, 2023
Question

STM32F411RE bootloader via uart

  • October 20, 2023
  • 1 reply
  • 976 views

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?

 

    This topic has been closed for replies.

    1 reply

    Super User
    October 20, 2023

    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