- The ST-LINK/V2 is an in-circuit debugger and programmer for the STM8 and STM32 microcontroller families. The single wire interface module (SWIM) and JTAG/serial wire debugging (SWD) interfaces are used to communicate with any STM8 or STM32 microcontroller located on an application board.
- In addition to provide the same functionalities as 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 Vrms.
- STM8 applications use the USB full-speed interface to communicate with the ST Visual Develop (STVD) or ST Visual Program (STVP) software.
- STM32 applications use the USB full-speed interface to communicate with Atollic®, IAR™, Keil®or TASKING integrated development environments.
- 5 V power supplied by a USB connector
- USB 2.0 full-speed-compatible interface
- USB standard A to Mini- B cable
SWIM specific features:
1.65 V to 5.5 V application voltage supported on SWIM interface SWIM low-speed and high-speed modes supported SWIM programming speed rate: 9.7 Kbytes/s in low speed and 12.8 Kbytes/s in high speed SWIM cable for connection to the application via an ERNI standard vertical connector (ref: 284697 or 214017) or horizontal connector (ref: 214012) SWIM cable for connection to the application via a pin header or a 2.54 mm pitch connector
JTAG/serial wire debugging (SWD) specific features:
1.65 V to 3.6 V application voltage supported on the JTAG/SWD interface and 5 V tolerant inputs JTAG cable for connection to a standard JTAG 20-pin pitch 2.54 mm connector JTAG supported SWD and serial wire viewer (SWV) communication supported
- Direct firmware update feature supported (DFU)
- Status LED which blinks during communication with the PC
- Operating temperature 0 to 50 °C
- 1000 Vrmshigh isolation voltage (ST-LINK/V2-ISOL only)
The ST-LINK is an in-circuit debugger and programmer for the STM8 and STM32 microcontroller families.
ST-LINK is a USB device and has to be connected to a PC host. It can be either embedded on ST boards or provided as standalone dongle.
Depending on the version of the ST-LINK hardware and on the version of its embedded firmware, it can support different debug protocols:
SWIM: debug protocol for STM8 microcontrollers SWD/JTAG: debug protocol for STM32 microcontrollers and microprocessors
and communication interfaces:
UART I2C SPI CAN GPIO
2 Hardware versions ↑
Several versions of ST-LINK exists: ST-LINK/V1, ST-LINK/V2, ST-LINK/V2-A, ST-LINK/V2-B, ST-LINK/V2-1 and STLINK-V3SET.
For details about different versions , please refer to the technical note of ST-LINK derivatives.
To check for the ST-LINK version which is embedded in ST boards, you have to refer to the Getting started with ST boards page, and then select your current HW board. 3 Getting started ↑ 3.1 Installing USB driver ↑
Depending of the ST-LINK version, two USB drivers are associated: one for the debugger itself, and one for the serial communication port from (ST-LINK/V2-1). Serial communication port is using standard CDC ACM USB Class, which is usually present by default on all PC operating system.
About USB driver for the debugger, this could differ depending of the PC operating system:
A driver must be installed before connecting ST-LINK to a Windows® 7, Windows 8, or Windows® 10 PC via the USB.
The driver is automatically installed by the toolsets supporting ST-LINK. It is also available from the www.st.com website.
Users must be granted with rights for accessing the ST-Link USB devices. It is then necessary to add rules into /etc/udev/rules.d.
All information and files for installing the udev rules are provided in the STSW-LINK007 package in st.com (see stsw-link007\AllPlatforms\StlinkRulesFilesForLinux\Readme.txt file).
No specific install is required. 3.2 Connecting JTAG/SWD for debug ↑
JTAG/SWD link is available from the USB link provided by the ST-LINK. USB device is mounted on the host PC, and ready to be used.
Pins are available on the ST-LINK to connect the JTAG/SWD signals. Please see Hardware versions to check for the connection details.
- JTAG: please ensure these signals are connected to the JTAG/SWD connector: VCC, JTDI, JTMS, JCLK, JRCLK, JTDO, NRST and GDN - SWD: please ensure these signals are connected to the JTAG/SWD connector (on some ST-LINK hardware version, a dedicated SWD port can be available also): VCC, SWCLK, SWDIO, NRST, SWO and GND.
3.3 Connecting UART port (from ST-LINK/V2-1) ↑
UART serial port is available from the USB link provided by the ST-LINK. USB device is mounted on the host PC, and ready to be used.
Pins are available on the ST-LINK to connect the Rx/Tx and GND signals. Please see Hardware versions to check for the connection details.