Skip to main content
SPopo.4
Associate II
May 23, 2023
Solved

Recommended procedure for flashing STM32 using USART?

  • May 23, 2023
  • 3 replies
  • 7956 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

3 replies

Foued_KH
Foued_KHBest answer
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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
SPopo.4
SPopo.4Author
Associate 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

Foued_KH
ST Employee
May 23, 2023
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.