cancel
Showing results for 
Search instead for 
Did you mean: 

How to flash Application file using Bootloader to a microcontroller by UART protocol?

Shilpashree Madhu
Associate III
 
4 REPLIES 4
MFran.4
Senior
  1. You get the MCU in bootloader mode (with boot 0 and reset, or however you want)
  2. Make sure you have connected your uart adapter to the correct pins (see AN2606 and your device's datasheet/reference manual, I don't remember which one)
  3. Make sure you read AN2606 for setting uart parameters in the next step
  4. Start stm32cubeprogrammer, select uart, fill the parameters, select the correct COM port
  5. click connect
MFran.4
Senior
  1. You get the MCU in bootloader mode (with boot 0 and reset, or however you want)
  2. Make sure you have connected your uart adapter to the correct pins (see AN2606 and your device's datasheet/reference manual, I don't remember which one)
  3. Make sure you read AN2606 for setting uart parameters in the next step
  4. Start stm32cubeprogrammer, select uart, fill the parameters, select the correct COM port
  5. click connect
TDK
Guru

Get familiar with the protocol defined in AN3155:

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

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

Almost the same question is repeated here.

In order 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.