cancel
Showing results for 
Search instead for 
Did you mean: 

Exit system memory bootloader after DFU using UART

Coco
Associate III

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.

1 REPLY 1
TDK
Guru

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