Professional Documents
Culture Documents
UM1472 User Manual: Discovery Kit With STM32F407VG MCU
UM1472 User Manual: Discovery Kit With STM32F407VG MCU
User manual
Discovery kit with STM32F407VG MCU
Introduction
The STM32F4DISCOVERY Discovery kit allows users to easily develop applications with
the STM32F407VG high-performance microcontroller with the Arm® Cortex®-M4 32-bit
core. It includes everything required either for beginners or experienced users to get started
quickly.
Based on STM32F407VG, it includes an ST-LINK/V2-A embedded debug tool, one ST-
MEMS digital accelerometer, one digital microphone, one audio DAC with integrated class D
speaker driver, LEDs, push-buttons and a USB OTG Micro-AB connector. Specialized add-
on boards can be connected by means of the extension header connectors. The
STM32F4DISCOVERY Discovery kit comes with the STM32 comprehensive free software
libraries and examples available with the STM32CubeF4 MCU Package.
Figure 1. STM32F4DISCOVERY
Contents
1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2 Ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.1 Codification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3 Development environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.1 System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.2 Development toolchains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.3 Demonstration software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4 Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
5 Quick start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
5.1 Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
7 Mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
9 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
List of tables
List of figures
Figure 1. STM32F4DISCOVERY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Figure 2. Hardware block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Figure 3. STM32F4DISCOVERY top layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Figure 4. STM32F4DISCOVERY bottom layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Figure 5. USB composite device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 6. ST-LINK VCP connection to USART2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Figure 7. STM32F4DISCOVERY connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Figure 8. ST-LINK connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Figure 9. STM32F4DISCOVERY mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
1 Features
a. Arm is a registered trademark of Arm Limited (or its subsidiaries) in the US and or elsewhere.
2 Ordering information
To order the Discovery kit for the STM32F407 product line of microcontrollers, refer to
Table 1. Additional information is available from the datasheet and reference manual of the
target microcontroller.
2.1 Codification
The meaning of the codification is explained in Table 2.
3 Development environment
4 Conventions
Table 3 provides the definition of some conventions used in the present document.
a. macOS® is a trademark of Apple Inc. registered in the U.S. and other countries.
All other trademarks are the property of their respective owners.
b. On Windows® only.
5 Quick start
Mini
USB
Embedded
ST-LINK/V2-A
SWD
STM32F407VGT6
I/O RESET
LEDs B2
LD3 to LD8 RST
B1
Audio sensor
USER
Mini-Jack Micro-USB
MSv30007V3
ST-LINK/V2
LD1 (red/green LED)
COM STM32F407G-DISC1
LD2 (red LED)
CN2 R1
D1 PWR
LD1 CN1
SWD connector C3 C4
C1
COM
C2
U1
D2
R2
R8
R5
R7
R6
CN2 R10 R11
LD2
CN3
PWR
R4
X1
R3
C5
MB997D ST-LINK/DISCOVERY
SWD
C8
DISCOVERY
R9
C7 D3
CN3
R14
R12
selector
R13
C6
ST-LINK
U2
R15
C9 C10
R16
www.st.com/stm32f4-discovery
C17
C18
C15 C16
C20
C19
C14 R21
P1
U3
R22
P2
5V power
GND GND C21
X3
GND GND
supply input/output
JP1 VDD VDD X2 C27 5V 5V
C25
R26
I
C24
R27
C26
R28
DD measurement
GND NRST L1 R23
3V 3V
C23
3V power
C22 R24 R25 C28
C29
PC1 PC0 PH0 PH1
C31
C32
U4 R29
supply output
C30
PC3 PC2 JP1 PC14 PC15
PA1 PA0 Idd PE6 PC13
R31
PA3 PA2 PE4 PE5
R30
R33
C36
PB1 PB0 BOOT0 VDD
R35 R36
C37 (orange LED)
R39
LD3
C38
GND PB2 R38 R40 B2
PB6 PB7
B1 user button
U5
R45
Reset
C42
R46
U6
C44 R48
U7 R47
C43
PE15 PB10 C45
PD1 PD2
R50
R51
C46
R49
R55
U8
R58 C58
PA14 PA15
R57
PD9 PD10 PA10 PA13
R59
C57
R60
PD11 PD12 PA8 PA9
C56
R61 C59 T1
R62
U9
PD15 NC R65
R66 LD7 PC6 PC7
(green LED) LD7 GND GND
LD8
MS30005V2
Note: Pin 1 of CN2, CN3, JP1, P1 and P2 connectors are identified by a red square.
SB20 (B1-USER)
MS30004V1
a. The features described in this section apply also to ST-LINK/V2, which is the debugger/programmer
embedded in the obsolete Discovery kit with order code STM32F4DISCOVERY. Only Section 6.1.3: ST-
LINK/V2-A VCP configuration is specific to the Discovery kit with order code STM32F407G-DISC1.
Both CN3 jumpers ON ST-LINK/V2-A functions enabled for on board programming (default)
ST-LINK/V2-A functions enabled for application through external CN2
Both CN3 jumpers OFF
connector (SWD supported)
6.1.1 Drivers
Before connecting the STM32F4DISCOVERY board to a Windows® PC (7, 8 and 10)
through the USB, a driver for the ST-LINK/V2-A must be installed. It is available at the
www.st.com website. In case the STM32 Discovery board is connected to the PC before the
driver is installed, some Discovery interfaces may be declared as “Unknown” in the PC
device manager. To recover from this situation, after installing the dedicated driver, the
association of “Unknown” USB devices found on the STM32F4DISCOVERY board to this
dedicated driver, must be updated in the device manager manually.
Note: It is recommended to proceed by using USB Composite Device, as shown in Figure 5.
U2 pin 12 (ST-LINK_TX)
U2 pin 13 (ST-LINK_RX)
USART2_RX USART2_TX
MSv40700V2
CN2
SWD connector
CN3
Jumpers ON
MSv33176V1
CN2
SWD connector
CN3
Jumpers OFF
MSv33177V1
6.3 LEDs
• LD1 COM: LD1 default status is red. LD1 turns to green to indicate that
communications are in progress between the PC and the ST-LINK/V2-A.
• LD2 PWR: red LED indicates that the board is powered.
• User LD3: orange LED is a user LED connected to the I/O PD13 of the
STM32F407VGT6.
• User LD4: green LED is a user LED connected to the I/O PD12 of the
STM32F407VGT6.
• User LD5: red LED is a user LED connected to the I/O PD14 of the STM32F407VGT6.
• User LD6: blue LED is a user LED connected to the I/O PD15 of the STM32F407VGT6.
• USB LD7: green LED indicates when VBUS is present on CN5 and is connected to PA9
of the STM32F407VGT6.
• USB LD8: red LED indicates an over-current from VBUS of CN5 and is connected to the
I/O PD5 of the STM32F407VGT6.
a. As the frequency supplied by X2 is the same as MCO (8 MHz), R25 and R68 are soldered.
SB17 OFF VDD is not powered from 3V, depends on JP1 jumper.
(VDD powered from 3V) ON VDD is permanently powered from 3V, JP1 jumper has no effect.
NRST signal of the CN2 connector is connected to the NRST pin of the
ON
STM32F407VGT6.
SB11 (NRST)
NRST signal of the CN2 connector is not connected to the NRST pin of the
OFF
STM32F407VGT6.
ON SWO signal of the CN2 connector is connected to PB3.
SB12 (SWO)
OFF SWO signal is not connected.
OFF No incidence on STM32F103C8T6 (ST-LINK/V2-A) NRST signal.
SB10 (STM_RST)
ON STM32F103C8T6 (ST-LINK/V2-A) NRST signal is connected to GND.
BOOT0 signal of the STM32F407VGT6 is held low through a 510 ohm pull-down
ON
resistor.
SB18 (BOOT0)
BOOT0 signal of the STM32F407VGT6 is held high through a 10 kohm pull-up
OFF
resistor.
The BOOT1 signal of the STM32F407VGT6 is held high through a 10 kohm pull-
OFF
up resistor.
SB19 (BOOT1)
The BOOT1 signal of the STM32F407VGT6 is held low through a 510 ohm pull-
ON
down resistor.
1. Default SBx state is shown in bold.
2. SB13 and SB14 are OFF to allow the user to choose between MCO and X2 crystal for clock source.
BOOT0 VPP 94 - - - - - - - - - - - - - 21
USART2_CTS/ USART4_TX/
PA0- ETH_MII_CRS/ TIM2_CH1_ETR/
23 - - - USER - - - - PA0 - - - 12 -
WKUP TIM5_CH1/ TIM8_ETR/
ADC123_IN0/ WKUP
USART2_RTS/ USART4_RX/
ETH_RMII_REF_CLK/
PA1 24 - - - - - - - - PA1 - - - 11 -
ETH_MII_RX_CLK/ TIM5_CH2/
TIM2_CH2/ ADC123_IN1
USART2_TX/ TIM5_CH3/
PA2 TIM9_CH1/ TIM2_CH3/ ETH_MDIO/ 25 - - - - - - - - PA2 - - - 14 -
ADC123_IN2
UM1472 Rev 7
USART2_RX/ TIM5_CH4/
TIM9_CH2/ TIM2_CH4/
PA3 26 - - - - - - - - PA3 - - - 13 -
OTG_HS_ULPI_D0/ ETH_MII_COL/
ADC123_IN3
SPI1_NSS/ SPI3_NSS/
USART2_CK/ DCMI_HSYNC/ LRCK/
PA4 29 - - - - - - - - - - - 16 -
OTG_HS_SOF/ I2S3_WS/ AIN1x
ADC12_IN4/ DAC1_OUT
SPI1_SCK/ OTG_HS_ULPI_CK/
SCL/
PA5 TIM2_CH1_ETR/ TIM8_CHIN/ 30 - - - - - - - - - - - 15 -
SPC
ADC12_IN5/ DAC2_OUT
SPI1_MISO/ TIM8_BKIN/
PA6 TIM13_CH1/ DCMI_PIXCLK/ 31 - - SDO - - - - - - - - - 18 -
TIM3_CH1/ TIM1_BKIN/ ADC12_IN6
SPI1_MOSI/ TIM8_CH1N/
TIM14_CH1TIM3_CH2/ SDA/SDI
PA7 32 - - - - - - - - - - - 17 -
ETH_MII_RX_DV/ TIM1_CH1N/ /SDO
RMII_CRS_DV/ ADC12_IN7
USART1_TX/ TIM1_CH2/
PA9 I2C3_SMBA/ DCMI_D0/ 68 - - - - GREEN - VBUS - - - 1 - - 44
OTG_FS_VBUS
UM1472
USART1_RX/ TIM1_CH3/
PA10 69 - - - - - - ID - - - 4 - - 41
OTG_FS_ID/ DCMI_D1
Table 7. STM32 pin description versus board functions (continued)
UM1472
STM32 pin Board function
USART1_CTS/ CAN1_RX/
PA11 70 - - - - - - DM - - - 2 - - -
TIM1_CH4/ OTG_FS_DM
USART1_RTS/ CAN1_TX/
PA12 71 - - - - - - DP - - - 3 - - -
TIM1_ETR/ OTG_FS_DP
TIM3_CH3/ TIM8_CH2N/
OTG_HS_ULPI_D1/
PB0 35 - - - - - - - - PB0 - - - 22 -
ETH_MII_RXD2/ TIM1_CH2N/
ADC12_IN8
TIM3_CH4/ TIM8_CH3N/
UM1472 Rev 7
OTG_HS_ULPI_D2/
PB1 36 - - - - - - - - PB1 - - - 21 -
ETH_MII_RXD3/ OTG_HS_INTN/
TIM1_CH3N/ ADC12_IN9
PB2 BOOT1 37 - - - - - - - - - - - - 24 -
I2C1_SMBA/ CAN2_RX/
OTG_HS_ULPI_D7/
PB5 ETH_PPS_OUT/ TIM3_CH2/ 91 - - - - - - - - PB5 - - - - 26
SPI1_MOSI/ SPI3_MOSI/
DCMI_D10/ I2S3_SD
I2C1_SDA/ FSMC_NL/
PB7 DCMI_VSYNC/ USART1_RX/ 93 - - - - - - - - PB7 - - - 24
TIM4_CH2
CAN1_RX
Table 7. STM32 pin description versus board functions (continued)
24/32
I2C2_SDA/ USART3_RX/
OTG_HS_ULPI_D4/
PB11 ETH_RMII_TX_EN/ 48 - - - - - - - - PB11 - - - 35 -
ETH_MII_TX_EN/ OTG_HS_SDA/
TIM2_CH4
SPI2_MISO/ TIM1_CH2N/
TIM12_CH1/ OTG_HS_DM/
PB14 USART3_RTS/ TIM8_CH2N/ 53 - - - - - - - - PB14 - - - 38 -
I2S2ext_SD
Power
PC0 OTG_HS_ULPI_STP/ ADC123_IN10 15 - - - - - - - - - - - 8 -
On
SPI2_MISO/ OTG_HS_ULPI_DIR/
PC2 TH_MII_TXD2/ 17 - - - - - - - - PC2 - - - 10 -
I2S2ext_SD/ ADC123_IN12
SPI2_MOSI/ I2S2_SD/
UM1472
DOUT/A
PC3 OTG_HS_ULPI_NXT/ 18 - - - - - - - - - - - 9 -
IN4x
ETH_MII_TX_CLK/ ADC123_IN13
Table 7. STM32 pin description versus board functions (continued)
UM1472
STM32 pin Board function
ETH_RMII_RX_D0/
PC4 33 - - - - - - - - PC4 - - - 20 -
ETH_MII_RX_D0/ ADC12_IN14
ETH_RMII_RX_D1/
PC5 34 - - - - - - - - PC5 - - - 19 -
ETH_MII_RX_D1/ ADC12_IN15
OSC32
PC14 OSC32_IN 8 - - - - - - - PC14 - - - - 9
_IN
OSC32
PC15 OSC32_OUT 9 - - - - - - - PC15 - - - - 10
_OUT
Over
PD5 FSMC_NWE/ USART2_TX 86 - - - - RED - - - - - - - 29
current
25/32
Table 7. STM32 pin description versus board functions (continued)
26/32
USART2_CK/ FSMC_NE1/
PD7 88 - - - - - - - - PD7 - - - - 27
FSMC_NCE2
FSMC_A17/ TIM4_CH1/
PD12 59 - - - - GREEN - - - - - - - 44 -
USART3_RTS
TRACECLK/ FSMC_A23/
PE2 1 - - - - - - - - PE2 - - - - 15
ETH_MII_TXD3
UM1472
PE12 FSMC_D9/ TIM1_CH3N 43 - - - - - - - - PE12 - - - 30 -
UM1472
STM32 pin Board function
OSC_
PH0 OSC_IN 12 - - - - - - - PH0 - - - - 7
IN
OSC_
PH1 OSC_OUT 13 - - - - - - - PH1 - - - - 8
OUT
- - - - - - - - - - - - 5V - - - 3
- - - - - - - - - - - - 5V - - - 4
- - - - - - - - - - - - 3V - - - 5
- - - - - - - - - - - - 3V - - - 6
- - - - - - - - - - - - VDD - - 3 -
UM1472 Rev 7
- - - - - - - - - - - - VDD - - 4 -
- - - - - - - - - - - - VDD - - - 22
- - - - - - - - - - - - GND - - 2 -
- - - - - - - - - - - - GND - - 5 -
- - - - - - - - - - - - GND - - 23 -
- - - - - - - - - - - - GND - - 49 -
- - - - - - - - - - - - GND - - 50 -
- - - - - - - - - - - - GND - - - 1
- - - - - - - - - - - - GND - - - 2
- - - - - - - - - - - - GND - - - 49
7 Mechanical drawing
8.2.1 MB997
Revision B-01
The revision B-01 of the STM32F4DISCOVERY Discovery kit is the initial released version.
Revision B-02
The revision B-02 of the STM32F4DISCOVERY Discovery kit sets the resistor R27 to "Not
fitted" and sets R28 to "fitted".
Revision C-01
The revision C-01 of the STM32F4DISCOVERY Discovery kit sets the resistor R31 to "Not
fitted" , replaces PDR_ON of STM32F4 by VSS and replaces LIS302DL (U5) by LIS3DSH.
Revision D-01
The revision D-01 of the STM32F4DISCOVERY Discovery kit modifies the silkscreen for
mbed-enabled and replaces STM32F103C8T6 (U2) by STM32F103CBT6.
Revision E-01
The revision E-01 of the STM32F4DISCOVERY Discovery kit replaces MP45DT02-M (U9)
by IMP34DT05TR and updates the certification logos.
9 Revision history
STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and
improvements to ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on
ST products before placing orders. ST products are sold pursuant to ST’s terms and conditions of sale in place at the time of order
acknowledgement.
Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or
the design of Purchasers’ products.
Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.
ST and the ST logo are trademarks of ST. For additional information about ST trademarks, please refer to www.st.com/trademarks. All other
product or service names are the property of their respective owners.
Information in this document supersedes and replaces information previously supplied in any prior versions of this document.