UM1570 Rev 7 15/41
UM1570 Hardware layout and configuration
40
6.2 Embedded ST-LINK/V2 (or V2-B)
The ST-LINK/V2 on PCB version A or B or the ST-LINK/V2-B on PCB version C is
embedded as a programming and debugging tool. Virtual COM port and USB mass storage
features are supported by the ST-LINK/V2-B only.
The embedded ST-LINK/V2 (or V2-B) supports only SWD for STM32 devices. For
information about debugging and programming features, refer to the user manual ST-
LINK/V2 in-circuit debugger/programmer for STM8 and STM32 (UM1075), which describes
in detail all the ST-LINK/V2 features.
The changes in ST-LINK/V2-B versus ST-LINK/V2 version are listed below. New features
supported on ST-LINK/V2-B are:
• Virtual COM port interface on USB
• Mass storage interface on USB
The embedded-on-board features not supported either on ST-LINK/V2 or ST-STLINK/V2-B
are:
• SWIM interface
• Minimum supported application voltage limited to 3 V
• USB power management request for more than 100 mA current on USB
Known limitation:
Activating the readout protection on the STM32 target prevents the target application from
running afterward. The readout protection must be kept disabled on the STM32 target.
There are two different ways to use the embedded ST-LINK/V2 (or V2-B), depending on the
jumper states (refer to
Table 4):
• Programming/debugging the STM32 on board (refer to Section 6.2.4: Using ST-
LINK/V2 (or V2-B) to program/debug the on-board STM32F303VCT6)
• Programming/debugging the STM32 in an external application board, using a cable
connected to the SWD connector (CN2) (refer to Section 6.2.5: Using ST-LINK/V2 (or
V2-B) to program/debug an external STM32 application)
6.2.1 Drivers
The ST-LINK/V2 (or V2-B) requires a dedicated USB driver, which, for an older than
Windows
®
10 version can be found at the www.st.com website. In case the STM32
Discovery is connected to the PC before the driver is installed, some Discovery interfaces
might be declared as Unknown in the PC device manager. In this case, the user must install
the driver files, and update the driver of the connected device (refer to
Figure 6) from the
device manager.
Note: Prefer using the ‘USB Composite Device’ handle for a full recovery.
Table 4. Jumper states
Jumper state Description
Both CN4 jumpers ON
ST-LINK/V2 (or V2-B) functions are enabled for on-board programming
(default).
Both CN4 jumpers OFF
ST-LINK/V2 (or V2-B) functions are enabled for application through an
SWD-compatible external connector (CN3).