-
Notifications
You must be signed in to change notification settings - Fork 3
wiring swd debug
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.
Programming or debugging a target that explicitly supports Arm Serial Wire Debug.
SWD uses a bidirectional data signal and a clock, with target voltage reference and ground.
| 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 |
- Use the actual probe and board connector drawings and match pin 1.
- Power the target as documented and connect its I/O rail to VTref.
- Select SWD and start with a conservative debug clock.
- 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.
This is a general interface guide; match your own hardware documentation.
Source documents inspected; independent electrical and bench review pending. Reviewed 2026-09-27.
- Microchip: Cortex Debug Connector (10-pin) — Connector drawing and SWD signal table; checked 2026-09-27
- Arm Keil: Application Note 321, version 1.1 — Page 18: five SWD connections and Cortex 10-pin numbers; checked 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
First Edition / 2026 · Open the guide · Source collection
- HaleHound and Elechouse hardware references
- Datasheets, I/O boards and carrier revisions
- ARM, x86 and RISC-V computers
- Start at the workbench
- How to read a pinout reference
- GPIO, I²C, SPI and UART
- Identify displays and sensors
- Use the Power Desk carefully
- Find a power-module reference
- Search, themes and saved boards
- Coverage, sources and review status
- Help improve the maker reference