ST-Link V2 programmer (clone)
Programmer and debugger for STM32 boards.
FunctionSWD programmer and debugger
Supply voltageUSB
InterfaceSWDIO, SWCLK, 3.3 V, GND
Logic level3.3 V
InterfacesReviewedMPN ST-LINK/V2Used in 27 projects
In short
What is the ST-Link V2 programmer (clone) and what is it used for?
Programmer and debugger for STM32 boards. Makers use it for programming Blue Pill and STM32.
How it works
An STM32 running ST-Link firmware that bridges USB to the SWD debug port.
Key specifications
| Interface module spec | Value |
|---|---|
| Function | SWD programmer and debugger |
| Supply voltage | USB |
| Interface | SWDIO, SWCLK, 3.3 V, GND |
| Logic level | 3.3 V |
Pinout
SWDIOData
SWCLKClock
GNDGround
3.3VPower out
RSTReset
SWIMFor STM8
How to use it
Wire SWDIO, SWCLK, GND and 3.3 V to the Blue Pill's SWD header and program with STM32CubeProgrammer or OpenOCD. Do not power the target from both USB and the ST-Link at once.
Applications
Programming Blue Pill and STM32
Builds that use it
Guided build
Bare-metal blink on STM32
Guided build
Servo sweep with an STM32 timer
Guided build
Blue Pill clock with a DS3231
Guided build
Blue Pill weather node
Guided build
12-bit voltmeter on a Blue Pill
Guided build
Black Pill hardware stopwatch
Guided build
Blue Pill one-wire thermometer
Guided build
Blue Pill light-controlled tone
Showing 8 of 27
Alternatives
- J-Link EDU MiniFaster debugger
- Raspberry Pi Debug ProbeLow-cost CMSIS-DAP probe
Common questions
What is the ST-Link V2 programmer (clone) used for?
In maker projects: programming Blue Pill and STM32.
How does the ST-Link V2 programmer (clone) work?
An STM32 running ST-Link firmware that bridges USB to the SWD debug port.
What voltage does the ST-Link V2 programmer (clone) need?
USB.
How do I connect the ST-Link V2 programmer (clone) to an Arduino or ESP32?
SWDIO, SWCLK, 3.3 V, GND. Pins: SWDIO (Data), SWCLK (Clock), GND (Ground), 3.3V (Power out), RST (Reset), SWIM (For STM8).
What can I use instead of the ST-Link V2 programmer (clone)?
J-Link EDU Mini and Raspberry Pi Debug Probe.
