April 2024 UM1075 Rev 10 1/20
1
UM1075
User manual
ST-LINK/V2 in-circuit debugger/programmer
for STM8 and STM32
Introduction
The ST-LINK/V2 is an in-circuit debugger/programmer for the STM8 and STM32
microcontrollers. The single wire interface module (SWIM) and the JTAG/serial wire
debugging (SWD) interfaces facilitate communication with any STM8 or STM32
microcontroller operating on an application board.
In addition to providing the same functionalities of the ST-LINK/V2, the ST-LINK/V2-ISOL
features digital isolation between the PC and the target application board. It also withstands
voltages of up to 1000 V
RMS
.
The USB full-speed interface enables communication with a PC and:
STM8 devices via ST Visual Develop (STVD) or ST Visual Program (STVP) software
(available from STMicroelectronics)
STM32 devices via IAR
, Keil
®
, STM32CubeIDE, STM32CubeProgrammer, and
STM32CubeMonitor integrated development environments.
Figure 1. ST-LINK/V2 and ST-LINK/V2-ISOL
ST-LINK/V2 ST-LINK/V2-ISOL
www.st.com
Contents UM1075
2/20 UM1075 Rev 10
Contents
1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2 Ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3 Product contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
4 Hardware configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4.1 Connection with STM8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.1.1 Standard ERNI connection with SWIM flat ribbon . . . . . . . . . . . . . . . . . . 9
4.1.2 Low-cost SWIM connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.1.3 SWIM signals and connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.2 Connection with STM32 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.3 ST-LINK/V2 status LED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5 Software configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5.1 ST-LINK/V2 firmware upgrade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5.2 STM8 application development . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5.3 STM32 application development and flash programming . . . . . . . . . . . . 16
6 Schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
7 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19