Skip to content

wiring swd debug

Kal / Valleytech Solutions edited this page Sep 27, 2026 · 1 revision

SWD: connect a Cortex debug probe

Map the essential debug signals without confusing voltage sense with a power output.

Applies to: Five signal connections using the cited Cortex 10-pin numbering. It is not a complete 10-pin map or a map for every ST-Link clone.

When to use it

Programming or debugging a target that explicitly supports Arm Serial Wire Debug.

Why it works this way

SWD uses a bidirectional data signal and a clock, with target voltage reference and ground.

SWD: connect a Cortex debug probe — Five signal connections using the cited Cortex 10-pin numbering. It is not a complete 10-pin map or a map for every ST-Link clone.

Open / save the original SVG

Connection reference

Cortex contact Signal Role
1 VTref Sense target I/O voltage
2 SWDIO Bidirectional data
3 GND Reference
4 SWCLK Probe output
10 nRESET Target reset, if used

Make the connection

  1. Use the actual probe and board connector drawings and match pin 1.
  2. Power the target as documented and connect its I/O rail to VTref.
  3. Select SWD and start with a conservative debug clock.

Check before powering

  • VTref normally senses power; it is not permission to power the target from the probe.
  • Optional SWO and unused contacts depend on the target. SWD and JTAG are different modes.

Matching module references

This is a general interface guide; match your own hardware documentation.

Sources & review

Source documents inspected; independent electrical and bench review pending. Reviewed 2026-09-27.

Original writing and diagram by Kal / Valleytech Solutions, CC BY 4.0. Manufacturer artwork and documentation retain their own rights.

CC BY 4.0 · SHA-256: 41cd2f2fadce0165708e062a01c37af3551378cd28a2b85a601f79e9e5c5f444

Open the interactive guide · All wiring guides

Clone this wiki locally