ST-Link V2 pinout
ST-Link V2, clone in an aluminum case, STM32F103C8T6, 3.3 V logic, 54×18 mm, 10 pins
partly verified20.10.2026
Top view of the case, USB-A on the left, 2×5 header on the right; the pins come out of the end face, drawn from the diagram on the case, header key not checked.
BuyDownload PNG- Chip
- STM32F103C8T6
- Logic
- 3.3 V
- Power
- USB-A 4.75-5.25 V
Important
- Connecting to Blue Pill (SWD header at the end): SWDIO to DIO, SWCLK to CLK, GND to GND, 3.3V to 3.3 if nothing else powers the board.
- If Blue Pill is already powered from USB, do not connect the programmer's 3.3V pin.
- About 100 mA from the 3.3V pin (seller): not enough for a board with Wi-Fi, motors or a backlight.
- Do not connect 3.3V and 5.0V to the same board at once.
- SWIM is needed only for STM8. STM32 is flashed over SWD (SWDIO, SWCLK).
- The pin order differs between batches: check the label on the case.
- The 3.3V and 5.0V pins are outputs only, for powering the target board.
Revisions and clones
- Batches from around 2016: 1 RST, 2 SWDIO, 3 GND, 4 GND, 5 SWIM, 6 SWCLK, 7-8 3.3V, 9-10 5.0V. Labels on the case and board are sometimes wrong.
- Batches from 2020: 1 RST, 2 SWCLK, 3 SWIM, 4 SWDIO, 5-6 GND, 7-8 3.3V, 9-10 5.0V (drawn here).
- Inside is an STM32F103C8, in some batches an STM32F101C8 or an STM32 clone; the board sometimes has a separate SWD pad for reflashing the programmer itself.
All pins
| Label | Number | Functions | Limits | Check |
|---|---|---|---|---|
| RST | pin 1 | Target NRST: reset | not from manufacturerNo manufacturer document. The order follows the case label of batches from 2020 (Docker Hub noahpendleton, ShillehTek guide). Older batches (around 2016) use a different order: 1 RST, 2 SWDIO, 3-4 GND, 5 SWIM, 6 SWCLK (hackaday.io), and the labels on the case and board are sometimes wrong. Before connecting, check the label on your own case or buzz it out.Resets the target board. Usually not needed for Blue Pill, needed for "Connect under reset". | |
| SWIM | pin 3 | SWIM: STM8 single-wire debug | not from manufacturerNo manufacturer document. The order follows the case label of batches from 2020 (Docker Hub noahpendleton, ShillehTek guide). Older batches (around 2016) use a different order: 1 RST, 2 SWDIO, 3-4 GND, 5 SWIM, 6 SWCLK (hackaday.io), and the labels on the case and board are sometimes wrong. Before connecting, check the label on your own case or buzz it out.STM8 only. Do not connect for STM32. | |
| GND | pin 5 | Ground | not from manufacturerNo manufacturer document. The order follows the case label of batches from 2020 (Docker Hub noahpendleton, ShillehTek guide). Older batches (around 2016) use a different order: 1 RST, 2 SWDIO, 3-4 GND, 5 SWIM, 6 SWCLK (hackaday.io), and the labels on the case and board are sometimes wrong. Before connecting, check the label on your own case or buzz it out. | |
| 3.3V | pin 7 | 3.3 V | power output | not from manufacturerNo manufacturer document. The order follows the case label of batches from 2020 (Docker Hub noahpendleton, ShillehTek guide). Older batches (around 2016) use a different order: 1 RST, 2 SWDIO, 3-4 GND, 5 SWIM, 6 SWCLK (hackaday.io), and the labels on the case and board are sometimes wrong. Before connecting, check the label on your own case or buzz it out.3.3 V output from the programmer's regulator, about 100 mA (seller). Use it only to power a small board with no power of its own. |
| 5.0V | pin 9 | 5 V | power output | not from manufacturerNo manufacturer document. The order follows the case label of batches from 2020 (Docker Hub noahpendleton, ShillehTek guide). Older batches (around 2016) use a different order: 1 RST, 2 SWDIO, 3-4 GND, 5 SWIM, 6 SWCLK (hackaday.io), and the labels on the case and board are sometimes wrong. Before connecting, check the label on your own case or buzz it out.5 V from the computer's USB. |
| SWCLK | pin 2 | SWCLK: SWD clock | not from manufacturerNo manufacturer document. The order follows the case label of batches from 2020 (Docker Hub noahpendleton, ShillehTek guide). Older batches (around 2016) use a different order: 1 RST, 2 SWDIO, 3-4 GND, 5 SWIM, 6 SWCLK (hackaday.io), and the labels on the case and board are sometimes wrong. Before connecting, check the label on your own case or buzz it out.To the CLK pin (SWCLK, PA14) on Blue Pill. | |
| SWDIO | pin 4 | SWDIO: SWD data | not from manufacturerNo manufacturer document. The order follows the case label of batches from 2020 (Docker Hub noahpendleton, ShillehTek guide). Older batches (around 2016) use a different order: 1 RST, 2 SWDIO, 3-4 GND, 5 SWIM, 6 SWCLK (hackaday.io), and the labels on the case and board are sometimes wrong. Before connecting, check the label on your own case or buzz it out.To the DIO pin (SWDIO, PA13) on Blue Pill. | |
| GND | pin 6 | Ground | not from manufacturerNo manufacturer document. The order follows the case label of batches from 2020 (Docker Hub noahpendleton, ShillehTek guide). Older batches (around 2016) use a different order: 1 RST, 2 SWDIO, 3-4 GND, 5 SWIM, 6 SWCLK (hackaday.io), and the labels on the case and board are sometimes wrong. Before connecting, check the label on your own case or buzz it out. | |
| 3.3V | pin 8 | 3.3 V | power output | not from manufacturerNo manufacturer document. The order follows the case label of batches from 2020 (Docker Hub noahpendleton, ShillehTek guide). Older batches (around 2016) use a different order: 1 RST, 2 SWDIO, 3-4 GND, 5 SWIM, 6 SWCLK (hackaday.io), and the labels on the case and board are sometimes wrong. Before connecting, check the label on your own case or buzz it out. |
| 5.0V | pin 10 | 5 V | power output | not from manufacturerNo manufacturer document. The order follows the case label of batches from 2020 (Docker Hub noahpendleton, ShillehTek guide). Older batches (around 2016) use a different order: 1 RST, 2 SWDIO, 3-4 GND, 5 SWIM, 6 SWCLK (hackaday.io), and the labels on the case and board are sometimes wrong. Before connecting, check the label on your own case or buzz it out. |
Sources
Not verified against the manufacturer: 10 of 10 pins. The pin card says what confirms each one and where sources disagree.
- noahpendleton/stlink-clone-adapter (Docker Hub): two header variants of the clonethird-party source, checked 20.10.20262020 variant: 1 RST, 2 SWCLK, 3 SWIM, 4 SWDIO, 5-6 GND, 7-8 3.3V, 9-10 5.0V, case labels are correct; 2016 variant: 1 RST, 2 SWDIO, 3-4 GND, 5 SWIM, 6 SWCLK, labels are sometimes wrong
- ShillehTek: ST-Link V2 STM8/STM32 programmer manualthird-party source, checked 20.10.2026same order as the 2020 variant, about 100 mA from the 3.3 V pin, case 54×18×11 mm, STM32F103C8, connection to Blue Pill
- hackaday.io: ST-Link clone repurposing (logs)third-party source, checked 20.10.2026old variant: 1 RST (PB6), 2 SWDIO (PB14), 3-4 GND, 5 SWIM (PB8), 6 SWCLK (PA5, PB13), 7-8 3.3V, 9-10 5V
- Paparazzi UAV wiki: Serial Wire Debug (ST-Link clones)third-party source, checked 20.10.2026clones use different microcontrollers (STM32F103C8, STM32F101C8) and wiring
Size: case 54×18×11 mm per the seller's description (ShillehTek); no drawing (approximate).
FAQ
- What supply voltage does the ST-Link V2 need?
- USB-A: 4.75-5.25 V. 3.3 V logic.
You might also need
Schematic with this board
schematic builder with the board already placed
Flash this board
upload a sketch or .bin to this board from the browser
Power budget
will the regulator cope and how long the battery lasts
Calculators
LED resistor, voltage divider, battery runtime, 3D print cost, LED strip power supply and pF, nF, µF conversion
