2025-03-17 7:58 AM
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.
2025-03-17 8:00 AM - edited 2025-03-17 8:01 AM
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.)