将调试器的模式改为“mass erase”,重新烧录一下程序即可解锁。
以下摘自K60官方参考手册有关“Security Interactions with Debug”的说明:
When flash security is active the JTAG port cannot access the memory resources of the
MCU. Boundary scan chain operations work, but debugging capabilities are disabled so
that the debug port cannot read flash contents.
Although most debug functions are disabled, the debugger can write to the Flash Mass
Erase in Progress bit in the MDM-AP Control register to trigger a mass erase (Erase All
Blocks) command. A mass erase via the debugger is allowed even when some memory
locations are protected.
When mass erase is disabled, mass erase via the debugger is blocked.