LPC1768 programming via 10pin JTAG/SW


This my CAN project graduating from the MBED platform on to a prototype board I recently made up. When I was putting this board together, I considered using ISP as the main programming method. But thought if this project ever got some momentum, it would be good to have JTAG ready for debugging. As I would think the next logical step would be to progress to the full Keil MDK with JTAG debugging unit. Anyway I don't have that, but I when I was first considering getting into embedded programming I also brought a LPCXpresso LPC1343 Dev Board. This device comes with the LPC1343 target and a weird JTAG/SW debugging board, anyway not to waste what I have. I have made use of the 10pin JTAG/SW port on my new proto board and the LPCXpresso device I have lying around collecting dust.
Bottom View Showing LPC1768
Top View Showing 10pin JTAG/SW port
Schematic for 10pin JTAG/SW
LPCLink connected to my prototype
Below are some commands which I found useful.
crt_emu_cm3_nxp.exe -wire=winusb -pLPC1768 -info-target
crt_emu_cm3_nxp.exe -wire=winusb -pLPC1768 -flash-load=FishNChips_LPC1768.bin -load-base=0x0000
C:\nxp\lpcxpresso_3.3\bin>crt_emu_cm3_nxp.exe -wire=winusb -pLPC1768 -flash-load=FishNChips_LPC1768.bin -load-base=0x0000
Ni: LPCXpresso Debug Driver v2.0 (Apr  8 2010 14:58:49)
Nc: Looked for chip XML file in C:/nxp/lpcxpresso_3.3/bin/LPC1768.xml

Nc: Looked for vendor directory XML file in C:/nxp/lpcxpresso_3.3/bin/nxp_directory.xml

Nc: Found generic directory XML file in C:/nxp/lpcxpresso_3.3/bin/crt_directory.xml

Wc: XML Warning from file C:/nxp/lpcxpresso_3.3/bin/nxp_lpcxxxx.xme: Unknown attribute package
Nc: NXP: LPC1768  Part ID: 26013F37
Cr:v Registered license, download limit of 128K
Nt: Loading binary file 'FishNChips_LPC1768.bin' at location 00000000
Nc: nSRST assert (if available)
Nc: Executing in user flash.



05 Jul 2010

Thanks for the info.

This is quite useful since I too have an LPCXpresso board in the same fashion and can be used for this purpose.

Warm Regards,


14 Sep 2010

does the tdo pin on the custom board plug into the tdo on the programmer? Or does the jtag cable invert the tdo, tdi?

15 Sep 2010

Its straight cable so it would mean these pins are swapped at the debugging device end. Just wire it up like the above

15 Sep 2010

I've attached the schematic I used on my board but I keep getting an error when I try to load the binary with lpcxpresso:

"Ed:02: Failed to connect Ee<05>. No matching emulator found - make sure power is on and not in use already"

Its powered and I checked the connections. Is there something wrong with the circuit? Do I want TRST_N instead of NRESET?

15 Sep 2010

Do I not need the rtck pin?

15 Sep 2010

it looks correct,

in the directory below there is a shell script that starts with boot try running that before u run the flash command.




also try using the option hid, i found this worked with some versions of windows.


crt_emu_cm3_nxp.exe -wire=hid -pLPC1768 -flash-load=FishNChips_LPC1768.bin -load-base=0x0000

no you shouldnt  need the rtck pin

15 Sep 2010 . Edited: 15 Sep 2010

Thanks for the help got it to work! I had misplaced a component

You need to log in to post a comment