What is the minimum requirement for SWD connection with LPC1114 ?

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

What is the minimum requirement for SWD connection with LPC1114 ?

2,501 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by noritan_org on Thu Feb 04 05:39:18 MST 2010
I have separated the "LPCXpresso board" into "LPC-Link" and "LPC1114 target" boards. Then, I would like to connect them with the 8-pin SWD interface. Which signals MUST be connected to debug ?

For example,

9-10 TDI Unused. No connection required.
15-16 GNDX OK, I will connect them.
0 Kudos
Reply
9 Replies

2,323 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by muhammadatif on Thu Feb 16 01:20:45 MST 2012
Has anyone programmed an LPC chip with an STM32VL discovery using SWD? The STM32VL SWD port does not include a reset outout.
0 Kudos
Reply

2,323 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rkiryanov on Sat Feb 13 00:48:20 MST 2010

Quote: noritan_org
Minimum requirements are



Exactly as I say in #2.
0 Kudos
Reply

2,323 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by noritan_org on Fri Feb 12 20:28:27 MST 2010
I have confirmed with my LPCXpresso board with LPC1114.

1) When an external power supply is attached to VIO_3V3X
At first three wires, GNDX, SWDIOX, and SWCLKX, are connected. When the debugger begins, LPC1114 stops its operation and following messages are reported.

Quote:
LPCXpresso Debug Driver v2.0 (Jan 12 2010 15:12:48)
Looked for chip XML file in C:/Programs/NXP/lpcxpresso_3.2/bin/LPC1114/301.xml
Looked for vendor directory XML file in C:/Programs/NXP/lpcxpresso_3.2/bin/nxp_directory.xml
Found generic directory XML file in C:/Programs/NXP/lpcxpresso_3.2/bin/crt_directory.xml
NXP: LPC1114/301  Part ID: 0444102B
Connected: was_reset=true. was_stopped=false
Writing 1176 bytes to 0000 in Flash (assumed clock: 48.0MHz)
Verified-same page 0-0 with 1176 bytes in 433msec
Flash write Done
nSRST assert (if available)
Executing in user flash.
Stopped
GDB trying to set entry point of 0x00C1, but correct entry is 0x01A0
nSRST assert (if available)
Executing in user flash.

Because no DEBUG view appears, no execution menu available on "Run" menu, it is not available to debug.
When RESETX wire is added, the debugger works as well as before LPCXpresso board separated.


2) When VIO_3V3X is connected with LPC-Link part of LPCXpresso.
At first four wires, VIO_3V3X, GNDX, SWDIOX, and SWCLKX, are connected. When the debugger begins, LPC1114 stops its operation  and followings messages are reported.

Quote:
LPCXpresso Debug Driver v2.0 (Jan 12 2010 15:12:48)
Looked for chip XML file in C:/Programs/NXP/lpcxpresso_3.2/bin/LPC1114/301.xml
Looked for vendor directory XML file in C:/Programs/NXP/lpcxpresso_3.2/bin/nxp_directory.xml
Found generic directory XML file in C:/Programs/NXP/lpcxpresso_3.2/bin/crt_directory.xml
NXP: LPC1114/301  Part ID: 0444102B
Connected: was_reset=true. was_stopped=false
Writing 1176 bytes to 0000 in Flash (assumed clock: 48.0MHz)
Verified-same page 0-0 with 1176 bytes in 434msec
Flash write Done
nSRST assert (if available)
Executing in user flash.
Stopped
GDB trying to set entry point of 0x00C1, but correct entry is 0x019C
nSRST assert (if available)
Executing in user flash.

Because no DEBUG view appears, no execution menu available on "Run" menu, it is not available to debug.
When RESETX wire is added, the debugger works as well as before LPCXpresso board separated.

As a conclusion, RESETX should be connected regardless of the supply the VIO_3V3X by the LPC-Link part of LPCXpresso board.

Minimum requirements are :
GNDX, SWDIOX, SWDCLKX, and RESETX

VIO_3V3X is optional.
0 Kudos
Reply

2,323 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by noritan_org on Tue Feb 09 05:52:13 MST 2010
Thank you for your reply.

I understand what is ISP.
I have confused with what is implemented in AVR microcontrollers. :)

In the user manual UM10398 chapter 17 says, PIO0_1 is used to enter to the ISP mode and PIO0_1 is HI-Z as default.  So it is required to add an external pull-up not to enter to the ISP mode in normal operation.
But, LPCXpresso board has no such a pull-up device.  Why not ?
In the other hand, chapter 7 says, pull-up of PIO0_1 pin is enabled in reset.  Which is correct information ?
I am going to create an another thread.

Anyway, I am live in MIYAGI, 300km north from TOKYO.  So, it is very hard to go to Akizuki to buy an interface board.  But I think I already have enough parts to make an interface board.  I will try to say HELLO in ISP mode with my PC.
0 Kudos
Reply

2,323 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ktownsend on Tue Feb 09 03:43:56 MST 2010
ISP (and how to enter ISP mode) is fully described in the user manual.  It shouldn't be that hard to figure out with a bit of effort/reading.  In any case, if you want to do something useful with the LPCXpresso board your going to have to just do some trial-and-error experimenting yourself and see what works and what doesn't.  Why not just hook it up and see what works? :)

SWD is quite new, and I had a number of questions myself designing my own 1114 and 1343 boards ... but you can answer most questions by looking at the schematics for other boards (Keil, Olimex, etc.) and from the User Manual/Datasheet, and with a bit of effort/google.

ISP, in any case, is very simple and shouldn't take any effort to understand how to enable it (search for ISP in the user manual).  You can enter ISP mode with a simple jumper cable (I'll let you figure out how), though on the LPC1114 (since it has no USB bootloader like the 1343) you'll also need something like an FT232RL to communicate over UART.  Here's one board for this, but you can likely find them easily on ebay as well:

http://www.sparkfun.com/commerce/product_info.php?products_id=718

Depending on how close you are to Tokyo, it should cost a few dollars at a shop like Akizuki Denshi in Akihabara (I know they have them).  You can use something like FlashMagic (free) to program the device via ISP.
0 Kudos
Reply

2,323 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by noritan_org on Tue Feb 09 02:17:09 MST 2010
kendwyer,

Thank you for your reply.
Is LPC-Link on LPCXpresso board able to power cycle ?
There seems to be no switches between VIO_3V3 and LPC1114's VDD(I/O) Are there any switches in the LPC3154 to power cycle ?

In addition, I don't understand what you are saying by "ISP pin" Are there any additional pins to be connected ?
0 Kudos
Reply

2,323 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by kendwyer on Thu Feb 04 20:28:41 MST 2010
You should get by with SWDIO, SWCLK, GND and VDD(I/O). The reset is optional, power cycle will work. Also don't forget the ISP pin.
0 Kudos
Reply

2,323 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by noritan_org on Thu Feb 04 06:22:16 MST 2010
Off course I have looked into the Schematic.  But the schematic has no description about the minimum requirement.  The schematic shows ENOUGH connections.

I especially wonder if RESETX must be connected.
0 Kudos
Reply

2,323 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rkiryanov on Thu Feb 04 05:43:18 MST 2010

Quote: noritan_org
Which signals MUST be connected to debug?



see LPCXpressoLPC1114revA.pdf: GND, SWDIOX, SWDCLKX, RESETX and 3V3X if required.
0 Kudos
Reply