AnsweredAssumed Answered

Problem with connect to MRB-KW019032EU by J-Link.

Question asked by Alexandr Smirnov on Oct 25, 2017
Latest reply on Nov 22, 2017 by Alexandr Smirnov

Hello, I’m having a problem with connect to MKW01Z128 on MRB-KW019032EU board. I took the J-Link, connect it to J5 on MRB (VTref to 1, GND to 3, SWDIO to 2, SWCLK to 4, RESET to 10). 


Connect MRB and J-Link by SWD


Connection from J-Link Commander is successful:

Please specify device / core. <Default>: MKW01Z128XXX4
Type '?' for selection dialog
Please specify target interface:
J) JTAG (Default)
Specify target interface speed [kHz]. <Default>: 4000 kHz
Device "MKW01Z128XXX4" selected.

Found SWD-DP with ID 0x0BC11477
Found SWD-DP with ID 0x0BC11477
AP-IDR: 0x04770031, Type: AHB-AP
AHB-AP ROM: 0xF0002000 (Base addr. of first ROM table)
Found Cortex-M0 r0p0, Little endian.
FPUnit: 2 code (BP) slots and 0 literal slots
CoreSight components:
ROMTbl 0 @ F0002000
ROMTbl 0 [0]: FFFFE000, CID: B105900D, PID: 000BB932 MTB-M0+
ROMTbl 0 [1]: FFFFF000, CID: B105900D, PID: 0008E000 MTBDWT
ROMTbl 0 [2]: F00FD000, CID: B105100D, PID: 000BB4C0 ROM Table
ROMTbl 1 @ E00FF000
ROMTbl 1 [0]: FFF0F000, CID: B105E00D, PID: 000BB008 SCS
ROMTbl 1 [1]: FFF02000, CID: B105E00D, PID: 000BB00A DWT
ROMTbl 1 [2]: FFF03000, CID: B105E00D, PID: 000BB00B FPB
Cortex-M0 identified.

But when I try to perform any operation with board (i.e. erase flash, download) from within IAR, I'm getting the following fault: "Failed to read CPUID for Cortex device. "

I get a similar error when trying to work with a board using the J-Flash utility: connect is succesfull:


Connecting ...
- Connecting via USB to J-Link device 0
- Target interface speed: 4000 kHz (Fixed)
- VTarget = 3.047V
- Initializing CPU core (Init sequence) ...
- Initialized successfully
- Target interface speed: 4000 kHz (Fixed)
- J-Link found 1 JTAG device. Core ID: 0x0BC11477 (None)
- Connected successfully

but when I try to erase chip, I'm getting fault:


Erasing chip ...
- 128 sectors, 1 range, 0x0 - 0x1FFFF
- Start of preparing flash programming
- ERROR: Failed to download RAMCode.
- ERROR: Failed to prepare for programming.
Failed to download RAMCode!
- End of preparing flash programming
- ERROR: Failed to erase chip