Content originally posted in LPCWare by lpcxpresso-support on Wed Aug 05 12:47:00 MST 2015
Off hand, I don't see anything wrong with your debug circuit provided you've connected the signals to the 10 pin debug connector as you've indicated. The JP1/JP2 settings on the Xpresso v2 probe are correct, but in practice, I don't think the JP2 setting matters. Perhaps the problem is elsewhere in your board design.
You haven't said anything about which LPCXpresso version you're using. The following example presumes you're using the latest LPCXpresso 7.9.0 release*
*As a quick experiment, use the Redlink server program (redlinkserv.exe) to determine whether you have any kind of debug capability to the LPC824.
1. On Windows, open a DOS command shell, and navigate to the LPCXpresso <installation>/bin directory. Be certain you first DFU a firmware probe to the Xpresso v2. On Windows, you can DFU the CMSIS-DAP probe using this command script:
boot_link2.cmd
or this command line:
dfu-util.exe -d 1fc9:000c -c 1 -t 2048 -R -D LPC432x_CMSIS_DAP_NB_V5_112.bin.hdr
Note Linux and Mac OS X hosts use a slightly different command line ('-c 0').
2. Start the Redlink server program
redlinkserv.exe -commandline
C:\nxp\LPCXpresso_7.9.0_455\lpcxpresso\bin>redlinkserv.exe -commandline
redlink>probelist
Index = 1
Manufacturer = NXP Semiconductors
Description = LPC-LINK2 CMSIS-DAP V5.112 NB
VID:PID = 1FC9:0090
Path = \\?\hid#vid_1fc9&pid_0090&mi_00#8&ff48f8a&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
redlink>probeopenbyindex 1
Probe Handle 1 Open
redlink>wireswdconnect 1
DpID = 0BC11477
redlink>coreconfig 1
Number of CORES/TAPs = 1, Fully recognized: True
redlink>corelist 1
TAP 0: 0BC11477 Core 0: M0 APID: 04770031
redlink>cmhalt 1 0
redlink>cmregs 1 0
R0 : 00000000
R1 : A5A5A5A5
R2 : 00000000
R3 : 00000001
R4 : A5A5A5A5
R5 : A5A5A5A5
R6 : A5A5A5A5
R7 : 10000948
R8 : A5A5A5A5
R9 : A5A5A5A5
R10 : A5A5A5A5
R11 : A5A5A5A5
R12 : A5A5A5A5
SP : 10000948
LR : 00000D0D
PC : 0000031C
PSR : 61000000
MSP : 10001FA0
PSP : 10000948
CFBP: 02000000
redlink>probeclosebyindex 1
Probe Handle 1 Closed
redlink>exit
You'll know after the WIRESWDCONNECT command whether or not you have a debug connection to the target.
Thanks and regards,
LPCXpresso-Support