2019-07-21 04:53 AM
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.
2019-07-21 05:18 AM
Set the option byte to RDP. For reflash, reset RDP to unprotected. This will erase flash. Now flash again and reset RDP.