UM1724
User manual
STM32 Nucleo boards
Introduction
The STM32 Nucleo board (NUCLEO-F030R8, NUCLEO-F072RB, NUCLEO-F103RB, NUCLEO-F302R8, NUCLEO-F401RE, NUCLEO-L152RE) provides an affordable and flexible way for users to try out new ideas and build prototypes with any STM32 microcontroller lines, choosing from the various combinations of performance, power consumption and features. The Arduino™ connectivity support and ST Morpho headers make it easy to expand the functionality of the Nucleo open development platform with a wide choice of specialized shields. The STM32 Nucleo board does not require any separate probe as it integrates the ST-LINK/V2-1 debugger/programmer. The STM32 Nucleo board comes with the STM32 comprehensive software HAL library together with various packaged software examples, as well as direct access to mbed online resources at mbed.org.
1. Picture not contractual.
April 2014 |
DocID025833 Rev 3 |
1/49 |
www.st.com
Contents |
UM1724 |
|
|
Contents
1 |
Ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
. . . . 6 |
||
2 |
Conventions |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
. . . 7 |
|
3 |
Quick start . |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
. . . 8 |
|
|
3.1 |
Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
. . . 8 |
|
|
3.2 |
System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
. . . 8 |
|
4 |
Features . . . . |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
. . . 9 |
|
5 |
Hardware layout and configuration . . . . . . . . . . . . . . . . . . . . . . . . . . |
. . 10 |
||
|
5.1 |
Cutable PCB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
. . 12 |
|
|
5.2 |
Embedded ST-LINK/V2-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
. . 13 |
|
|
|
5.2.1 |
Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
. . . 14 |
|
|
5.2.2 |
ST-LINK/V2-1 firmware upgrade . . . . . . . . . . . . . . . . . . . . . . . . . . . |
. . . 14 |
|
|
5.2.3 |
Using the ST-LINK/V2-1 to program/debug the STM32 on board |
. . . . 14 |
5.2.4Using ST-LINK/V2-1 to program/debug an external STM32 application 15
5.3 Power supply and power selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
|
5.3.1 |
Power supply input from the USB connector . . . . . . . . . . . . . . . . . . . . . |
16 |
|
5.3.2 |
External power supply inputs: VIN and EV5 . . . . . . . . . . . . . . . . . . . . . |
17 |
|
5.3.3 |
External power supply input: + 3V3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
19 |
|
5.3.4 |
External power supply output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
19 |
5.4 |
LEDs . . |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
19 |
5.5 |
Push buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
20 |
|
5.6 |
JP6 (IDD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
20 |
|
5.7 |
OSC clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
21 |
|
|
5.7.1 |
OSC clock supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
21 |
|
5.7.2 |
OSC 32 kHz clock supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
22 |
5.8 USART communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 5.9 Solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 5.10 Extension connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 5.11 Arduino connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 5.12 STMicroelectronics Morpho connector . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
2/49 |
DocID025833 Rev 3 |
UM1724 |
|
Contents |
6 |
Mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
. . . . 43 |
7 |
Electrical schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
. . . . 44 |
8 |
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
. . . . 48 |
9 |
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
. . . . 48 |
DocID025833 Rev 3 |
3/49 |
List of tables |
UM1724 |
|
|
List of tables
Table 1. Ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Table 2. ON/OFF conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Table 3. Jumper states . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Table 4. Debug connector CN4 (SWD). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Table 5. JP1 configuration table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Table 6. External power sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Table 7. Power-related jumper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Table 8. +3.3V eternal power source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Table 9. Solder bridges. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Table 10. Arduino connectors on NUCLEO-F030R8, NUCLEO-F072RB. . . . . . . . . . . . . . . . . . . . . . 28 Table 11. Arduino connectors on NUCLEO-F103RB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Table 12. Arduino connectors on NUCLEO-F302R8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Table 13. Arduino connectors on NUCLEO-F401RE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Table 14. Arduino connectors on NUCLEO-L152RE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Table 15. STMicroelectronics Morpho connector on NUCLEO-F030R8 . . . . . . . . . . . . . . . . . . . . . . 37 Table 16. STMicroelectronics Morpho connector on NUCLEO-F072RB . . . . . . . . . . . . . . . . . . . . . . 38 Table 17. STMicroelectronics Morpho connector on NUCLEO-F103RB . . . . . . . . . . . . . . . . . . . . . . 39 Table 18. STMicroelectronics Morpho connector on NUCLEO-F302R8 . . . . . . . . . . . . . . . . . . . . . . 40 Table 19. STMicroelectronics Morpho connector on NUCLEO-F401RE . . . . . . . . . . . . . . . . . . . . . . 41 Table 20. STMicroelectronics Morpho connector on NUCLEO-L152RE . . . . . . . . . . . . . . . . . . . . . . 42 Table 21. Document revision history. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
4/49 |
DocID025833 Rev 3 |
UM1724 |
List of figures |
|
|
List of figures
Figure 1. STM32 Nucleo board (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Figure 2. Hardware block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Figure 3. Top layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Figure 4. Bottom layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Figure 5. Typical configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Figure 6. Updating the list of drivers in Device Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Figure 7. Connecting the STM32 Nucleo board to program the on-board STM32 . . . . . . . . . . . . . . 15 Figure 8. Using ST-LINK/V2-1 to program the STM32 on an external application . . . . . . . . . . . . . . 16 Figure 9. NUCLEO-F030R8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Figure 10. NUCLEO-F072RB. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Figure 11. NUCLEO-F103RB. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Figure 12. NUCLEO-F302R8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Figure 13. NUCLEO-F401RE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Figure 14. NUCLEO-L152RE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Figure 15. STM32 Nucleo board mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 Figure 16. Schematic (1/4) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 Figure 17. Schematic (2/4). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 Figure 18. Schematic (3/4) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 Figure 19. Schematic (4/4) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
DocID025833 Rev 3 |
5/49 |
Ordering information |
UM1724 |
|
|
Table 1 lists the order codes and the respective targeted MCU.
Order code |
Targeted MCU |
|
|
NUCLEO-F030R8 |
STM32F030R8T6 |
|
|
NUCLEO-F072RB |
STM32F072RBT6 |
|
|
NUCLEO-F103RB |
STM32F103RBT6 |
|
|
NUCLEO-F302R8 |
STM32F302R8T6 |
|
|
NUCLEO-F401RE |
STM32F401RET6 |
|
|
NUCLEO-L152RE |
STM32L152RET6 |
|
|
The meaning of NUCLEO-TXXXRY codification is as follows:
TXXX describes the STM32 MCU product line
R describes the pin count (R for 64 pins)
Y describes the code size (8 for 64K, B for 128K, E for 512K)
The order code is printed on a sticker placed at the top or bottom side of the board.
6/49 |
DocID025833 Rev 3 |
UM1724 |
Conventions |
|
|
Table 2 provides the conventions used for the ON and OFF settings in the present document.
|
Table 2. ON/OFF conventions |
Convention |
Definition |
|
|
Jumper JP1 ON |
Jumper fitted |
|
|
Jumper JP1 OFF |
Jumper not fitted |
|
|
Solder bridge SBx ON |
SBx connections closed by solder or 0 ohm resistor |
|
|
Solder bridge SBx OFF |
SBx connections left open |
|
|
We refer to “STM32 Nucleo board” and “STM32 Nucleo boards” in this document for all information that is common to all sale types.
DocID025833 Rev 3 |
7/49 |
Quick start |
UM1724 |
|
|
The STM32 Nucleo board is a low-cost and easy-to-use development platform used to quickly evaluate and start a development with an STM32 microcontroller in LQFP64 package.
Before installing and using the product, please accept the Evaluation Product License Agreement from www.st.com/epla.
For more information on the STM32 Nucleo boards and to access the demonstration software, visit www.st.com/stm32nucleo.
Follow the sequence below to configure the STM32 Nucleo board and launch the demo software:
1.Check the jumper position on the board, JP1 off, JP5 (PWR) on U5V, JP6 on (IDD), CN2 on (NUCLEO) selected.
2.For correct identification of all device interfaces from the host PC, install the Nucleo USB driver available on www.st.com/ stm32nucleo, prior to connecting the board
3.Connect the STM32 Nucleo board to a PC with a USB cable ‘type A to mini-B’ through USB connector CN1 to power the board. The red LED LD3 (PWR) and LD1 (COM) should light up. LD1 (COM) and green LED LD2 should blink.
4.Press button B1 (left button).
5.Observe how the blinking of the green LED LD2 changes according to clicks on button B1.
6.The demo software and several software examples on how use the STM32 Nucleo board features are available on www.st.com/stm32nucleo.
7.Develop your own application using the available examples.
Windows PC (XP, Vista, 7, 8)
USB type A to Mini-B USB cable
8/49 |
DocID025833 Rev 3 |
UM1724 |
Features |
|
|
The STM32 Nucleo boards offer the following features:
STM32 microcontroller with LQFP64 package
Two types of extension resources
–Arduino Uno Revision 3 connectivity
–STMicroelectronics Morpho extension pin headers for full access to all STM32 I/Os
mbed-enabled(a)
On-board ST-LINK/V2-1 debugger/programmer with SWD connector
–selection-mode switch to use the kit as a standalone ST-LINK/V2-1
Flexible board power supply
–USB VBUS
–External VIN (7V<VIN<12V) supply voltage from Arduino connectors or ST Morpho connector
–External 5V (E5V) supply voltage from ST Morpho connector
–External +3.3V supply voltage from Arduino connector or ST Morpho connector
Three LEDs
–USB communication (LD1), user LED (LD2), power LED (LD3)
Two push buttons: USER and RESET
USB re-enumeration capability: three different interfaces supported on USB
–Virtual Com port
–Mass storage
–Debug port
Comprehensive free software HAL library including a variety of software examples
Supported by wide choice of Integrated Development Environments (IDEs) including IAR, Keil, GCC-based IDEs
a. See http://mbed.org/
DocID025833 Rev 3 |
9/49 |
Hardware layout and configuration |
UM1724 |
|
|
The STM32 Nucleo board is designed around the STM32 microcontrollers in a 64-pin LQFP package.
Figure 2 shows the connections between the STM32 and its peripherals (STLINK/ V2-1, pushbutton, LED, Arduino connectors and STMicroelectronics Morpho connector).
Figure 3 and Figure 4 show the location of these features on the STM32 Nucleo board.
|
|
|
Figure 2. Hardware block diagram |
|
|
||
|
67 /,1. SDUW |
|
0LQL |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86% |
|
|
|
|
|
|
|
(PEHGGHG |
|
|
|
|
|
|
|
67 /,1. 9 |
|
|
|
|
|
<![if ! IE]> <![endif]>6:' |
|
|
|
|
|
|
|
% |
|
|
|
|
|
|
|
86(5 |
|
670 |
|
|
|
|
|
|
|
|
|
|
|
|
<![if ! IE]> <![endif]>KHDGHUH[WHQVLRQ0RUSKR |
|
,2 |
0LFURFRQWUROOHU |
,2 |
|
<![if ! IE]> <![endif]>KHDGHUH[WHQVLRQ0RUSKR |
|
<![if ! IE]> <![endif]>FRQQHFWRU$UGXLQR |
,2 |
5(6(7 |
,2 |
<![if ! IE]> <![endif]>FRQQHFWRU$UGXLQR |
||
|
|
|
|
|
|||
|
|
|
|
% |
/(' |
|
|
|
|
|
|
5(6(7 |
/' |
|
|
|
0&8 SDUW |
|
|
|
|
|
|
|
|
|
|
|
|
|
06 9 |
10/49 |
|
|
DocID025833 Rev 3 |
|
|
|
UM1724 |
|
Hardware layout and configuration |
|
|
|
|
|
|
|
|
Figure 3. Top layout |
|
|
|
|
|
|
|
&1 |
|
&1 |
|
67 /,1. 86% |
67 /,1. 1XFOHR |
PLQL % FRQQHFWRU |
||
|
VHOHFWRU |
|
/' |
|
|
|
|
|
&1 |
|
5HG *UHHQ /(' |
|
|
|
|
6:' FRQQHFWRU |
|
&20 |
|
|
|
|
|
|
% 86(5 |
|
% |
|
|
5(6(7 EXWWRQ |
|
|
EXWWRQ |
|
|
|
|
|
|
|
-3 ,'' |
|
6% |
|
|
|
9 UHJXODWRU RXWSXW |
PHDVXUHPHQW |
|
||
|
/' |
|
/' |
|
|
|
|
|
5HG /(' |
|
*UHHQ /(' |
|
SRZHU |
||
|
|
|
|
|
&1 |
|
&1 |
|
$UGXLQR |
|
|
|
FRQQHFWRU |
|
$UGXLQR FRQQHFWRU |
|
&1 |
|
|
|
67 0RUSKR |
|
&1 |
|
FRQQHFWRU |
|
|
|
|
67 0RUSKR FRQQHFWRU |
|
|
|
|
|
|
&1 |
|
&1 |
|
|
$UGXLQR FRQQHFWRU |
|
|
$UGXLQR |
|
|
|
FRQQHFWRU |
|
|
|
|
|
|
|
|
|
8 |
|
|
|
670 |
|
|
|
PLFURFRQWUROOHU |
|
|
|
06 9 |
|
|
|
|
DocID025833 Rev 3 |
11/49 |
Hardware layout and configuration |
|
UM1724 |
|
|
|
|
|
|
|
Figure 4. Bottom layout |
|
4# 4# |
4# 4# 4# 4# |
4# 4# 4# 4# |
|
45 -*/, 64"35 |
3&4&37&% |
%&'"6-5 |
|
4# |
|
|
|
45 -*/, 480 |
|
|
|
|
|
|
6% |
4# |
|
67 /,1. |
|
|
5(6(7 |
||
45 -*/, .$0 |
|
|
|
|
|
|
6% |
|
|
|
86(5 EXWWRQ |
6% |
|
|
|
86(5 /(' |
|
|
6%
67 /,1. 0&2
.4 7
The STM32 Nucleo board is divided into two parts: ST-LINK part and target MCU part. The ST-LINK part of the PCB can be cut out to reduce the board size. In this case the remaining target MCU part can only be powered by VIN, E5V and 3.3V on STMicroelectronics Morpho connector CN7 or VIN and 3.3V on Arduino connector CN6. It is still possible to use the STLINK part to program the main MCU using wires between CN4 and SWD signals available on STMicroelectronics Morpho connector (SWCLK CN7 pin 15 and SWDIO CN7 pin 13).
12/49 |
DocID025833 Rev 3 |
UM1724 |
Hardware layout and configuration |
|
|
5.2Embedded ST-LINK/V2-1
The ST-LINK/V2-1 programming and debugging tool is integrated in the STM32 Nucleo boards.
The ST-LINK/V2-1 makes the STM32 Nucleo boards mbed enabled.
The embedded ST-LINK/V2-1 supports only SWD for STM32 devices. For information about debugging and programming features refer to UM1075 - ST-LINK/V2 in-circuit debugger/programmer for STM8 and STM32, User manual, which describes in detail all the ST-LINK/V2 features.
The changes versus ST-LINK/V2 version are listed below.
New features supported on ST-LINK/V2-1:
–USB software re-enumeration
–Virtual com port interface on USB
–Mass storage interface on USB
–USB power management request for more than 100 mA power on USB
Features not supported on ST-LINK/V2-1:
–SWIM interface
–Minimum supported application voltage limited to 3 V
There are two different ways to use the embedded ST-LINK/V2-1 depending on the jumper states (see Table 3 and Figure 5):
Program/debug the MCU on board (Section 5.2.2),
Program/debug an MCU in an external application board using a cable connected to SWD connector CN4 (Section 5.2.4).
|
|
Table 3. Jumper states |
Jumper state |
|
Description |
|
|
|
Both CN2 jumpers ON |
|
ST-LINK/V2-1 functions enabled for on board programming |
|
(default) |
|
|
|
|
|
|
|
Both CN2 jumpers OFF |
|
ST-LINK/V2-1 functions enabled for external CN4 connector |
|
(SWD supported) |
|
|
|
|
|
|
|
|
Figure 5. Typical configuration |
|
|
|
+DUGZDUH UHTXLUHPHQWV |
|
|
86% FDEOH W\SH $ WR PLQL % |
|
|
FRPSXWHU ZLWK :LQGRZV ;3 9LVWD RU |
|
|
'HYHORSPHQW WRROFKDLQ |
|
,$5 (:$50 |
|
|
|
.HLO 0'. $50 |
|
|
*&& EDVHG ,'( |
|
|
06 9 |
|
|
|
|
DocID025833 Rev 3 |
13/49 |
Hardware layout and configuration |
UM1724 |
|
|
|
|
The ST-LINK/V2-1 requires a dedicated USB driver, which can be found on www.st.com for |
|
|
Windows Vista, 7 and 8. On Windows XP the ST-LINK/V2-1 driver requires WinUsb to be |
|
|
installed before using the ST-LINK/2-1 (either available from Microsoft website or included in |
|
|
the USB driver for ST-LINK/V2 for XP). |
|
|
In case the STM32 Nucleo board is connected to the PC before the driver is installed, some |
|
|
Nucleo interfaces may be declared as “Unknown” in the PC device manager. In this case |
|
|
the user must install the driver files (Figure 6), and from the device manager update the |
|
|
driver of the connected device. |
Note: |
Prefer using the “USB Composite Device” handle for a full recovery. |
|
|
|
Figure 6. Updating the list of drivers in Device Manager |
|
|
|
|
|
|
5.2.2ST-LINK/V2-1 firmware upgrade
The ST-Link/V2-1 embeds a firmware upgrade mechanism for in-situ upgrade through the USB port. As the firmware may evolve during the life time of the ST-Link/V2-1 product (for example new functionality, bug fixes, support for new microcontroller families), it is recommended to visit www.st.com periodically in order to stay up-to-date with the latest firmware version.
5.2.3Using the ST-LINK/V2-1 to program/debug the STM32 on board
To program the STM32 on the board, plug in the two jumpers on CN2, as shown in red in Figure 7. Do not use the CN4 connector as this could disturb the communication with the STM32 microcontroller of the STM32 Nucleo board.
14/49 |
DocID025833 Rev 3 |
UM1724 |
Hardware layout and configuration |
|
|
&1 MXPSHUV 21
&1 6:'
FRQQHFWRU
06 9
5.2.4Using ST-LINK/V2-1 to program/debug an external STM32 application
It is very easy to use the ST-LINK/V2-1 to program the STM32 on an external application. Simply remove the two jumpers from CN2 as illustrated in Figure 8, and connect your application to the CN4 debug connector according to Table 4.
Note: |
SB12 NRST (target MCU RESET) must be OFF if you use CN4 pin 5 in your external |
|||
|
application. |
|
|
|
|
|
Table 4. Debug connector CN4 (SWD) |
||
|
Pin |
|
CN4 |
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 |
|
|
|
|
|
DocID025833 Rev 3 |
15/49 |