10 years, 5 months ago.

LPCXpresso mbed LPC1768 CMSIS-DAP Error

I've exported the online compiler blinky LED project for import into LPCXpresso which all works and I'm able to build debug and release binaries. The binaries when dragged on my mbed will run as expected.

However when I try to run using the debugger I get the following error:

LPCXpresso RedlinkMulti Driver v6.0 (Nov 20 2013 07:01:29 - crt_emu_cm_redlink build 252)
Looked for chip XML file in C:/nxp/LPCXpresso_6.1.2_177/lpcxpresso/bin/LPC1768.xml
Looked for vendor directory XML file in C:/nxp/LPCXpresso_6.1.2_177/lpcxpresso/bin/NXP_directory.xml
Found generic directory XML file in C:/nxp/LPCXpresso_6.1.2_177/lpcxpresso/bin/crt_directory.xml
Emu(0): Conn&Reset. DpID: 2BA01477. CpuID: 410FC230. Info: (null)
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Loaded LPC175x_6x_512.cfx: LPC175x_6x (512K) Apr 22 2013 12:14:31  On-chip Flash Memory
Connected: was_reset=true. was_stopped=false
v LPCXpresso Free License - Download limit is 256K
Writing 2704 bytes to 0000 in Flash (assumed clock: unknown)
Erased/Wrote page  0-0 with 2704 bytes in 1449msec
Flash write Done
Stopped (Was Reset)  [Reset from Unknown]
Could not start execution from stop: Ee(FF). Undocumented error.

Redlink Server output

[Connected on port 3025]
redlink>
redlink>ProbeList
Index = 1
Manufacturer = MBED
Description = MBED CMSIS-DAP
VID = 0D28, PID=0204
Path = \\?\hid#vid_0d28&pid_0204&mi_03#8&113def8d&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
redlink>ProbeStatus
Index = 1
Manufacturer = MBED
Description = MBED CMSIS-DAP
VID = 0D28, PID=0204
Path = \\?\hid#vid_0d28&pid_0204&mi_03#8&113def8d&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
IsOpen = FALSE
WireInitialized = FALSE
WireProtocol = SWD
CoresConfigured = FALSE
PacketSize = 64
Probe Reference Count = 0
HasSWV = FALSE
HasETM = FALSE
HasJTAG = FALSE
HasSWD = TRUE
Probe Type = CMSISDAP
redlink>ProbeIsOpen 1
FALSE
redlink>ProbeOpenByIndex 1
Handle = 0x00000001 = 1
redlink>WireIsConnected 1
FALSE
redlink>WireSwdConnect 1
DpID = 00000000
redlink>CoresConfigured 1
FALSE
redlink>CoreConfig 1
Number of CORES/TAPs = 1, Fully recognized: True
redlink>close
[Closed]

I know it's not much to go on but any advice would be useful.

The error seems to be generated because after the image is downloaded to the device it restarts which upsets the CMSIS-DAP connection. If I manually copy the image to the device and then start a debug it works.

posted by Rob Cawsey 08 Jan 2014
Be the first to answer this question.