Skip to main content
Visitor II
May 23, 2023
Solved

Recommended procedure for flashing STM32 using USART?

  • May 23, 2023
  • 1 reply
  • 7783 views

I have board with STM32F4 Microcontrollers. I am using USART and STM Bootloader in order to flash one of these chips. Is there anywhere recommended procedure to go for?

    This topic has been closed for replies.
    Best answer by Foued_KH

    Hello @SPopo.4​ ,

    How to flash software into the STM32 is described in the Application Notes

    There you can find the full protocol specification for the USART bootloader.

    There is also a ''Flash loader demonstrator'' available which is capable of flashing a STM32 using UART.

    Foued

    1 reply

    Foued_KHAnswer
    ST Employee
    May 23, 2023

    Hello @SPopo.4​ ,

    How to flash software into the STM32 is described in the Application Notes

    There you can find the full protocol specification for the USART bootloader.

    There is also a ''Flash loader demonstrator'' available which is capable of flashing a STM32 using UART.

    Foued

    SPopo.4Author
    Visitor II
    May 23, 2023

    Hello Foued,

    Thanks for a quick reply. I am very familiar with these documents, but unfortunately they don't have a recommended procedure. These documents have protocol and explanation of different functions, versions of bootloaders, but don't have recommended process to follow if you want to use USART to flash your chip.

    I also checked Flash Loader Demonstrator but it is not useful for what I need as it does not provides details on procedure it goes through when flashed MCU.

    What I want is - reference design of the code, good and bad practices, example of algorithms

    Sergejs

    ST Employee
    May 23, 2023