**** Advance Notice ****

This site will be closed on 31 December 2015,

Important Information for users of NXP LPCXpresso

This site is for users of Code Red branded products.

NXP LPCXpresso users should visit the LPCXpresso FAQ's for up-to-date information relevant to that product.

Revision 3 as of 2011-12-02 18:56:11

Clear message

hash acl All:read

SWD / JTAG Connectors and Pinout

JTAG was the traditional mechanism for debug connections for ARM parts, but with the Cortex-M family, ARM introduced the Serial Wire Debug (SWD) Interface. SWD is designed to reduce the pin count required for debug from the 5 used by JTAG (including GND) down to 3. In addition, one of the pins freed up by this can be used for Single Wire Viewing (SWV), which is a low cost tracing technology (which is used by the "Red State" functionality within Red Suite).

The SWD/SWV pins are overlaid on top of the JTAG pins as follows:


SWV Mode





Clock into the core

Use 10K or 100K Ohm pull-down resistor to GND



JTAG Test Data Input

Use 10K or 100K Ohm pull-up resistor to VCC



JTAG Test Data Output / SWV trace data output



JTAG Test Mode Select / SWD data in/out

Use 10K or 100K Ohm pull-up resistor to VCC



RESET - Connect this pin to the (active low) reset input of the target MCU

ARM has defined 2 standard connectors for debug purposes

20-pin 0.1" JTAG/SWD Connector Pinout

The 10 pin Cortex debug connector

10-pin 0.05" JTAG/SWD Connector Pinout

Part number for the 10-pin 0.05" pitch connectors for target PCB

Cortex-M3 is the first ARM core to

There are special sequences defined to switch from JTAG mode (default) and SWD mode that can sent to the core through just the SW pins. Note that some MCUs (such as NXP LPC13xx) only support debugging via SWD.

Cortex-M0 also implements the Serial Wire Debug interface, but not JTAG. It also does not provide support for the SWV low cost tracing technology.