Once in the system bootloader, is there a way to update a readout protected firmware with only an UART access (and no BOOT0 access)?
Hello,
Objective:
I have to update the firmware of an STM32F412 using the bootloader in system memory (through UART protocol).
Situation:
A command in my user code allows jumping to the bootloader after a system reset (so the device is in nominal state). This works well and allows to update the firmware if the readout protection is not activated (RDP=0xaa).
Problem:
If the readout protection is activated (RDP=0xbb), the bootloader command that deactivates it does a mass erase (as expected) but also a system reset (as documented in AN3155 p.34). As there is no access to the BOOT0 pin in my case, this system reset makes the MCU exit the bootloader code and renders the flashing impossible.
Questions:
Is there a solution to remove the readout protection and stay in the bootloader so the new firmware could be written to flash? Or another way to achieve the stated objective?
Thanks for reading!
PA
