cancel
Showing results for 
Search instead for 
Did you mean: 

Lock FLASH from debugger

Linas L
Senior II

Hello. I need a simple way of locking flash so no once could clone my device very easy but at the same time i could do re-flashing to new code ( basically limit flash to write only from debugger/SWD perspective)

Is where easy way of doing this by simple registers ( or fuse bits like in AVR ) or i need to use safety software from STM ?

I know that it is possible to read data even if it's locket, it just need to be not that simple like hooking up to SWD, reading code and flashing to fake devices not produced by me.

1 REPLY 1
Uwe Bonnes
Principal II

Set the option byte to RDP. For reflash, reset RDP to unprotected. This will erase flash. Now flash again and reset RDP.