hackingsecurity

Kept 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

← Back to S Back to the glossary