2014-06-23 11:36 PM
I am downloading file to chip with stlink/V2, the command line tool works fine for me.
However, if the chip is on protect statue, the command line tool failed with below log:
>>> Erasing PROGRAM MEMORY
The device is protected
Operation aborted
Could anyone give me some clue on how to unlock the protection?
BTW, if the chip is protected by Jlink's ''secure chip'', can stvp unlock it?
#st-link/v2-stvp #stm322014-06-24 02:27 AM
Hello,
You have to reprogram the option bytes to unprotect the device. First use STVP to save the option bytes filename Opt_filename.hex with RDP at level 0. Then use argument -FileOption=Opt_filename.hex in cmd line tool. Regards, Laurent2014-07-02 08:51 PM
Thanks, works for me.
2014-07-03 12:56 AM
Hello,
I didn't see the 2nd question, if the Jlink ''secure chip'' is the ST option ''Chip protection (level 2)'': No tool can unprotect it. The device is then like a ROM device without any debug/reprog possible. Rgds, Laurent