SWD
acronymKept in this browser · My desk
Stands for: Serial Wire Debug
Serial Wire Debug (SWD): Arm's two-wire debug interface, a clock (SWDCLK) and one bidirectional data line (SWDIO), overlaid on the JTAG TCK and TMS pins of chips that support both.
SEGGER describes SWD as replacing the traditional five-pin JTAG debug interface while providing the normal debug functions, without JTAG's daisy-chaining; an optional serial wire output (SWO) pin streams trace data such as printf messages. OpenOCD's manual adds that SWD is debug-oriented, uses fewer wires and does not support boundary scan. The common 10-pin, 1.27 mm Cortex connector carries SWDIO or TMS on pin 2 and SWDCLK or TCK on pin 4.
Identifiers. A chip reached over SWD answers with a debug-port identifier; OpenOCD expects 0x1BA01477 from an STM32F1 over SWD, against 0x3BA00477 over JTAG. Security. Microcontrollers lock SWD with readout protection or debug-port lockout settings, such as STMicroelectronics' RDP levels or Nordic Semiconductor's APPROTECT; in 2020 a researcher re-enabled debug access on nRF52 chips by voltage glitching, and the only mitigations reported were preventing physical access and responding to enclosure breaches. Finding it. Because SWD needs only two signal pads, tools such as the JTAGulator and the Bus Pirate include SWD discovery.
Also known as: serial wire debug, swdio, swclk, sw-dp
Sources
- SEGGER Knowledge Base, Target Interface SWD (read 2026-11-17): replaces the 5-pin JTAG interface with a clock (SWDCLK) and one bidirectional data pin (SWDIO) overlaid on TCK and TMS; optional SWO output; no daisy-chaining
- OpenOCD User's Guide, 8.3.2 SWD Transport (read 2026-11-17): Arm-specific transport, fewer signal wires than JTAG, debug-oriented, no boundary scan
- Tigard README (read 2026-11-16): standard 10-pin 1.27 mm Cortex pinout with SWDIO or TMS on pin 2 and SWDCLK or TCK on pin 4
- CNX Software, 15 June 2020 (read 2026-11-16): nRF52 APPROTECT, meant to enable readback protection and disable the debug interface, bypassed by voltage glitching