Skip to main content
Associate III
Mar 17, 2025 2:58 PM UTC
Solved

Exit system memory bootloader after DFU using UART

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.

This topic has been closed for replies.
TDK
TDKBest answer
Mar 17, 2025 3:00 PM UTC

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""."

1 reply

TDK
TDKBest answer
Mar 17, 2025 3:00 PM UTC

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""."