Dears,
I would like to ask you for advice on your JLink tools. I am
trying to do FLASH erase on my secure Kinetis MKV31F512xxx12 device.
I would like to use J-link for this. Unfortunately I can’t
erase it due to device is secured. I do the following with JLink commander:
J-Link>device MKV31F512xxx12
Info: Device "MKV31F512XXX12" selected (512 KB
flash, 96 KB RAM).
Reconnecting to target...
Info: TotalIRLen = 4, IRPrint = 0x01
Info: TotalIRLen = 4, IRPrint = 0x01
Info: Found Cortex-M4 r0p1, Little endian.
Info: FPUnit: 6 code (BP) slots and 2 literal slots
Info: TPIU fitted.
J-Link>unlock Kinetis
Found SWD-DP with ID 0x2BA01477
Unlocking device…O.K.
J-Link>erase
Erasing device (MKV31F512xxx12)…
****** Error: Failed to erase
sectors 8 @ address 0x00004000 (Algo135: Flash protection violation. Flash is
write-protected.)
Info: J-Link: Flash download: Total
time needed: 1.155s (Prepare: 0.689s, Compare: 0.000s, Erase: 0.067s, Program:
0.000s, Verify: 0.000s, Restore: 0.398s)
ERROR: Erase returned with error
code -5.
Is there a way to unlock secured device and erase it?
Thanks for your advice.
Regards,
Peter
I would like to ask you for advice on your JLink tools. I am
trying to do FLASH erase on my secure Kinetis MKV31F512xxx12 device.
I would like to use J-link for this. Unfortunately I can’t
erase it due to device is secured. I do the following with JLink commander:
J-Link>device MKV31F512xxx12
Info: Device "MKV31F512XXX12" selected (512 KB
flash, 96 KB RAM).
Reconnecting to target...
Info: TotalIRLen = 4, IRPrint = 0x01
Info: TotalIRLen = 4, IRPrint = 0x01
Info: Found Cortex-M4 r0p1, Little endian.
Info: FPUnit: 6 code (BP) slots and 2 literal slots
Info: TPIU fitted.
J-Link>unlock Kinetis
Found SWD-DP with ID 0x2BA01477
Unlocking device…O.K.
J-Link>erase
Erasing device (MKV31F512xxx12)…
****** Error: Failed to erase
sectors 8 @ address 0x00004000 (Algo135: Flash protection violation. Flash is
write-protected.)
Info: J-Link: Flash download: Total
time needed: 1.155s (Prepare: 0.689s, Compare: 0.000s, Erase: 0.067s, Program:
0.000s, Verify: 0.000s, Restore: 0.398s)
ERROR: Erase returned with error
code -5.
Is there a way to unlock secured device and erase it?
Thanks for your advice.
Regards,
Peter