AnsweredAssumed Answered

Problems debuging: chip initialization failed - Em(17) error

Question asked by Oscar Niño on Jul 24, 2018
Latest reply on Jul 30, 2018 by Oscar Niño

Hi 

I´m working with the LPCXpresso54018 board and the LPCXpresso54608 board, I was working fine but then, it started to have troubles some times I can debug and some times I cannot. Then when I tried to debug it started to show this error:

 

MCUXpresso IDE RedlinkMulti Driver v10.2 (May 10 2018 18:10:59 - crt_emu_cm_redlink build 510)
Found chip XML file in C:/Users/Ant/Documents/MCUXpressoIDE_10.2.0_759/workspace/lpcxpresso54018_emwin_touch_and_draw/Debug\LPC54018.xml
Reconnected to existing link server
Connecting to probe 1 core 0:0 (using server started externally) gave 'OK'
Probe Firmware: LPC-LINK2 CMSIS-DAP V5.183 (NXP Semiconductors)
Serial Number: KXBUA3AU
VID:PID: 1FC9:0090
USB Path: \\?\hid#vid_1fc9&pid_0090&mi_00#7&384c4213&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
Using memory from core 0:0 after searching for a good core
Expecting vector catch on SYSRESETREQ signal
debug interface type = Cortex-M3/4 (DAP DP ID 2BA01477) over SWD TAP 0
processor type = Cortex-M4 (CPU ID 00000C24) on DAP AP 0
number of h/w breakpoints = 6
number of flash patches = 2
number of h/w watchpoints = 4
Probe(0): Connected&Reset. DpID: 2BA01477. CpuID: 00000C24. Info: <None>
Debug protocol: SWD. RTCK: Disabled. Vector catch: Enabled.
Content of CoreSight Debug ROM(s):
RBASE E00FF000: CID B105100D PID 04000BB4C4 ROM dev (type 0x1)
ROM 1 E000E000: CID B105E00D PID 04000BB00C ChipIP dev SCS (type 0x0)
ROM 1 E0001000: CID B105E00D PID 04003BB002 ChipIP dev DWT (type 0x0)
ROM 1 E0002000: CID B105E00D PID 04002BB003 ChipIP dev FPB (type 0x0)
ROM 1 E0000000: CID B105E00D PID 04003BB001 ChipIP dev ITM (type 0x0)
ROM 1 E0040000: CID B105900D PID 04000BB9A1 CoreSight dev TPIU type 0x11 Trace Sink - TPIU
ROM 1 E0041000: CID B105900D PID 04000BB925 CoreSight dev ETM type 0x13 Trace Source - core
Inspected v.2 External Flash Device on SPI LPC540xx_SPIFI_GENERIC.cfx
Image 'LPC5460x Generic SPIFI Nov 14 2017 15:01:10'
Opening flash driver LPC540xx_SPIFI_GENERIC.cfx
using SOFT reset to run the flash driver
After error Ee(04). Wire Error -
Failed to read address register in DAP - Nn(05). Wire ACK Fault in DAP access
flash driver polled mailbox (8 bytes at 0x2000B728) read failed (on poll 1/301) - retrying after 1ms - rc Em(17). Debug port inaccessible after access at location 0x2000B728
After error Ee(04). Wire Error -
Failed to read address register in DAP - Nn(05). Wire ACK Fault in DAP access
flash driver polled mailbox (8 bytes at 0x2000B728) read failed (on poll 1/301) - halting for postmortem - rc Em(17). Debug port inaccessible after access at location 0x2000B728
Cannot halt processor
failed to halt target for postmortem - rc Ep(04). Cannot halt processor.
failed to read registers - Ep(08). Cannot access core regs when target running.
Flash Driver V.2 startup failed - rc Em(17). Debug port inaccessible after access at location 0x2000B728
chip initialization failed - Em(17). Debug port inaccessible after access at location 0x2000B728
NXP: LPC54018
Connected: was_reset=true. was_stopped=false
Awaiting telnet connection to port 3330 ...
GDB nonstop mode enabled
Cannot halt processor
Could not stop execution from running: Ep(04). Cannot halt processor.

 

I got stock in this and this is urgent to my work could anybody help me?

 

I´m working with MCUXpresso IDE, I´m using LPCXpresso54018 and LPCXpresso54608 boards, I´m using LPC-Link 2 board like a second option and USB port of the board like my first one.

Outcomes