LPC-Link/JTAG debug with alternate target board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC-Link/JTAG debug with alternate target board

1,589 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dbrunell on Mon Aug 30 15:07:05 MST 2010
I have a 1768 LPCXpresso board, and the IDE and debugger work fine with it.  However, I want to use this other LPC1768 board for development.  I've separated the LPC-Link from the original target board and verified that they still work when connected with a cable.  However, when I try to debug via JTAG on the other development board, I get one of the following two errors:

1. Remote communication error: No error.
2. Failed on connect: Ee(02). Not connected to emulator.

I double-checked the JTAG cable wiring, but I don't see a problem.  The board definitely works as it is running the software that came preloaded.  Any ideas?  Do I need any special target-side code to make the LPC-Link work?  Thanks.
0 Kudos
Reply
4 Replies

1,545 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dbrunell on Wed Sep 01 14:31:17 MST 2010
[FONT=Arial][SIZE=3]Hello everyone,

Thank you for your replies.  It turns out the board has a built-in  J-Link which must be bypassed (connect JP4) in order to use JTAG  directly.  This was not easy to determine, given that all of the  documentation is in Chinese. :confused:  However, I can otherwise recommend the board as it is equivalent to a Keil MCB1760 plus J-Link for only USD 90.

Kind regards,

David
[/SIZE][/FONT]
0 Kudos
Reply

1,545 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Luis Digital on Mon Aug 30 19:31:35 MST 2010
Hello,

I had a similar error with my "card", the problem was the oscillator.

Be sure to use a 12 MHz crystal.
0 Kudos
Reply

1,545 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Mon Aug 30 18:24:47 MST 2010
A simple way to connect SWD is J4:

http://www.flickr.com/photos/58892165@N08/5406234290/

J4-3 SWDIO -Blue
J4-5 SWDCLK -Yellow
J4-11 Reset -Orange
J4-15 GND -Black
0 Kudos
Reply

1,545 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Mon Aug 30 17:37:45 MST 2010
Debugging is done via "Serial Wire Debug" (SWD) with SWDCLK, SWDIO and GND. (SWO is not used by LPCXpresso). So you just have to connect this 3 wires. Your error message shows that this connection failed. You don't need any special target software, LPCXpresso is doing everthing for you after starting a Debug Session.:)
0 Kudos
Reply