cancel
Showing results for 
Search instead for 
Did you mean: 

STM32f4xx read protection problem

asecen89
Associate II
Posted on July 08, 2014 at 10:17

Hi,

I am trying to configure STM32F427 option byte to enable read out protection. I can configure it via ST-Link Utility; first I download my actual code that will run on microcontroller then I enable the read out protection via ST-Link Utlity. When I do this, protection is enabled but the code on microcontroller does not work anymore. Am I doing someting wrong here, what is your opinion? 
1 REPLY 1
ssoulieres
Associate
Posted on September 26, 2014 at 12:32

Ran into the very same problem recently with an STM32F303.

Its reference manual mentions:

''

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.

''

The solution is therefore to turn off the power to the STM32, and then turn it back on. Your firmware will then run just as well as before.