cancel
Showing results for 
Search instead for 
Did you mean: 

Does WriteProtection require POR with JTAG/SWD connected?

FDane
Associate II

I'm enabling write protection on the flash on my STM32l451RE, but as soon as the OB Launch is called while the debugger is connected through JTAG/SWED, when the device restarts it seems like it enters an unknown state, just as I would have expected for Read Protection according to the following text in RM0394 Rev 4:

"If the read protection is set while the debugger is still connected through JTAG/SWD, apply

a POR (power-on reset) instead of a system reset."

However, I cannot find any such note regarding Write Protection.

Furthermore, I am not changing the RDP register, which is set to 0xAA (level 0).

If I flash the device and remove my SWD connection, then everything works exactly as expected however.

0 REPLIES 0