Hi Xing Chang,
I am working on KW36 micro and I am using J Link Plus debugger to flash the firmware using J Link commander v6.44.
For one of our application, I need to do read/write/erase part of the internal flash. Which caused the device unusable. Tried to do unlock as per the instructions from JLink unlock is successful but fails in erasing the flash.
Please find the below and attached logs from J Link commander:
Please specify device/core. <Default>: MKW36Z512XXX4
Type '?' for selection dialog
Please specify the target interface:
- J) JTAG (Default)
- S) SWD
- T) cJTAG
Specify the target interface speed [kHz]. <Default>: 4000 kHz
Device "MKW36Z512XXX4" selected.
Connecting to target via SWD
Readout protection is set and mass erase is disabled. J-Link cannot unprotect th
Found SW-DP with ID 0x0BC11477
Scanning AP map to find all available APs
AP: Stopped AP scan as end of AP map has been reached
AP: AHB-AP (IDR: 0x04770031)
AP: JTAG-AP (IDR: 0x001C0020)
Iterating through AP map to find AHB-AP to use
AP: Core found
AP: AHB-AP ROM base: 0xF0002000
CPUID register: 0x410CC601. Implementer code: 0x41 (ARM)
Found Cortex-M0 r0p1, Little endian.
FPUnit: 2 code (BP) slots and 0 literal slots
ROMTbl @ F0002000
ROMTbl: F0000000, CID: B105900D, PID: 001BB932 MTB-M0+
ROMTbl: F0001000, CID: B105900D, PID: 0008E000 MTBDWT
ROMTbl: E00FF000, CID: B105100D, PID: 000BB4C0 ROM Table
ROMTbl @ E00FF000
ROMTbl: E000E000, CID: B105E00D, PID: 000BB008 SCS
ROMTbl: E0001000, CID: B105E00D, PID: 000BB00A DWT
ROMTbl: E0002000, CID: B105E00D, PID: 000BB00B FPB
Found SWD-DP with ID 0x0BC11477
****** Error: Failed to erase sectors 0 @ address 0x00000000 (Unspecified error
J-Link: Flash download: Total time needed: 0.066s (Prepare: 0.055s, Compare: 0.0
00s, Erase: 0.005s, Program: 0.000s, Verify: 0.000s, Restore: 0.005s)
ERROR: Erase returned with error code -5.