SWD (JTAG) sharing only SPI port

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

SWD (JTAG) sharing only SPI port

714 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by themindfactory on Thu Jan 13 00:09:58 MST 2011
How do you connect a SPI device like SD card or memory, and also connect the SWD/JTAG ans share the only SPI port on the LPC1111 33 pin version?

Thanks.
0 Kudos
3 Replies

536 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Thu Jan 13 01:43:28 MST 2011

Quote: themindfactory
Why does some IC need the SWO (SWD/JTAG pin) and some don't?



For SWD with LPCXpresso you need SWCLK, SWDIO, RESET & GND.

SWO is used by Red Trace, so you don't need it if you just use LPCXpresso.

http://support.code-red-tech.com/CodeRedWiki/CM3_SWD

Trace is not available in Cortex M0 (LPC11xx).

See Cortex M3 (LPC13xx) with Trace:

http://www.arm.com/products/processors/cortex-m/cortex-m3.php
0 Kudos

536 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by themindfactory on Thu Jan 13 01:03:38 MST 2011

Quote: Zero
Are we talking about Pin 19?

Use Pin 19 for SWCLK. SCK0 can also used via Pin 15 (PIO0_6).

See UM: 7.4.18 IOCON_PIO0_6



Yes, I see they allowed it to be accessed from 2 pins, this is probably due to the SWD interface, so I guess you completely give up AD4 PIN25 then?

I am just learning this IC, I will be upto speed real fast! thanks!

Why does some IC need the SWO (SWD/JTAG pin) and some don't?

OK here is something interesting, I also want to use LPC1342 USB, so if you use alternate pin, you will sacrifice USB_CONNECT, probably OK for me, however now the SWO shows up and takes MOSI..... so in this case, like in the LPC1111 which does not even have one so to just leave it unconnected to SWO for SWD/JTAG, as this time there is not alternate MOSI.....

Thanks!
0 Kudos

536 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Thu Jan 13 00:28:50 MST 2011
Are we talking about Pin 19?

Use Pin 19 for SWCLK. SCK0 can also used via Pin 15 (PIO0_6).

See UM: 7.4.18 IOCON_PIO0_6
0 Kudos