Skip to main content
Associate III
March 17, 2025
Solved

Exit system memory bootloader after DFU using UART

  • March 17, 2025
  • 1 reply
  • 453 views

Hi,

I access the system bootloader by setting the bits nBOOT0/nSWBOOT0 = 0 and nBOOT1 = 1 in my code. I manage to connect via UART and flash my new firmware but then my MCU does not reboot because it remains in the system bootloader. How can I do this without using the JTAG port to change the values ​​of nBOOT0/nSWBOOT0/nBOOT1 so that my MCU once flashed leaves the system bootloader and reboots into my code?

Thanks for your help.

Best answer by TDK

You can use the GO bootloader command to launch your program.

In your program, you can check and modify the option bits to ensure the next time it resets, it enters the user program.

(Side note: "DFU" is a USB-specific device class. Just "UART bootloader" would be more appropriate here to avoid confusion.)

1 reply

TDK
TDKBest answer
Super User
March 17, 2025

You can use the GO bootloader command to launch your program.

In your program, you can check and modify the option bits to ensure the next time it resets, it enters the user program.

(Side note: "DFU" is a USB-specific device class. Just "UART bootloader" would be more appropriate here to avoid confusion.)

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