I have a problem with FRDM-KL46Z, I've tried to unlock by using Jlink commands and got the following error :
C:\Users\PhuongDM1>Jlink.exe -device MKL46Z256XXX4 -if SWD -speed 4000 -jtagconf -1,-1 -autoconnect 1
SEGGER J-Link Commander V5.12d (Compiled Apr 26 2016 19:20:11)
DLL version V5.12d, compiled Apr 26 2016 19:19:35
Connecting to J-Link via USB...O.K.
Firmware: J-Link OpenSDA 2 compiled Oct 13 2015 12:10:56
Hardware version: V1.00
S/N: 621000000
VTref = 3.300V
Device "MKL46Z256XXX4" selected.
Found SWD-DP with ID 0x0BC11477
****** Error: Kinetis (connect): Protection bytes in flash at addr. 0x400 - 0x40F indicate that readout protection is set and mass erase is disabled.
J-Link cannot unprotect the device.
Kinetis (connect): Failed to unsecure Kinetis device.
Found SWD-DP with ID 0x0BC11477
****** Error: Kinetis (connect): Protection bytes in flash at addr. 0x400 - 0x40F indicate that readout protection is set and mass erase is disabled.
J-Link cannot unprotect the device.
Kinetis (connect): Failed to unsecure Kinetis device.
Found SWD-DP with ID 0x0BC11477
****** Error: Kinetis (connect): Protection bytes in flash at addr. 0x400 - 0x40F indicate that readout protection is set and mass erase is disabled.
J-Link cannot unprotect the device.
Kinetis (connect): Failed to unsecure Kinetis device.
Found SWD-DP with ID 0x0BC11477
****** Error: Kinetis (connect): Protection bytes in flash at addr. 0x400 - 0x40F indicate that readout protection is set and mass erase is disabled.
J-Link cannot unprotect the device.
Kinetis (connect): Failed to unsecure Kinetis device.
Can not connect to target.
J-Link>unlock Kinetis
Found SWD-DP with ID 0x0BC11477
Unlocking device...Unlock via debug port is disabled. Unlock failed.
Timeout while unlocking device.
J-Link>
Please help me to unbrick the board.
Thank you very much.