I have FRDM-K64F device and I wrote Flash algorithm for flash programming.
During flash programming, it seems that my device becomes permanent lock.
as Jlink commander tools give following error. (IIUC, my device become useless?)
Found SWD-DP with ID 0x2BA01477
Unlocking device...Unlock via debug port is disabled. Unlock failed.
Timeout while unlocking device.
My question is that, How can I avoid from such situation in future.
Could you please share with me a exact flash algorithm in some programing language to avoid permanent lock/secure board?