2010-03-30 05:52 AM
NVIC_SystemReset not working
2011-05-17 04:45 AM
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.2011-05-17 04:45 AM
Hi rost,
yes, from PM0042: <<2.4.1 Read protectionThe 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