Problem using LPC-Link with own board

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem using LPC-Link with own board

330 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Jonathan Vincent on Tue Sep 25 06:38:26 MST 2012
Hi,

I was using the 1343 version of LPCXpresso to develop a product. Now I have the first version of the custom target board and have separated the LPC-Link from the breakout board, and connected this via the debug header to my target board (which has a matching header on it).

However, when trying to debug/download my code (previously fine for the LPCXpresso board) I get the following message:

Error launching Debug\....
02: Failed on connect: Ee(07). Bad ACK returned from status - wire error.:

I guess there could be many things wrong here, but could someone please give me some clues as to where to look... I am really not an expert on this. As far as I can tell the physical connections are ok (I've tried two cables, both of which tested ok), and the board's power supply checks out.

Thanks for any ideas,

JV
0 Kudos
7 Replies

313 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Jonathan Vincent on Tue Sep 25 12:37:06 MST 2012
Hey - I'm the weak hardware engineer!

OK, so I'm also the dodgy software engineer :rolleyes:
0 Kudos

313 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Tue Sep 25 11:18:55 MST 2012

Quote:

#1 - interesting, thanks - why are the pull up/down resistors missing from other boards for LPC1343?

Weak hardware engineers trust in weak internal pullups ;)

Quote:

#2 - no it doesn't - I did not realise they were needed...

See #1 :)

Quote:

#3 - don't really know what this is about - sorry

You'll learn this later when your SWD is failing. Or ask your hardware engineer why he has added an UART connector :confused:
0 Kudos

313 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Jonathan Vincent on Tue Sep 25 07:32:21 MST 2012
Well, it seems to be ok, at the moment - no idea what was the problem, though.

#1 - interesting, thanks - why are the pull up/down resistors missing from other boards for LPC1343?

#2 - no it doesn't - I did not realise they were needed...

#3 - don't really know what this is about - sorry :(
0 Kudos

313 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Tue Sep 25 07:22:01 MST 2012
#1 SWD connector is described in http://support.code-red-tech.com/CodeRedWiki/HardwareDebugConnections?action=show&redirect=CM3_SWD

#2 Does your board include Reset / ISP pullups?

#3 First step to get a new board working is to use FlashMagic and UART ISP. Did you try that already?
0 Kudos

313 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Jonathan Vincent on Tue Sep 25 07:21:45 MST 2012
Hmm, seem to have solved it for now... but no idea why it is working suddenly!

Would be nice to know exactly what I did, but...

Perhaps one of the wires is intermittent... maybe that fine pitch ribbon cable is a bit tender.
0 Kudos

313 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Jonathan Vincent on Tue Sep 25 07:09:46 MST 2012
Thanks.

As far as I know, it should be ok...

The target board has a 10 pin debug header like the LPC-Link, connected as follows:

[FONT=Courier New]3.3 *1  * SWDIO -> pin 39[/FONT]
[FONT=Courier New] GND *   * SWCLK -> pin 29[/FONT]
[FONT=Courier New] GND *   * SWO   -> pin 28[/FONT]
[FONT=Courier New] GND *   * n/c[/FONT]
[FONT=Courier New] GND *   * RESET -> pin 3[/FONT]

Apart from that, there is a 3.3 volt board supply (+ caps near the chip), crystal + caps, and everything else is either taken to an expansion header or used for on board analogue/digital I/O.

Unless I've missed something - like the need for pull-up resistors or some such, I can't see where the problem might lie...
0 Kudos

313 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Tue Sep 25 06:49:02 MST 2012
#1 Check your SWD, read #2 of http://knowledgebase.nxp.com/showthread.php?p=18603 ;)

#2 Check your board schematic against LPCXpresso :)
0 Kudos