SEGGER J-Link Commander V6.80d (Compiled Jun 26 2020 17:17:12) DLL version V6.80d, compiled Jun 26 2020 17:16:09 Connecting to J-Link via USB...O.K. Firmware: J-Link V11 compiled Jun 9 2020 13:38:27 Hardware version: V11.00 VTref=5.024V Type "connect" to establish a target connection, '?' for help J-Link>connect Please specify device / core. : MKE15Z256XXX7 Type '?' for selection dialog Device> Please specify target interface: J) JTAG (Default) S) SWD T) cJTAG TIF>S Specify target interface speed [kHz]. : 4000 kHz Speed> Device "MKE15Z256XXX7" selected. Connecting to target via SWD InitTarget() start InitTarget() InitTarget() end Found SW-DP with ID 0x0BC11477 DPIDR: 0x0BC11477 Scanning AP map to find all available APs AP[2]: Stopped AP scan as end of AP map has been reached AP[0]: AHB-AP (IDR: 0x04770031) AP[1]: JTAG-AP (IDR: 0x001C0020) Iterating through AP map to find AHB-AP to use AP[0]: Core found AP[0]: 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 CoreSight components: ROMTbl[0] @ F0002000 ROMTbl[0][0]: F0000000, CID: B105900D, PID: 001BB932 MTB-M0+ ROMTbl[0][1]: F0001000, CID: B105900D, PID: 0008E000 MTBDWT ROMTbl[0][2]: E00FF000, CID: B105100D, PID: 000BB4C0 ROM Table ROMTbl[1] @ E00FF000 ROMTbl[1][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS ROMTbl[1][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT ROMTbl[1][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB Cortex-M0 identified. J-Link>erase Erasing device... ****** Error: Failed to read back RAMCode for verification. Failed to prepare for programming. Failed to download RAMCode! ERROR: Erase returned with error code -1. J-Link>r Reset delay: 0 ms Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit. Reset: Halt core after reset via DEMCR.VC_CORERESET. Reset: Reset device via AIRCR.SYSRESETREQ. AfterResetTarget() start AfterResetTarget() AfterResetTarget() end J-Link>erase Erasing device... ****** Error: Failed to prepare for programming. Could not preserve target memory. ERROR: Erase returned with error code -1.