| |||
Home > Serial Wire Debug and JTAG Trace Connector > Pinout details > 20-way connector pinouts including trace |
20-way connectors include support for a narrow trace port, up to four data bits, operating at moderate speed, up to 100 MSamples/sec. They are described in:
Table C.3 shows the 20-way header for targets using SWD or JTAG for debug communication, and includes an optional SWO signal for conveying application/instrumentation trace. Alternatively, a target trace port operating in CoreSight normal or bypass modes might convey the TraceCtl signal on pin 6.
Both pin 6 and pin 8 in the SWD layout are shown with alternative extra signals, EXTa and EXTb. This enables flexibility to communicate other signals on these pins. For example, future target systems and trace equipment might convey two more trace data signals on these pins.
Table C.3. 20-way connector for future SWD or JTAG systems
Pin name for SWD | Pin number | Pin name for JTAG | Pin number | ||
---|---|---|---|---|---|
20-way | Mictor | 20-way | Mictor | ||
VTref | 1 | 12 | VTref | 1 | 12 |
SWDIO | 2 | 17 | TMS | 2 | 17 |
GND | 3 | - | GND | 3 | - |
SWCLK | 4 | 15 | TCK | 4 | 15 |
GND | 5 | - | GND | 5 | - |
SWO/EXTa/TraceCtl | 6 | 11 | TDO | 6 | 11 |
Key | 7 | - | Key | 7 | - |
NC/EXTb | 8 | (19) | TDI | 8 | 19 |
GNDDetect | 9 | - | GNDDetect | 9 | - |
nRESET | 10 | 9 | nRESET | 10 | 9 |
Gnd/TgtPwr+Cap | 11 | - | Gnd/TgtPwr+Cap | 11 | - |
TraceClk | 12 | 6 | TraceClk | 12 | 6 |
Gnd/TgtPwr+Cap | 13 | - | Gnd/TgtPwr+Cap | 13 | - |
TraceD0 | 14 | 38 | TraceD0 | 14 | 38 |
GND | 15 | - | GND | 15 | - |
TraceD1 | 16 | 28 | TraceD1 | 16 | 28 |
GND | 17 | - | GND | 17 | - |
TraceD2 | 18 | 26 | TraceD2 | 18 | 26 |
GND | 19 | - | GND | 19 | - |
TraceD3 | 20 | 24 | TraceD3 | 20 | 24 |
The SWD layout is typically used in a CoreSight system that uses a SWJ-DP operating in SWD mode.
The JTAG layout is typically used in a CoreSight system including a JTAG-DP, or one with a SWJ-DP operating JTAG mode, possibly because it is cascaded with other JTAG TAPs. This layout s the recommended debug connection for a processor built with support for instruction trace, that is, including an ETM.
A target board can use this layout for performing board-level boundary scan but then switch its SWJ-DP into SWD mode for debugging according to the layout shown in Table C.3. This frees up pins 6 and 8 for either application functions or SWO.
You do not have to choose the switching mode at the time of chip or board development. The connector can be switched and the target board operated in either SWD or JTAG mode.