can't erase MKE06 with j-link

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

can't erase MKE06 with j-link

1,480 Views
君刘
Contributor II

Executing flash operation 'Erase' (Erase flash) - Mon Oct 22 10:08:45 CST 2018
Checking MCU info...
Scanning for targets...
Executing flash action...
SEGGER J-Link Commander V6.35g (Compiled Oct 19 2018 17:35:25)
DLL version V6.35g, compiled Oct 19 2018 17:34:51
J-Link Command File read successfully.
Processing script file...
J-Link Commander will now exit on Error
J-Link connection not established yet but required for command.
Connecting to J-Link via USB...O.K.
Firmware: J-Link V9 compiled Jun 2 2222 22:22:22
Hardware version: V9.40
S/N: 59401308
License(s): GDB, RDI, FlashBP, FlashDL, JFlash, RDDI
VTref=4.534V
Target connection not established yet but required for command.
Device "MKE06Z128XXX4" selected.
Connecting to target via SWD
InitTarget()
Disable watchdog()
_TargetHalt: CPU did not halt.
Disable watchdog(): Watchdog enabled --> Disable it
Found SW-DP with ID 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: 0x410CC600. Implementer code: 0x41 (ARM)
Found Cortex-M0 r0p0, Little endian.
FPUnit: 2 code (BP) slots and 0 literal slots
CoreSight components:
ROMTbl[0] @ F0002000
ROMTbl[0][0]: 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
Executing SetupTarget()
Cortex-M0 identified.
Erasing device...
****** Error: Could not detect CPU clock speed. Download of test code into RAM failed.
****** Error: Failed to measure CPU clock frequency
ERROR: Erase returned with error code -1.
Script processing completed.
Unable to perform operation!
Command failed with exit code 1

ALSO can't program the mke06 with J-LINK.

Executing flash operation 'Erase' (Erase flash) - Mon Oct 22 10:31:47 CST 2018
Checking MCU info...
Scanning for targets...
Executing flash action...
SEGGER J-Link Commander V6.35g (Compiled Oct 19 2018 17:35:25)
DLL version V6.35g, compiled Oct 19 2018 17:34:51
J-Link Command File read successfully.
Processing script file...
J-Link Commander will now exit on Error
J-Link connection not established yet but required for command.
Connecting to J-Link via USB...O.K.
Firmware: J-Link V9 compiled Jun  2 2222 22:22:22
Hardware version: V9.40
S/N: 59401308
License(s): GDB, RDI, FlashBP, FlashDL, JFlash, RDDI
VTref=4.556V
Target connection not established yet but required for command.
Device "MKE06Z128XXX4" selected.
Connecting to target via SWD
InitTarget()
Disable watchdog()
Disable watchdog(): Watchdog enabled --> Disable it
Found SW-DP with ID 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: 0x410CC600. Implementer code: 0x41 (ARM)
Found Cortex-M0 r0p0, Little endian.
FPUnit: 2 code (BP) slots and 0 literal slots
CoreSight components:
ROMTbl[0] @ F0002000
ROMTbl[0][0]: 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
Executing SetupTarget()
Cortex-M0 identified.
Erasing device...
****** Error: Could not detect CPU clock speed. Download of test code into RAM failed.
****** Error: Failed to measure CPU clock frequency
ERROR: Erase returned with error code -1.
Script processing completed.
Unable to perform operation!
Command failed with exit code 1

pastedImage_1.png

Labels (1)
2 Replies

1,024 Views
君刘
Contributor II

pastedImage_1.png

program device will be ok when  i am using the J-FLASH.

1,024 Views
fatihozer123
Contributor I

Hi Gavin ,

I have the same problem with MKE16f256 . Did you find a solution ?

JLink info:
------------
DLL: V6.44h, compiled May 3 2019 17:37:09
Firmware: J-Link V9 compiled Oct 25 2018 11:46:07
Hardware: V9.40
S/N : **************** 
Feature(s) : RDI, GDB, FlashDL, FlashBP, JFlash

* JLink Info: InitTarget()
* JLink Info: Found SW-DP with ID 0x2BA01477
* JLink Info: Scanning AP map to find all available APs
* JLink Info: AP[2]: Stopped AP scan as end of AP map has been reached
* JLink Info: AP[0]: AHB-AP (IDR: 0x24770011)
* JLink Info: AP[1]: JTAG-AP (IDR: 0x001C0000)
* JLink Info: Iterating through AP map to find AHB-AP to use
* JLink Info: AP[0]: Core found
* JLink Info: AP[0]: AHB-AP ROM base: 0xE00FF000
* JLink Info: CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
* JLink Info: Found Cortex-M4 r0p1, Little endian.
* JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
* JLink Info: CoreSight components:
* JLink Info: ROMTbl[0] @ E00FF000
* JLink Info: ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7
* JLink Info: ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
* JLink Info: ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
* JLink Info: ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM
* JLink Info: ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU
ROMTableAddr = 0xE00FF000
* JLink Info: Reset: Failed. Toggling reset pin and trying reset strategy again.
* JLink Info: Found SW-DP with ID 0x2BA01477
* JLink Info: AP map detection skipped. Manually configured AP map found.
* JLink Info: AP[0]: AHB-AP (IDR: Not set)
* JLink Info: AP[0]: Core found
* JLink Info: AP[0]: AHB-AP ROM base: 0xE00FF000
* JLink Info: CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
* JLink Info: Found Cortex-M4 r0p1, Little endian.
* JLink Info: AfterResetTarget()
***JLink Error: Unsupported ResetType 6.

Target info:
------------
Device: MKE16F256VLH16
VTarget = 4.951V
State of Pins:
TCK: 0, TDI: 0, TDO: 0, TMS: 1, TRES: 1, TRST: 0
Hardware-Breakpoints: 6
Software-Breakpoints: 8192
Watchpoints: 4
JTAG speed: 4000 kHz

Erase Failed!
Error: Flash Download failed - "Cortex-M4"
Flash Load finished at 11:12:51

0 Kudos