Hardware and layout
UM1079
14/38
DocID018789 Rev 4
4.2 Embedded
ST-LINK/V2
The ST-LINK/V2 programming and debugging tool is integrated on the
32L152CDISCOVERY. The embedded ST-LINK/V2 can be used in 2 different ways
according to the jumper states (see
Table 4
):
•
Program/debug the MCU on board
•
Program/debug an MCU in an external application board using a cable connected to
SWD connector CN2
The embedded ST-LINK/V2 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).
Figure 7. Typical configuration
4.2.1
Using the ST-LINK/V2 to program/debug the microcontroller on board
Figure 8
shows how to plug the two jumpers on CN3 to program the STM32L152RCT6 on
the board. The usage of CN2 is forbidden as it could disturb communication with the
microcontroller.
Table 4. Jumper states
Jumper state
Description
Both CN3 jumpers
ON
ST-LINK/V2 functions enabled for on board programming
(default)
Both CN3 jumpers
OFF
ST-LINK/V2 functions enabled for external application through
CN2 connector (SWD supported).
069
+DUGZDUHUHTXLUHPHQWV
86%FDEOHW\SH$WRPLQL%
FRPSXWHUZLWK:LQGRZV;3
'HYHORSPHQWWRROFKDLQ
,$5(:$50
.HLO0'.$50
*&&EDVHG,'(