cancel
Showing results for 
Search instead for 
Did you mean: 

NVIC_SystemReset not working

daviddavid942
Associate II
Posted on March 30, 2010 at 14:52

NVIC_SystemReset not working

11 REPLIES 11
mrost9
Associate II
Posted on May 17, 2011 at 13:45

I remember having read something about the security countermeasures against circumventing the ROP with debuggers. (Sorry, I can't remember which document it was, I'm sure it was one of the app notes on the ST site.)

Maybe the flash gets erased when you disable ROP with the debugger connected?

Edit: Of course it's the Flash programming manual, PM0042.

daviddavid942
Associate II
Posted on May 17, 2011 at 13:45

Hi rost,

yes, from PM0042:

<<

2.4.1 Read protection

The read protection is activated by setting the RDP option byte and then, by applying a

system reset to reload the new RDP option byte.

Note: 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 (without debugger connection).

 

>>

 

 

If I program the board with the debugger (ROP activated), disconnect the device and do a POR, all works fine.

The problem was that I did the POR when debugger cable connected (debugger was deactivated, I was not debugging, it was just the cable).

So we really need to disconnect jtag cable, even if the debugger is not activated.

Good to know, but it maybe is just a problem/flaw of my ULINK.

Thanks