Using LPCXpresso JTAG to program a Custom board

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

Using LPCXpresso JTAG to program a Custom board

1,205 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gminnucci on Mon Apr 08 07:19:08 MST 2013
Hi Pals,

I trying to program a custom board with JTAG programmer of my LPC1769 Stick.

If cutted the jumpers of J6 and placed a connection cable to my board.
I've checked power supply, and JTAG connections and there were ok but I get this message from IDE:
[B]02: Failed on connect
Target marked as not debuggable.
Emu(0): Connected. Was: None. DpID:     EDB6. Info: WIN64HS12
[/B]
Any tips ?
Thanks in advance.
Gus
0 Kudos
15 Replies

986 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gminnucci on Tue Apr 16 10:01:00 MST 2013

Quote: R2D2
So your board is working ?


Yes.
There was a soldering problem. I've found it with a microscope :)
Regards,
Gus
0 Kudos

986 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Mon Apr 15 13:37:46 MST 2013

Quote: Gustavo
Thanks to all for the help provided.
Regards.
Gus



So your board is working ?
0 Kudos

986 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gminnucci on Mon Apr 15 13:13:23 MST 2013
Thanks to all for the help provided.
Regards.
Gus
0 Kudos

986 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Thu Apr 11 09:30:15 MST 2013

Quote: Gustavo
Is there any consideration to take advice for the first time you power a brand new processor ?
I mean, I just bought the LPC1769 and solder on the PCB.
For instance, does the oscillator may work the first time ?
Could I program the device via SWD for the first time or I should use ISP ?

Other Question:
The  chip has 3 points over its surface (Labeled A-B-C in the photo). One of  them indicates PIN 1. which one is ? (Information in the datasheet it  is not precise...)



Pin 1 mark is the little one, your LPC is soldered in correctly :)

A new LPC is empty, so it's starting in ISP anyway. Then it's working with IRC, so SWD and ISP are both possible. But of course using ISP via FlashMagic is a safer way to start. Just connect a Serial to USB converter and you know if your basic hardware (power supply, pullups...) is working.

If that's not working, your have a hardware problem (or used a wrong schematic):eek:
0 Kudos

986 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gminnucci on Thu Apr 11 09:04:23 MST 2013

Quote: Serge
LPC1769 is SWD, not JTAG. Did you connect the SWD pins?




Is there any consideration to take advice for the first time you power a brand new processor ?
I mean, I just bought the LPC1769 and solder on the PCB.
For instance, does the oscillator may work the first time ?
Could I program the device via SWD for the first time or I should use ISP ?

Other Question:
The  chip has 3 points over its surface (Labeled A-B-C in the photo). One of  them indicates PIN 1. which one is ? (Information in the datasheet it  is not precise...)

Thx...

     :confused: I'm blind with this stuff....
Thx in advance to all...
0 Kudos

986 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Wed Apr 10 08:47:05 MST 2013

Quote: Gustavo
I've reconnected it but this seems not to be the problem...
.. but still the same prob.



Wrong Reset is a problem :) Obviously your hardware has still other problems :)
0 Kudos

986 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gminnucci on Wed Apr 10 08:43:17 MST 2013

Quote: R2D2
Wrong Reset connection :eek:

Minimal SWD is:

J4-3  SWDIO     - LPC1769-3
J4-5  SWDCLK - LPC1769-5
[COLOR=Red]J4-11 Reset        - LPC1769-17[/COLOR]
J4-15 GND        - LPC1769-GND



I've reconnected it but this seems not to be the problem...
.. but still the same prob.
0 Kudos

987 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Wed Apr 10 07:53:42 MST 2013
Wrong Reset connection :eek:

Minimal SWD is:

J4-3  SWDIO     - LPC1769-3
J4-5  SWDCLK - LPC1769-5
[COLOR=Red]J4-11 Reset        - LPC1769-17[/COLOR]
J4-15 GND        - LPC1769-GND
0 Kudos

987 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gminnucci on Wed Apr 10 07:17:01 MST 2013

Quote: Serge
LPC1769 is SWD, not JTAG. Did you connect the SWD pins?



I connected the programmer like this:

[B]LPCXpresso board   -> Custom PCB[/B]
TMS (SWDIO)    (Pin 03 - J4 Connector)       -> TMS   (Pin 03) LPC1769
TCLK (SWCLK) (Pin 05 - J4 Connector)       -> TCLK (Pin 05) LPC1769
TDO (SWO)         (Pin 07 - J4 Connector)       -> TDO   (Pin 01) LPC1769
TDI (TDI)              (Pin 09 - J4 Connector)      -> TDI     (Pin 02) LPC1769
JTAG_RESET       (Pin 11 - J4 Connector)      -> TRST  (Pin 04) LPC1769
GND                      (Pin 15 - J4 Connector)      -> GND

The LPCXpresso is connected and powered by the USB interface.
The Custom board is powered with its own power supply.
0 Kudos

986 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by serge on Tue Apr 09 00:21:43 MST 2013
LPC1769 is SWD, not JTAG. Did you connect the SWD pins?
0 Kudos

986 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Mon Apr 08 08:55:04 MST 2013
http://lmgtfy.com/?q=target+marked+as+not+debuggable
0 Kudos

986 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gminnucci on Mon Apr 08 08:41:12 MST 2013

Quote: TheFallGuy
Now check it again. And again, until you find your mistake.



LOL.... :)
What does the error mean ?
[B]I also have this:
Error in final launch sequence
Failed to execute MI command:
-target-select extended-remote | crt_emu_cm3_nxp -msg-port=2638 -g -mi -2 -pLPC1769 -vendor=NXP -wire=winUSB
Error message from debugger back end:
Remote communication error.  Target disconnected.: No error.
Remote communication error.  Target disconnected.: No error.[/B]
0 Kudos

986 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Mon Apr 08 08:13:26 MST 2013
Now check it again. And again, until you find your mistake.
0 Kudos

986 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gminnucci on Mon Apr 08 07:57:35 MST 2013

Quote: TheFallGuy
Check power.

Also see:
http://support.code-red-tech.com/CodeRedWiki/HardwareDebugConnections




Power is OK.
I've also read the article...

Any other clues ?
Thx in advance.
Gustavo
0 Kudos

986 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Mon Apr 08 07:35:47 MST 2013
Check power.

Also see:
http://support.code-red-tech.com/CodeRedWiki/HardwareDebugConnections
0 Kudos