AnsweredAssumed Answered

j-link

Question asked by Tim Jones on Jul 17, 2016
Latest reply on Jul 19, 2016 by Hui_Ma

I am using a custom board, based on the FRDM-KL02Z but with an MKL02Z16xxx instead of an MKL02Z32xxx. For programming and debugging, I am using a J-link which is is both cases directly connected to the target CPU via Vcc, GND, SWD and SWCLK (no reset). Compiler is a Keil.

 

On the FRDM, everything works fine, I can program and debug the target CPU.

For the custom board, I had to change settings in the programmer but they are all now set for a see a MKL02Z32xxx.

However, I see a strange behavior:  Using the IDE, I always get the message that the CPU can't be reset.

On the other hand, if I reset and erase the CPU via the J-link commander, everything seems to be ok (but still fails sometimes).

 

Any idea?

 

 

 

================================= IDE MESSAGE===================

------------

DLL: V5.12e, compiled Apr 29 2016 15:03:58

Firmware: J-Link V9 compiled Mar 29 2016 18:46:37

Hardware: V9.30

S/N : 269304598

OEM : SEGGER-EDU

Feature(s) : FlashBP, GDB

 

* JLink Info: Found SWD-DP with ID 0x0BC11477

* JLink Info: Found SWD-DP with ID 0x0BC11477

* JLink Info: Found Cortex-M0 r0p0, Little endian.

* JLink Info: FPUnit: 2 code (BP) slots and 0 literal slots

* JLink Info: CoreSight components:

* JLink Info: ROMTbl 0 @ F0002000

* JLink Info: ROMTbl 0 [0]: FFFFE000, CID: B105900D, PID: 000BB932 MTB-M0+

* JLink Info: ROMTbl 0 [1]: FFFFF000, CID: B105900D, PID: 0008E000 MTBDWT

* JLink Info: ROMTbl 0 [2]: F00FD000, CID: B105100D, PID: 000BB4C0 ROM Table

* JLink Info: ROMTbl 1 @ E00FF000

* JLink Info: ROMTbl 1 [0]: FFF0F000, CID: B105E00D, PID: 000BB008 SCS

* JLink Info: ROMTbl 1 [1]: FFF02000, CID: B105E00D, PID: 000BB00A DWT

* JLink Info: ROMTbl 1 [2]: FFF03000, CID: B105E00D, PID: 000BB00B FPB

ROMTableAddr = 0xF0002000

* JLink Info: SYSRESETREQ has confused core. Trying to reconnect and use VECTRESET.

* JLink Info: Found SWD-DP with ID 0x0BC11477

**JLink Warning: Failed to reset CPU. VECTRESET has confused core.

**JLink Warning: CPU did not halt after reset.

**JLink Warning: CPU could not be halted

* JLink Info: Core did not halt after reset, trying to disable WDT.

**JLink Warning: CPU did not halt after reset.

**JLink Warning: CPU could not be halted

**JLink Warning: Could not set S_RESET_ST

* JLink Info: Found SWD-DP with ID 0x0BC11477

* JLink Info: SYSRESETREQ has confused core. Trying to reconnect and use VECTRESET.

* JLink Info: Found SWD-DP with ID 0x0BC11477

**JLink Warning: Failed to reset CPU. VECTRESET has confused core.

**JLink Warning: CPU did not halt after reset.

**JLink Warning: CPU could not be halted

* JLink Info: Core did not halt after reset, trying to disable WDT.

**JLink Warning: CPU did not halt after reset.

**JLink Warning: CPU could not be halted

**JLink Warning: Could not set S_RESET_ST

***JLink Error: DAP error while reading AIRCR / CPUID register

**JLink Warning: CPU could not be halted

 

Target info:

------------

Device: MKL02Z16xxx4

VTarget = 3.029V

State of Pins:

TCK: 0, TDI: 0, TDO: 0, TMS: 1, TRES: 1, TRST: 0

Hardware-Breakpoints: 0

Software-Breakpoints: 8192

Watchpoints:          0

JTAG speed: 500 kHz

 

Full Chip Erase Failed!

Flash Erase finished 12:35:03

Outcomes