DocID018789 Rev 4
15/38
UM1079
Hardware and layout
37
Figure 8. 32L152CDISCOVERY connections
4.2.2
Using the ST-LINK/V2 to program/debug an external application
The ST-LINK/V2 allows also to program an STM32 device on an external application.
Figure 9
shows how to remove the 2 jumpers from CN3 and to connect the external
application to the CN2 debug connector according to instructions in
Table 5
.
Note:
SB100 must be OFF if you the CN2 pin 5 is used in the external application.
&1MXPSHUV21
3LQRI&1
6:'FRQQHFWRU
069
Table 5. Debug connector CN2 (SWD)
Pin
CN2
Designation
1
VDD_TARGET
VDD from application
2
SWCLK
SWD clock
3
GND
Ground
4
SWDIO
SWD data input/output
5
NRST
RESET of target MCU
6
SWO
Reserved