0% found this document useful (0 votes)
136 views40 pages

3 Stm32f4discovery User Manual 2

The document is a user manual for the STM32F4DISCOVERY discovery kit. It describes the hardware and features of the kit, which includes an STM32F407 microcontroller, an ST-LINK/V2 debug interface, LEDs, pushbuttons, an accelerometer, audio components, and a USB connector. The manual provides setup instructions, diagrams of the board layout and electrical schematics, and revision history.

Uploaded by

haystackmuddy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
136 views40 pages

3 Stm32f4discovery User Manual 2

The document is a user manual for the STM32F4DISCOVERY discovery kit. It describes the hardware and features of the kit, which includes an STM32F407 microcontroller, an ST-LINK/V2 debug interface, LEDs, pushbuttons, an accelerometer, audio components, and a USB connector. The manual provides setup instructions, diagrams of the board layout and electrical schematics, and revision history.

Uploaded by

haystackmuddy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 40

UM1472

User manual
Discovery kit for STM32F407/417 lines

Introduction
The STM32F4DISCOVERY helps you to discover the STM32F407 & STM32F417 lines’
high-performance features and to develop your applications.
It is based on an STM32F407VGT6 and includes an ST-LINK/V2 embedded debug tool
interface, ST MEMS digital accelerometer, ST MEMS digital microphone, audio DAC with
integrated class D speaker driver, LEDs, pushbuttons and a USB OTG micro-AB connector.

Figure 1. STM32F4DISCOVERY

1. Picture not contractual

November 2013 DocID022256 Rev 3 1/40


www.st.com
Contents UM1472

Contents

1 Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

2 Quick start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.1 Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.2 System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.3 Development toolchain supporting the STM32F4DISCOVERY . . . . . . . . . 6
2.4 Order code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

3 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

4 Hardware and layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8


4.1 STM32F407VGT6 microcontroller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
4.2 Embedded ST-LINK/V2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.2.1 Using ST-LINK/V2 to program/debug the STM32F4 on board . . . . . . . 14
4.2.2 Using ST-LINK/V2 to program/debug an external STM32 application . . 15
4.3 Power supply and power selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.4 LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.5 Pushbuttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.6 On board audio capability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.7 USB OTG supported . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.8 Motion sensor (ST MEMS LIS3DSH) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.9 JP1 (Idd) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.10 OSC clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.10.1 OSC clock supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.10.2 OSC 32 KHz clock supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.11 Solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.12 Extension connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

5 Mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32

6 Electrical schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33

7 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39

2/40 DocID022256 Rev 3


UM1472 List of tables

List of tables

Table 1. ON/OFF conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5


Table 2. Jumper states . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Table 3. Debug connector CN2 (SWD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Table 4. Solder bridges. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Table 5. MCU pin description versus board function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Table 6. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39

DocID022256 Rev 3 3/40


3
List of figures UM1472

List of figures

Figure 1. STM32F4DISCOVERY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Figure 2. Hardware block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Figure 3. Top layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Figure 4. Bottom layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Figure 5. STM32F407VGT6 package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Figure 6. STM32F407VGT6 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Figure 7. Typical configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Figure 8. STM32F4DISCOVERY connections image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 9. ST-Link connections image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Figure 10. STM32F4DISCOVERY mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Figure 11. STM32F4DISCOVERY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 12. ST-LINK/V2 (SWD only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Figure 13. MCU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Figure 14. Audio. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Figure 15. USB_OTG_FS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Figure 16. Peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38

4/40 DocID022256 Rev 3


UM1472 Conventions

1 Conventions

Table 1 provides the definition of some conventions used in the present document.

Table 1. 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
Solder bridge SBx OFF SBx connections left open

DocID022256 Rev 3 5/40


39
Quick start UM1472

2 Quick start

The STM32F4DISCOVERY is a low-cost and easy-to-use development kit to quickly


evaluate and start a development with an STM32F4 high-performance microcontroller.
Before installing and using the product, please accept the Evaluation Product License
Agreement from www.st.com/stm32f4-discovery.
For more information on the STM32F4DISCOVERY and for demonstration software, visit
www.st.com/stm32f4-discovery.

2.1 Getting started


Follow the sequence below to configure the STM32F4DISCOVERY board and launch the
DISCOVER application:
1. Check jumper position on the board, JP1 on, CN3 on (DISCOVERY selected).
2. Connect the STM32F4DISCOVERY board to a PC with a USB cable ‘type A to mini-B’
through USB connector CN1 to power the board. Red LED LD2 (PWR) then lights up.
3. Four LEDs between B1 and B2 buttons are blinking.
4. Press user button B1 to enable the ST MEMS sensor, move the board and observe the
four LEDs blinking according to the motion direction and speed. (If you connect a
second USB cable ‘type A to micro-B’ between PC and CN5 connector then the board
is recognized as standard mouse and its motion will also control the PC cursor).
5. To study or modify the DISCOVER project related to this demo, visit
www.st.com/stm32f4-discovery and follow the tutorial.
6. Discover the STM32F4 features, download and execute programs proposed in the list
of projects.
7. Develop your own application using available examples.

2.2 System requirements


 Windows PC (XP, Vista, 7)
 USB type A to Mini-B USB cable

2.3 Development toolchain supporting the STM32F4DISCOVERY


 Altium, TASKING™ VX-Toolset
 Atollic TrueSTUDIO®
 IAR Embedded Workbench® for ARM (EWARM)
 Keil™, MDK-ARM

2.4 Order code


To order the STM32F4 high-performance discovery board, use the order code
STM32F4DISCOVERY.

6/40 DocID022256 Rev 3


UM1472 Features

3 Features

The STM32F4DISCOVERY offers the following features:


 STM32F407VGT6 microcontroller featuring 1 MB of Flash memory, 192 KB of RAM in
an LQFP100 package
 On-board ST-LINK/V2 with selection mode switch to use the kit as a standalone 
ST-LINK/V2 (with SWD connector for programming and debugging)
 Board power supply: through USB bus or from an external 5V supply voltage
 External application power supply: 3V and 5V
 LIS3DSH, ST MEMS motion sensor, 3-axis digital output accelerometer
 MP45DT02, ST MEMS audio sensor, omnidirectional digital microphone
 CS43L22, audio DAC with integrated class D speaker driver
 Eight LEDs:
– LD1 (red/green) for USB communication
– LD2 (red) for 3.3V power on
– Four user LEDs, LD3 (orange), LD4 (green), LD5 (red) and LD6 (blue)
– 2 USB OTG LEDs LD7 (green) VBus and LD8 (red) over-current
 Two pushbuttons (user and reset)
 USB OTG with micro-AB connector
 Extension header for LQFP100 I/Os for quick connection to prototyping board and easy
probing

DocID022256 Rev 3 7/40


39
Hardware and layout UM1472

4 Hardware and layout

The STM32F4DISCOVERY is designed around the STM32F407VGT6 microcontroller in a


100-pin LQFP package.
Figure 2 illustrates the connections between the STM32F407VGT6 and its peripherals (ST-
LINK/V2, pushbutton, LED, Audio DAC, USB, ST MEMS accelerometer, ST MEMS
microphone, and connectors).
Figure 3 and Figure 4 help you to locate these features on the STM32F4DISCOVERY.

Figure 2. Hardware block diagram

Mini
USB

Embedded
ST-LINK/V2
SWD

STM32F407VGT6

I/O I/O Header


Header

I/O RESET

LED B2
LD3 to LD8 RST

MP45DT02 B1
USER

CS43L22 LIS3DSH

Mini-Jack Micro-USB

MS30007V1

8/40 DocID022256 Rev 3


UM1472 Hardware and layout

Figure 3. Top layout

ST-LINK/V2
LD1 (red/green LED)
COM 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
SWD
C5
MB997C ST-LINK/DISCOVERY

C8

DISCOVERY
R9
C7 D3
CN3
R14
R12
selector

R13

C6

ST-LINK
U2

R15
C9 C10

R16

C11 R19 R20


R17
C12
R18
C13

www.st.com/stm32f4-discovery
C17

C18

C15 C16

C20
C19
C14 R21

P1
U3
R22
P2
5V power
GND GND X3
GND GND
C21

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

STM32F407VGT6 PA5 PA4 R34 R32 PE2 PE3 SB1 (B2-RESET)


PA7 PA6 PE0 PE1
C33

PC5 PC4 C35 SB1


PB8 PB9 LD3
R37
C34

C36
PB1 PB0 BOOT0 VDD
R35 R36
C37 (orange LED)
R39

LD3
C38
GND PB2 R38 R40 B2
PB6 PB7
B1 user button
U5

PE7 PE8 LD5


PB4 PB5
B1 LD4 R41
LD5 (red LED)
PE9 PE10 C39 PD7 PB3
PE11 PE12 User LD6 R42
PD5 PD6
B2 reset button
C41

R45
Reset
C42

R46

(green LED) LD4 PE13 PE14 R43 R44


PD3 PD4
C40

U6
C44 R48
U7 R47
C43
PE15 PB10 C45
PD1 PD2
R50

R51
C46

R49

PB11 PB12 R52


C49 PC12 PD0
C48

(blue LED) LD6


C47
C52

PB13 PB14 C50 R56


PC10 PC11
C54 C55 R53 C51
C53
PB15 PD8 CN4 R54

R55
U8

R58 C58
PA14 PA15
R57
PD9 PD10 PA10 PA13
R59
C57

R60
PD11 PD12 PA8 PA9
C56

R61 C59 T1
R62

PD13 PD14 CN5


C60
PC8 PC9
R64
R63

U9
PD15 NC R65
R66 LD7 PC6 PC7
(green LED) LD7 GND GND
LD8

R67 GND GND LD8 (red LED)

MS30005V2

Note: Pin 1 of CN2, CN3, JP1, P1 and P2 connectors are identified by a square.

DocID022256 Rev 3 9/40


39
Hardware and layout UM1472

Figure 4. Bottom layout

SB2, SB4, SB6, SB8


(RESERVED)

SB3, SB5, SB7, SB9 SB11 (NRST)


(DEFAULT)
SB10 (STM_RST)

SB13 (X2 crystal)


SB14 (X2 crystal)
SB12 (SWO)
SB15 (X3 crystal)
SB16 (X3 crystal)
SB17 (VDD from 3V)

SB18 (BOOT0) SB19 (BOOT1)

SB20 (B1-USER)

MS30004V1

10/40 DocID022256 Rev 3


UM1472 Hardware and layout

4.1 STM32F407VGT6 microcontroller


This ARM Cortex-M4 32-bit MCU with FPU has 210 DMIPS, up to 1 MB Flash/192+4 KB
RAM, USB OTG HS/FS, Ethernet, 17 TIMs, 3 ADCs, 15 comm. interfaces and a camera.

Figure 5. STM32F407VGT6 package

STM32F407VGT6

1 Mbyte of Flash memory


192 Kbytes of RAM

LQFP100 14 x 14 mm MS30003V1

This device provides the following benefits.


 168 MHz/210 DMIPS Cortex-M4 with single cycle DSP MAC and floating point unit
providing:
Boosted execution of control algorithms
More features possible for your applications
Ease of use
Better code efficiency
Faster time to market
Elimination of scaling and saturation
Easier support for meta-language tools
 Designed for high performance and ultra fast data transfers; ART Accelerator, 32-bit, 7-
layer AHB bus matrix with 7 masters and 8 slaves including 2 blocks of SRAM, Multi
DMA controllers: 2 general purpose, 1 for USB HS, 1 for Ethernet, One SRAM block
dedicated to the core, providing performance equivalent to 0-wait execution from Flash
Concurrent execution and data transfers and simplified resource allocation
 Outstanding power efficiency; Ultra-low dynamic power, RTC <1 µA typical in VBAT
mode, 3.6 V down to 1.7 V VDD, Voltage regulator with power scaling capability,
providing extra flexibility to reduce power consumption for applications requiring both
high processing and low power performance when running at low voltage or on a
rechargeable battery
 Maximum integration: Up to 1 Mbyte of on-chip Flash memory, 192 Kbytes of SRAM,
reset circuit, internal RCs, PLLs, WLCSP package available, providing more features in
space constrained applications
 Superior and innovative peripherals providing new possibilities to connect and
communicate high speed data and more precision due to high resolution
 Extensive tools and software solutions providing a wide choice within the STM32
ecosystem to develop your applications.

DocID022256 Rev 3 11/40


39
Hardware and layout UM1472

Figure 6. STM32F407VGT6 block diagram

CCM data RAM 64 KB External memory CLK, NE [3:0], A[23:0]


controller (FSMC) D[31:0], OEN, WEN,
NJTRST, JTDI, NBL[3:0], NL, NREG
AHB3
JTCK/SWCLK JTAG & SW MPU SRAM, PSRAM, NOR Flash,
JTDO/SWD, JTDO PC Card (ATA), NAND Flash NWAIT/IORDY, CD
ETM NVIC
TRACECLK NIORD, IOWR, INT[2:3]
TRACED[3:0] D-BUS INTN, NIIS16 as AF
ARM Cortex-M4F
168 MHz I-BUS

ART ACCEL/
AHB bus-matrix 8S7M
FPU Flash

CACHE
S-BUS
up to
RNG
MII or RMII as AF Ethernet MAC DMA/ 1MB

FIFO
MDIO as AF
10/100 FIFO Camera HSYNC, VSYNC
SRAM 112 KB interface PIXCLK, D[13:0]
PHY

DP, DM USB DMA/


ULPI: CK, D(7:0), DIR, STP, NXT FIFO SRAM 16 KB
OTG HS DP

FIFO

PHY
SCL/SDA, INTN, ID, VBUS, SOF USB
DM
8 Streams OTG FS SCL, SDA, INTN, ID, VBUS, SOF
DMA2 FIFO
AHB2 168 MHz

8 Streams AH
HB1 150 MHz
DMA1 FIFO VDD12 Power managmt
Voltage
VDD = 1.8 to 3.6 V
regulator VSS
3.3 V to 1.2 V
VCAP1, VCAP2
@VDDA @VDD
POR Supply
PA[15:0] RC HS Reset
GPIO PORT A supervision
RC LS Int POR/PDR/
PB[15:0] BOR VDDA, VSSA
GPIO PORT B
PLL1&2 NRST
PVD
PC[15:0] GPIO PORT C
@VDDA @VDD
PD[15:0] GPIO PORT D XTAL OSC OSC_IN
4-16 MHz OSC_OUT
PE[15:0] Reset &
GPIO PORT E
clock IWDG
MANAGT
PF[15:0] control
GPIO PORT F Standby
interface VBAT = 1.65 to 3.6 V
PG[15:0]
GPIO PORT G @VBAT
HCLKx
FCLK

PCLKx

OSC32_IN
PH[15:0] XTAL 32 kHz
GPIO PORT H OSC32_OUT
LS

PI[11:0] RTC
GPIO PORT I AWU RTC_AF1
Backup register RTC_AF1
LS

4 KB BKPSRAM

TIM2 32b 4 channels, ETR as AF


16b
TIM3 4 channels, ETR as AF
DMA2 DMA1
16b 4 channels, ETR as AF
TIM4
AHB/APB2 AHB/APB1 32b
TIM5 4 channels, ETR as AF

140 AF EXT IT. WKUP 16b


TIM12 2 channels as AF
D[7:0]
TIM13 16b
FIFO

CMD, CK as AF SDIO / MMC 1 channel as AF

4 compl. channels (TIM1_CH[1:4]N)


4 channels (TIM1_CH[1:4]), ETR, 16b TIM14 16b 1 channel as AF
BKIN as AF
TIM1 / PWM
smcard RX, TX, CK,
4 compl. channels (TIM1_CH[1:4]N) USART2
4 channels (TIM1_CH[1:4]), ETR, TIM8 / PWM 16b WWDG
irDA CTS, RTS as AF
BKIN as AF smcard RX, TX, CK
16b USART3
2 channels as AF TIM9 irDA CTS, RTS as AF

UART4 RX, TX as AF
1 channel as AF TIM10 16b
16b UART5 RX, TX as AF
(max)
MHz30MHz

1 channel as AF TIM11
84 MHz

smcard SPI2/I2S2 MOSI/SD, MISO/SD_ext, SCK/CK


RX, TX, CK, USART 1 16b NSS/WS, MCK as AF
irDA TIM6
APB142APB1

CTS, RTS as AF
60MHz

smcard SPI3/I2S3 MOSI/SD, MISO/SD_ext, SCK/CK


RX, TX, CK, USART 6
APB2

16b NSS/WS, MCK as AF


CTS, RTS as AF irDA TIM7
APB2

I2C1/SMBUS SCL, SDA, SMBA as AF


MOSI, MISO SPI1
SCK, NSS as AF
@VDDA I2C2/SMBUS SCL, SDA, SMBA as AF
VDDREF_ADC
USART 2MBps
Temperature sensor I2C3/SMBUS SCL, SDA, SMBA as AF
8 analog inputs common @VDDA
to the 3 ADCs ADC1
8 analog inputs common ADC2 DAC1 ITF bxCAN1 TX, RX
FIFO

to the ADC1 & 2 IF


8 analog inputs to ADC3 ADC 3 DAC2
bxCAN2 TX, RX

DAC1_OUT DAC2_OUT
as AF as AF MS19920V1

12/40 DocID022256 Rev 3


UM1472 Hardware and layout

4.2 Embedded ST-LINK/V2


The ST-LINK/V2 programming and debugging tool is integrated on the
STM32F4DISCOVERY. The embedded ST-LINK/V2 can be used in 2 different ways
according to the jumper states (see Table 2):
 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 user manual UM1075 (ST-LINK/V2 in-circuit
debugger/programmer for STM8 and STM32) which describes in detail all the ST-LINK/V2
features.

Figure 7. Typical configuration

Hardware requirements:
- USB cable type A to mini-B
- computer with Windows XP, Vista or 7

Development toolchain:
Altium, TASKING VX-Toolset,
Atollic, TrueSTUDIO
IAR, EWARM
Keil, MDK-ARM

MS19052V1

Table 2. Jumper states


Jumper state Description

Both CN3 jumpers ON ST-LINK/V2 functions enabled for on board programming (default)
ST-LINK/V2 functions enabled for application through external CN2
Both CN3 jumpers OFF
connector (SWD supported)

DocID022256 Rev 3 13/40


39
Hardware and layout UM1472

4.2.1 Using ST-LINK/V2 to program/debug the STM32F4 on board


To program the STM32F4 on board, simply plug in the two jumpers on CN3, as shown in
Figure 8 in red, but do not use the CN2 connector as that could disturb communication with
the STM32F407VGT6 of the STM32F4DISCOVERY.

Figure 8. STM32F4DISCOVERY connections image

CN2
SWD connector

CN3
Jumpers ON

MSv33176V1

14/40 DocID022256 Rev 3


UM1472 Hardware and layout

4.2.2 Using ST-LINK/V2 to program/debug an external STM32 application


It is very easy to use the ST-LINK/V2 to program the STM32 on an external application.
Simply remove the 2 jumpers from CN3 as shown in Figure 9, and connect your application
to the CN2 debug connector according to Table 3.
Note: SB11 must be OFF if you use CN2 pin 5 in your external application.

Table 3. 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

Figure 9. ST-Link connections image

CN2
SWD connector

CN3
Jumpers OFF

MSv33177V1

DocID022256 Rev 3 15/40


39
Hardware and layout UM1472

4.3 Power supply and power selection


The power supply is provided either by the host PC through the USB cable, or by an
external 5V power supply.
The D1 and D2 diodes protect the 5V and 3V pins from external power supplies:
 5V and 3V can be used as output power supplies when another application board is
connected to pins P1 and P2. 
In this case, the 5V and 3V pins deliver a 5V or 3V power supply and power
consumption must be lower than 100 mA.
 5V can also be used as input power supplies e.g. when the USB connector is not
connected to the PC. 
In this case, the STM32F4DISCOVERY board must be powered by a power supply unit
or by auxiliary equipment complying with standard EN-60950-1: 2006+A11/2009, and
must be Safety Extra Low Voltage (SELV) with limited power capability.

4.4 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.
 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 overcurrent from VBUS of CN5 and is connected to the
I/O PD5 of the STM32F407VGT6.

4.5 Pushbuttons
 B1 USER: User and Wake-Up button connected to the I/O PA0 of the
STM32F407VGT6.
 B2 RESET: Pushbutton connected to NRST is used to RESET the STM32F407VGT6.

16/40 DocID022256 Rev 3


UM1472 Hardware and layout

4.6 On board audio capability


The STM32F4 uses an audio DAC (CS43L22) to output sounds through the audio mini jack
connector.
The STM32F4 controls the audio DAC through the I2C interface and processes digital
signals through I2S connection or analog input signal.
 The sound can come independently from different inputs:
– ST MEMS microphone (MP45DT02): digital using PDM protocol or analog when
using the low pass filter.
– USB connector: from external mass storage such as a USB key, USB HDD, and
so on.
– Internal memory of the STM32F4.
 The sound can be output in different ways through audio DAC:
– Using I2S protocol
– Using the STM32F4 DAC to analog input AIN1x of the CS43L22
– Using the microphone output directly via a low pass filter to analog input AIN4x of
the CS43L22

4.7 USB OTG supported


The STM32F4 is used to drive only USB OTG full speed on this board. The USB micro-AB
connector (CN5) allows the user to connect a host or device component, such as a USB
key, mouse, and so on.
Two LEDs are dedicated to this module:
 LD7 (green LED) indicates when VBUS is active
 LD8 (red LED) indicates an overcurrent from connected device

4.8 Motion sensor (ST MEMS LIS3DSH)


The LIS3DSH is an ultra compact low-power three-axis linear accelerometer.
It includes a sensing element and an IC interface able to provide the measured acceleration
to the external world through I2C/SPI serial interface.
The LIS3DSH has ±2g/±4g/±6g/±8g/±16g dynamically selectable full-scale and it is capable
of measuring acceleration with an output data rate of 3.125 Hz to 1.6 kHz.
The STM32F4 controls this motion sensor through the SPI interface.

4.9 JP1 (Idd)


Jumper JP1, labeled Idd, allows the consumption of STM32F407VGT6 to be measured by
removing the jumper and connecting an ammeter.
 Jumper on: STM32F407VGT6 is powered (default).
 Jumper off: an ammeter must be connected to measure the STM32F407VGT6 current,
(if there is no ammeter, the STM32F407VGT6 is not powered).

DocID022256 Rev 3 17/40


39
Hardware and layout UM1472

4.10 OSC clock

4.10.1 OSC clock supply


If PH0 and PH1 are only used as GPIOs instead of as a clock, then SB13 and SB14 are
closed and R24, R25 and R68 are removed.
 MCO from ST-LINK. From MCO of the STM32F103. This frequency cannot be
changed, it is fixed at 8 MHz and connected to PH0-OSC_IN of the STM32F407VGT6.
Configuration needed:
– SB13, SB14 OPEN
– R25(a) removed
– R68(a) soldered
 Oscillator onboard. From X2 crystal. For typical frequencies and its capacitors and
resistors, please refer to the STM32F407VGT6 Datasheet. Configuration needed:
– SB13, SB14 OPEN
– R25(a) soldered
– R68(a) removed
 Oscillator from external PH0. From external oscillator through pin 7 of the P2
connector. Configuration needed:
– SB13 closed
– SB14 closed
– R25 and R68 removed

4.10.2 OSC 32 KHz clock supply


If PC14 and PC15 are only used as GPIOs instead of as a clock, then SB15 and SB16 are
closed, and R21 and R22 are removed.
 Oscillator onboard. From X1 Crystal (not provided). Configuration needed:
– SB15, SB16 OPEN
– C16, C27, R21 and R22 soldered.
 Oscillator from external PC14. From external oscillator trough the pin 9 of P2
connector. Configuration needed:
– SB16 closed
– SB15 closed
– R21 and R22 removed

a. As the frequency supplied by X2 is the same as MCO (8 MHz) R25 and R68 are soldered.

18/40 DocID022256 Rev 3


UM1472 Hardware and layout

4.11 Solder bridges


Table 4. Solder bridges
Bridge State(1) Description

X2, C14, C15, R24 and R25 provide a clock.


OFF
SB13,14 (X2 crystal) (2) PH0, PH1 are disconnected from P2.
ON PH0, PH1 are connected to P2 (R24, R25 and R68 must not be fitted).
SB3,5,7,9 (Default) ON Reserved, do not modify.
SB2,4,6,8 (Reserved) OFF Reserved, do not modify.
X3, C16, C27, R21 and R22 deliver a 32 KHz clock. 
SB15,16 OFF
PC14, PC15 are not connected to P2.
(X3 crystal)
ON PC14, PC15 are only connected to P2. Remove only R21, R22

SB1 ON B2 pushbutton is connected to the NRST pin of the STM32F407VGT6 MCU.


(B2-RESET) OFF B2 pushbutton is not connected the NRST pin of the STM32F407VGT6 MCU.

SB20 ON B1 pushbutton is connected to PA0.


(B1-USER) OFF B1 pushbutton is not connected to PA0.
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 MCU.
SB11 (NRST)
NRST signal of the CN2 connector is not connected to the NRST pin of the
OFF
STM32F407VGT6 MCU.
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) NRST signal.
SB10 (STM_RST)
ON STM32F103C8T6 (ST-LINK/V2) NRST signal is connected to GND.
BOOT0 signal of the STM32F407VGT6 MCU is held low through a 510 ohm
ON
pull-down resistor.
SB18 (BOOT0)
BOOT0 signal of the STM32F407VGT6 MCU is held high through a 10 Kohm
OFF
pull-up resistor.
The BOOT1 signal of the STM32F407VGT6 MCU is held high through a
OFF
10 Kohm pull-up resistor.
SB19 (BOOT1)
The BOOT1 signal of the STM32F407VGT6 MCU is held low through a 510 ohm
ON
pull-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.

DocID022256 Rev 3 19/40


39
Hardware and layout UM1472

4.12 Extension connectors


The male headers P1 and P2 can connect the STM32F4DISCOVERY to a standard
prototyping/wrapping board. STM32F407VGT6 GPI/Os are available on these connectors.
P1 and P2 can also be probed by an oscilloscope, logical analyzer or voltmeter.

Table 5. MCU pin description versus board function


MCU pin Board function

Power supply
Pushbutton
MP45DT02

LIS302DL
LQFP100

CS43L22

Free I/O
Main Alternate

SWD

OSC
USB
LED

CN5

CN2

P1

P2
function functions

BOOT0 VPP 94 21
RESET

NRST
NRST 14 5 6

USART2_CTS/
USART4_TX/
ETH_MII_CRS/
USER

PA0- TIM2_CH1_ETR/
23 12
WKUP TIM5_CH1/
TIM8_ETR/
ADC123_IN0/
WKUP
USART2_RTS/
USART4_RX/
ETH_RMII_REF_CLK/
PA1 ETH_MII_RX_CLK/ 24 11
TIM5_CH2/
TIMM2_CH2/
ADC123_IN1
USART2_TX/
TIM5_CH3/
TIM9_CH1/
PA2 25 14
TIM2_CH3/
ETH_MDIO/
ADC123_IN2
USART2_RX/
TIM5_CH4/
TIM9_CH2/
PA3 TIM2_CH4/ 26 13
OTG_HS_ULPI_D0/
ETH_MII_COL/
ADC123_IN3

20/40 DocID022256 Rev 3


UM1472 Hardware and layout

Table 5. MCU pin description versus board function (continued)


MCU pin Board function

Power supply
Pushbutton
MP45DT02

LIS302DL
LQFP100

CS43L22

Free I/O
Main Alternate

SWD

OSC
USB
LED

CN5

CN2

P1

P2
function functions

SPI1_NSS/
SPI3_NSS/
LRCK/AIN1x

USART2_CK/
DCMI_HSYNC/
PA4 29 16
OTG_HS_SOF/
I2S3_WS/
ADC12_IN4/
DAC1_OUT
SPI1_SCK/
OTG_HS_ULPI_CK/
SCL/SPC

TIM2_CH1_ETR/
PA5 30 15
TIM8_CHIN/
ADC12_IN5/
DAC2_OUT
SPI1_MISO/
TIM8_BKIN/
TIM13_CH1/
SDO

PA6 DCMI_PIXCLK/ 31 18
TIM3_CH1/
TIM1_BKIN/
ADC12_IN6
SPI1_MOSI/
SDA/SDI/SDO

TIM8_CH1N/
TIM14_CH1TIM3_CH2/
PA7 ETH_MII_RX_DV/ 32 17
TIM1_CH1N/
RMII_CRS_DV/
ADC12_IN7
MCO1/
USART1_CK/
PA8 TIM1_CH1/ 67 43
I2C3_SCL/
OTG_FS_SOF
USART1_TX/
TIM1_CH2/
GREEN

VBUS

PA9 I2C3_SMBA/ 68 1 44
DCMI_D0/
OTG_FS_VBUS

DocID022256 Rev 3 21/40


39
Hardware and layout UM1472

Table 5. MCU pin description versus board function (continued)


MCU pin Board function

Power supply
Pushbutton
MP45DT02

LIS302DL
LQFP100

CS43L22

Free I/O
Main Alternate

SWD

OSC
USB
LED

CN5

CN2

P1

P2
function functions

USART1_RX/
TIM1_CH3/
PA10 69 4 41

ID
OTG_FS_ID/
DCMI_D1
USART1_CTS/
CAN1_RX/

DM
PA11 70 2
TIM1_CH4/
OTG_FS_DM
USART1_RTS/
CAN1_TX/ DP
PA12 71 3
TIM1_ETR/
OTG_FS_DP
SWDIO SWCLK

PA13 JTMS-SWDIO 72 4 42

PA14 JTCK-SWCLK 76 2 39

JTDI/
SPI3_NSS/
PA15 I2S3_WS/ 77 40
TIM2_CH1_ETR/
SPI1_NSS
TIM3_CH3/
TIM8_CH2N/
OTG_HS_ULPI_D1/
PB0 35 22
ETH_MII_RXD2/
TIM1_CH2N/
ADC12_IN8
TIM3_CH4/
TIM8_CH3N/
OTG_HS_ULPI_D2/
PB1 ETH_MII_RXD3/ 36 21
OTG_HS_INTN/
TIM1_CH3N/
ADC12_IN9
PB2 37 24

22/40 DocID022256 Rev 3


UM1472 Hardware and layout

Table 5. MCU pin description versus board function (continued)


MCU pin Board function

Power supply
Pushbutton
MP45DT02

LIS302DL
LQFP100

CS43L22

Free I/O
Main Alternate

SWD

OSC
USB
LED

CN5

CN2

P1

P2
function functions

JTDO/
TRACESWO/
SPI3_SCK/

SWO
PB3 89 6 28
I2S3_CK/
TIM2_CH2/
SPI1_SCK
NJTRST/
SPI3_MISO/
PB4 TIM3_CH1/ 90 25
SPI1_MISO/
I2S3ext_SD
I2C1_SMBA/
CAN2_RX/
OTG_HS_ULPI_D7/
ETH_PPS_OUT/
PB5 TIM3_CH2/ 91 26
SPI1_MOSI/
SPI3_MOSI/
DCMI_D10/
I2S3_SD
I2C1_SCL/
TIM4_CH1/
CAN2_TX/
SCL

PB6 92 23
OTG_FS_INTN/
DCMI_D5/
USART1_TX
I2C1_SDA/
FSMC_NL/
PB7 DCMI_VSYNC/ 93 24
USART1_RX/
TIM4_CH2
TIM4_CH3/
SDIO_D4/
TIM10_CH1/
DCMI_D6/
PB8 95 19
OTG_FS_SCL/
ETH_MII_TXD3/
I2C1_SCL/
CAN1_RX

DocID022256 Rev 3 23/40


39
Hardware and layout UM1472

Table 5. MCU pin description versus board function (continued)


MCU pin Board function

Power supply
Pushbutton
MP45DT02

LIS302DL
LQFP100

CS43L22

Free I/O
Main Alternate

SWD

OSC
USB
LED

CN5

CN2

P1

P2
function functions

SPI2_NSS/
I2S2_WS/
TIM4_CH4/
TIM11_CH1/
SDA

PB9 OTG_FS_SDA/ 96 20
SDIO_D5/
DCMI_D7/
I2C1_SDA/
CAN1_TX
SPI2_SCK/
I2S2_CK/
I2C2_SCL/
USART3_TX/
CLK

PB10 47 34
OTG_HS_ULPI_D3/
ETH_MII_RX_ER/
OTG_HS_SCL/
TIM2_CH3
I2C2_SDA/
USART3_RX/
OTG_HS_ULPI_D4/
PB11 ETH_RMII_TX_EN/ 48 35
ETH_MII_TX_EN/
OTG_HS_SDA/
TIM2_CH4
SPI2_NSS/
I2S2_WS/
I2C2_SMBA/
USART3_CK/
TIM1_BKIN/
PB12 51 36
CAN2_RX/
OTG_HS_ULPI_D5/
ETH_RMII_TXD0/
ETH_MII_TXD0/
OTG_HS_ID

24/40 DocID022256 Rev 3


UM1472 Hardware and layout

Table 5. MCU pin description versus board function (continued)


MCU pin Board function

Power supply
Pushbutton
MP45DT02

LIS302DL
LQFP100

CS43L22

Free I/O
Main Alternate

SWD

OSC
USB
LED

CN5

CN2

P1

P2
function functions

SPI2_SCK/
I2S2_CK/
USART3_CTS/
TIM1_CH1N/
PB13 CAN2_TX/ 52 37
OTG_HS_ULPI_D6/
ETH_RMII_TXD1/
ETH_MII_TXD1/
OTG_HS_VBUS
SPI2_MISO/
TIM1_CH2N/
TIM12_CH1/
PB14 OTG_HS_DMUSART3 53 38
_RTS/
TIM8_CH2N/
I2S2ext_SD
SPI2_MOSI/
I2S2_SD/
TIM1_CH3N/
PB15 54 39
TIM8_CH3N/
TIM12_CH2/
OTG_HS_DP
PowerOn

OTG_HS_ULPI_STP/
PC0 15 8
ADC123_IN10

ETH_MDC/
PC1 16 7
ADC123_IN11
SPI2_MISO/
OTG_HS_ULPI_DIR/
PC2 TH_MII_TXD2/ 17 10
I2S2ext_SD/
ADC123_IN12
SPI2_MOSI/
DOUT/AIN4x

I2S2_SD/
PC3 OTG_HS_ULPI_NXT/ 18 9
ETH_MII_TX_CLK/
ADC123_IN13

DocID022256 Rev 3 25/40


39
Hardware and layout UM1472

Table 5. MCU pin description versus board function (continued)


MCU pin Board function

Power supply
Pushbutton
MP45DT02

LIS302DL
LQFP100

CS43L22

Free I/O
Main Alternate

SWD

OSC
USB
LED

CN5

CN2

P1

P2
function functions

ETH_RMII_RX_D0/
PC4 ETH_MII_RX_D0/ 33 20
ADC12_IN14
ETH_RMII_RX_D1/
PC5 ETH_MII_RX_D1/ 34 19
ADC12_IN15
I2S2_MCK/
TIM8_CH1/
SDIO_D6/
PC6 63 47
USART6_TX/
DCMI_D0/
TIM3_CH1
I2S3_MCK/
TIM8_CH2/
MCLK

SDIO_D7/
PC7 64 48
USART6_RX/
DCMI_D1/
TIM3_CH2
TIM8_CH3/
SDIO_D0/
PC8 TIM3_CH3/ 65 45
USART6_CK/
DCMI_D2
I2S_CKIN/
MCO2/
TIM8_CH4/
PC9 SDIO_D1/ 66 46
I2C3_SDA/
DCMI_D3/
TIM3_CH4
SPI3_SCK/
I2S3_CK/
SCLK

UART4_TX/
PC10 78 37
SDIO_D2/
DCMI_D8/
USART3_TX

26/40 DocID022256 Rev 3


UM1472 Hardware and layout

Table 5. MCU pin description versus board function (continued)


MCU pin Board function

Power supply
Pushbutton
MP45DT02

LIS302DL
LQFP100

CS43L22

Free I/O
Main Alternate

SWD

OSC
USB
LED

CN5

CN2

P1

P2
function functions

UART4_RX/
SPI3_MISO/
SDIO_D3/
PC11 79 38
DCMI_D4/
USART3_RX/
I2S3ext_SD
UART5_TX/
SDIO_CK/
DCMI_D9/
SDIN

PC12 80 35
SPI3_MOSI/
I2S3_SD/
USART3_CK
PC13 RTC_AF1 7 12
OSC32_IN OSC32_OUT

PC14 OSC32_IN 8 9

PC15 OSC32_OUT 9 10

FSMC_D2/
PD0 81 36
CAN1_RX
FSMC_D3/
PD1 82 33
CAN1_TX
TIM3_ETR/
UART5_RXSDIO_CMD
PD2 83 34
/
DCMI_D11
FSMC_CLK/
PD3 84 31
USART2_CTS
RESET

FSMC_NOE/
PD4 85 32
USART2_RTS

DocID022256 Rev 3 27/40


39
Hardware and layout UM1472

Table 5. MCU pin description versus board function (continued)


MCU pin Board function

Power supply
Pushbutton
MP45DT02

LIS302DL
LQFP100

CS43L22

Free I/O
Main Alternate

SWD

OSC
USB
LED

CN5

CN2

P1

P2
function functions

OverCurrent
FSMC_NWE/

RED
PD5 86 29
USART2_TX

FSMC_NWAIT/
PD6 87 30
USART2_RX
USART2_CK/
PD7 FSMC_NE1/ 88 27
FSMC_NCE2
FSMC_D13/
PD8 55 40
USART3_TX
FSMC_D14/
PD9 56 41
USART3_RX
FSMC_D15/
PD10 57 42
USART3_CK
FSMC_A16/
PD11 58 43
USART3_CTS
FSMC_A17/
GREEN ORANGE RED BLUE

PD12 TIM4_CH1/ 59 44
USART3_RTS

FSMC_A18/
PD13 60 45
TIM4_CH2

FSMC_D0/
PD14 61 46
TIM4_CH3

FSMC_D1/
PD15 62 47
TIM4_CH4
TIM4_ETR/
INT1

PE0 FSMC_NBL0/ 97 17
DCMI_D2
FSMC_NBL1/
INT2

PE1 98 18
DCMI_D3

28/40 DocID022256 Rev 3


UM1472 Hardware and layout

Table 5. MCU pin description versus board function (continued)


MCU pin Board function

Power supply
Pushbutton
MP45DT02

LIS302DL
LQFP100

CS43L22

Free I/O
Main Alternate

SWD

OSC
USB
LED

CN5

CN2

P1

P2
function functions

TRACECLK/
PE2 FSMC_A23/ 1 15
ETH_MII_TXD3 CS_I2C/SPI

TRACED0/
PE3 2 16
FSMC_A19

TRACED1/
PE4 FSMC_A20/ 3 13
DCMI_D4
TRACED2/
FSMC_A21/
PE5 4 14
TIM9_CH1/
DCMI_D6
TRACED3/
FSMC_A22/
PE6 5 11
TIM9_CH2/
DCMI_D7
FSMC_D4/
PE7 38 25
TIM1_ETR
FSMC_D5/
PE8 39 26
TIM1_CH1N
FSMC_D6/
PE9 40 27
TIM1_CH1
FSMC_D7/
PE10 41 28
TIM1_CH2N
FSMC_D8/
PE11 42 29
TIM1_CH2
FSMC_D9/
PE12 43 30
TIM1_CH3N
FSMC_D10/
PE13 44 31
TIM1_CH3
FSMC_D11/
PE14 45 32
TIM1_CH4

DocID022256 Rev 3 29/40


39
Hardware and layout UM1472

Table 5. MCU pin description versus board function (continued)


MCU pin Board function

Power supply
Pushbutton
MP45DT02

LIS302DL
LQFP100

CS43L22

Free I/O
Main Alternate

SWD

OSC
USB
LED

CN5

CN2

P1

P2
function functions

FSMC_D12/
PE15 46 33
TIM1_BKIN

OSC_IN OSC_OUT
PH0 OSC_IN 12 7

PH1 OSC_OUT 13 8

5V 5V 3V 3V VDD VDD VDD GND GND GND GND GND GND GND GND
4
5
6

22
GND

GND

5 3 1

23

49

50

30/40 DocID022256 Rev 3


UM1472 Hardware and layout

Table 5. MCU pin description versus board function (continued)


MCU pin Board function

Power supply
Pushbutton
MP45DT02

LIS302DL
LQFP100

CS43L22

Free I/O
Main Alternate

SWD

OSC
USB
LED

CN5

CN2

P1

P2
function functions

GND GND
49

50

DocID022256 Rev 3 31/40


39
Mechanical drawing UM1472

5 Mechanical drawing

Figure 10. STM32F4DISCOVERY mechanical drawing

32/40 DocID022256 Rev 3


6
UM1472

ST_LINK_V2.SCHDOC
U_ST_LINK U_STM32Fx U_Audio
STM32Fx.SchDoc Audio.SchDoc
MCO PA0 PE0 PA4 PB10
MCO PA0 PE0 PA4 PB10
PA14 TCK/SWCLK PA1 PE1 PC12 PC3
PA14 PA1 PE1 PC12 PC3
PA13 TMS/SWDIO PA2 PE2 PC10 PC4
PA13 PA2 PE2 PC10 PC4
PA3 PE3 PD4
PA3 PE3 PD4
PA4 PE4 PC7
PA4 PE4 PC7
NRST T_NRST PA5 PE5
NRST PA5 PE5
PB3 T_SWO PA6 PE6 PB6
PB3 PA6 PE6 PB6
PA7 PE7 PB9
PA7 PE7 PB9
PA8 PE8
PA8 PE8
PA9 PE9
PA9 PE9
U_USB_OTG_FS PA10 PE10
PA10 PE10
USB_OTG_FS.SchDoc PA11 PE11 U_IO Peripherals
PA11 PE11
PA9 PD5 PA12 PE12 IO Peripherals.SchDoc
PA9 PD5 PA12 PE12
PA10 PC0 PA13 PE13 PD12
PA10 PC0 PA13 PE13 PD12
PA11 PA14 PE14 PD13 PA0
PA11 PA14 PE14 PD13 PA0
PA12 PA15 PE15 PD14 NRST
PA12 PA15 PE15 PD14 NRST
PD15
PD15
PB0 PD0
PB0 PD0
PB1 PD1 PE0 PA5
PB1 PD1 PE0 PA5
PB2 PD2 PE1 PA6
PB2 PD2 PE1 PA6
PB3 PD3 PE3 PA7
PB3 PD3 PE3 PA7
PB4 PD4
PB4 PD4
PB5 PD5
PB5 PD5
PB6 PD6
PB6 PD6
Electrical schematics

PB7 PD7
PB7 PD7
PB8 PD8 P2
PB8 PD8
PB9 PD9
PB9 PD9 1 2
P1 PB10 PD10 5V 5V
PB10 PD10 5V 3 4 5V
PB11 PD11 3V 3V
1 2 PB11 PD11 3V 5 6 3V
PB12 PD12 PH0 PH1
VDD 3 4 VDD PB12 PD12 7 8
NRST PB13 PD13 PC14 PC15
5 6 PB13 PD13 9 10
PC1 PC0 PB14 PD14 PE6 PC13
7 8 PB14 PD14 11 12
PC3 PC2 PB15 PD15 PE4 PE5
9 10 PB15 PD15 13 14
PA1 PA0 PE2 PE3

DocID022256 Rev 3
11 12 15 16
PA3 PA2 PC0 MCO PE0 PE1
13 14 PC0 MCO 17 18
PA5 PA4 PC1 PB8 PB9
15 16 PC1 19 20
PA7 PA6 PC2 BOOT0
17 18 PC2 21 22 VDD
PC5 PC4 PC3 PB6 PB7
19 20 PC3 23 24
PB1 PB0 PC4 PB4 PB5
21 22 PC4 25 26
PB2 BOOT1 / PB2 PC5 PD7 PB3
23 24 PC5 27 28
PE7 PE8 PC6 PD5 PD6
25 26 PC6 29 30
PE9 PE10 PC7 PD3 PD4
27 28 PC7 31 32
PE11 PE12 PC8 PD1 PD2
29 30 PC8 33 34
PE13 PE14 PC9 PC12 PD0
31 32 PC9 35 36
PE15 PB10 PC10 PC10 PC11
33 34 PC10 37 38
Figure 11. STM32F4DISCOVERY

PB11 PB12 PC11 PA14 PA15


35 36 PC11 39 40
PB13 PB14 PC12 PA10 PA13
37 38 PC12 41 42
PB15 PD8 PC13 PA8 PA9
39 40 PC13 43 44
PD9 PD10 PC14 PC8 PC9
41 42 PC14 45 46
PD11 PD12 PC15 PC6 PC7
43 44 PC15 47 48
PD13 PD14
45 46 49 50
PD15 NC PH0
47 48 PH0
PH1 Header 25X2
49 50 PH1
Header 25X2 BOOT0
BOOT0
NRST Rev C.1 --> R31 not Fitted, PDR_ON of STM32F4 replaced by VSS
NRST
Replace LIS302DL by LIS3DSH (U5), PCB label MB997 C-01
Rev B.2 --> R27 Not Fitted, R28 Fitted. PCB label MB997 B-02
Rev B.1 --> PCB label MB997 B-01

STMicroelectronics
Title:
STM32F4DISCOVERY
Rev: C.1(PCB.SCH) Date: 5/24/2013 of

33/40
Number:MB997 Sheet 1
Electrical schematics

39
34/40
TCK/SWCLK
PA14
TMS/SWDIO
PA13
T_NRST SWD
NRST
T_SWO SB11
R7 PB3
R6 10K Not Fitted SB12
Electrical schematics

100K
Board Ident: PC13=0 R13
R5 10K 10K D2
SWD R2 AIN_1
100

SWIM_IN
SWIM
SWIM_IN
SWIM_RST
SWIM_RST_IN
STM_JTCK
BAT60JFILM
CN2

DEFAULT
RESERVED
Not Fitted 3V
R12 T_JTCK

48
47
46
45
44
43
42
41
40
39
38
37
1 3V
U2 22 SB3 SB2
2
STM32F103C8T6 STM_JTCK SWCLK
3
SB5 SB4

PB9
PB8
PB7
PB6
PB5
4
R15 T_JTMS

VSS_3
5

VDD_3
BOOT0
C9 C6 22 SB7 SB6
6

PB3/JTDO
20pF

PA15/JTDI
20pF X1 1 36 R16 T_NRST STM_JTMS SWDIO
VBAT VDD_2 3V

PB4/JNTRST
3V 1 2 2 35 Header 6 22 SB9 SB8

JTCK/SWCLK
PC13 VSS_2
3 34 STM_JTMS R17 T_SWO
8MHz PC14 JTMS/SWDIO
4 33 USB_DP 22
PC15 PA12
R18 OSC_IN 5 32 USB_DM
OSCIN PA11
100K OSC_OUT 6 31 T_SWO
1
2
3
4

OSCOUT PA10
STM_RST 7 30 LED_STLINK RC Must be very close to STM32F103 pin 29
NRST PA9 R68
8 29 MCO
VSSA PA8 MCO
C11 9 28 100 CN3
3V VDDA PB15
100nF R19 4K7 AIN_1 10 27 T_JTMS C61
PA0 PB14
SB10 11 26 T_JTCK 20pF
PA1 PB13 R69
Jumpers ON --> DISCOVERY Selected
R20 4K7 12 25
PA2 PB12 100 Jumpers OFF --> ST-LINK Selected
Not Fitted
T_SWDIO_IN

PA3
PA4
PA5
PA6
PA7
PB0
PB1
PB2/BOOT1
PB10
PB11
VSS_1
VDD_1

DocID022256 Rev 3
Wired on Solder Side

13
14
15
16
17
18
19
20
21
22
23
24
Idd LD1
Red
JP1 JP3 R4
3V VDD COM 2 1
USB 3V
100

T_JTCK
T_JTDO
T_JTDI
T_NRST
T_JRST
SWIM_IN
SWIM
U5V R14
CN1 SB17 JP2
1 R9 1K5 1K LED_STLINK R3 3 4 R1
VCC 3V 3V
2 R11 0 USB_DM 100 0
D-
3 R10 0 USB_DP SB on Solder Side under JP _Green
D+ LD2
4 R8 100K LD_BICOLOR_CMS
ID 3V RED
5
GND
0
Figure 12. ST-LINK/V2 (SWD only)

SHELL C7 C8 C12 C10 PWR


5075BMR-05-SM 100nF 100nF 100nF 100nF
5V U1 LD3985M33R D3
1 Vin Vout 5
3V
3 INH BAT60JFILM
C1 GND BYPASS C3
5V U3 LD3985M25R 2V5 1μF_X5R_0603 1μF_X5R_0603
2
4

EXT_5V, Input or Output 1 Vin Vout 5 OUT_3V, Only Output


C2 C5 C4
D1 3 100nF 10nF_X7R_0603 100nF
INH
C20 GND BYPASS C17
U5V 5V 1μF_X5R_0603 1μF_X5R_0603
2
4

BAT60JFILM
C19 C13 C18
100nF 10nF_X7R_0603 100nF
STMicroelectronics
Title:
STM32F4DISCOVERY ST-LINK/V2 (SWD only)
Rev: C.1(PCB.SCH) Date: 5/24/2013 of
UM1472

Number:MB997 Sheet 2 6
UM1472

U4A
PA0 23 97 PE0
PA0 PA0 PE0 PE0
PA1 24 98 PE1
PA1 PA1 PE1 PE1
PA2 25 1 PE2
PA2 PA2 PE2 PE2
PA3 26 2 PE3 BOOT1
PA3 PA3 PE3 PE3
PA4 29 3 PE4 VDD
PA4 PA4 PE4 PE4
PA5 30 4 PE5
PA5 PA5 PE5 PE5
PA6 31 5 PE6
PA6 PA6 PE6 PE6
PA7 32 38 PE7 R34
PA7 PA7 PE7 PE7
PA8 67 39 PE8 10K
PA8 PA8 PE8 PE8
PA9 68 40 PE9 PB2
PA9 PA9 PE9 PE9
PA10 69 41 PE10
PA10 PA10 PE10 PE10
PA11 70 42 PE11 R32
PA11 PA11 PE11 PE11
PA12 71 43 PE12 510
PA12 PA12 PE12 PE12
PA13 72 44 PE13
PA13 PA13 PE13 PE13
PA14 76 45 PE14
PA14 PA14 PE14 PE14
PA15 77 46 PE15
PA15 PA15 PE15 PE15
SB19
VDD PB0 35 81 PD0
PB0 PB0 PD0 PD0
PB1 36 82 PD1
PB1 PB1 PD1 PD1
PB2 37 83 PD2
PB2 PB2 PD2 PD2
R29 R33 PB3 89 84 PD3 Must be close to the Crystal
PB3 PB3 PD3 PD3
4.7K 4.7K PB4 90 85 PD4
PB4 PB4 PD4 PD4
PB5 91 86 PD5
PB5 PB5 PD5 PD5
PB6 PB6 92 87 PD6
PB6 PB6 PD6 PD6
PB9 PB7 93 88 PD7 MCO
PB7 PB7 PD7 PD7 MCO
PB8 95 55 PD8
PB8 PB8 PD8 PD8
PB9 96 56 PD9
PB9 PB9 PD9 PD9
PB10 47 57 PD10
PB10 PB10 PD10 PD10
PB11 48 58 PD11
PB11 PB11 PD11 PD11 PH0
PB12 51 59 PD12 SB13
PB12 PB12 PD12 PD12
PB13 52 60 PD13
PB13 PB13 PD13 PD13 PH1
PB14 53 61 PD14 SB14
PB14 PB14 PD14 PD14
PB15 54 62 PD15
PB15 PB15 PD15 PD15 R27 R25 C15
VDD
PC0 15 99 20pF
2

PC0 PC0 VSS R28 [N/A] 0


PC1 16

DocID022256 Rev 3
PC1 PC1 X2
PC2 17 0
PC2 PC2 8MHz
PC3 18 12 PH0-OSC_IN
1

PC3 PC3 PH0


PC4 33 13 PH1-OSC_OUT R24 220 C14
PC4 PC4 PH1
PC5 34 20pF
PC5 PC5
Figure 13. MCU

PC6 63 C16
PC6 PC6 R22
PC7 64 8 PC14-OSC32_IN
PC7 PC7 PC14
PC8 65 9 PC15-OSC32_OUT
4
3

PC8 PC8 PC15 0


PC9 66 6.8pF
PC9 PC9 X3
PC10 78
PC10 PC10 PC14 MC306-G-06Q-32.768 (manufacturer JFVNY)
PC11 79 14 NRST SB16
PC11 PC11 NRST NRST
PC12 80 C27
1
2

PC12 PC12 R21


PC13 7 94 BOOT0 R30 510
PC13 PC13 BOOT0
0
STM32F407VGT6 6.8pF
VDD U4B R31 SB18
BOOT0 PC15
11 10 [N/A] SB15 Not Fitted
VDD5 VSS5
19 27
VDD12 VSS4
28 74
L1 R23 VDD4 VSS2
50 VDD
VDD1
fcm1608-0603 47 75
VDD2
C23 C21 100
VDD3
1uF 100nF

C22 C25 21 20
1uF 100nF VREF+ VSSA
22 49
VDDA VCAP1
6 73
VBAT VCAP2
R26 [N/A]
C30 C24 C32 C35 STM32F407VGT6 C36 C33
100nF 100nF 100nF 100nF 2.2uF 2.2uF STMicroelectronics
C26 C31 C34 C29 C28
100nF 100nF 100nF 100nF 1uF Title:
STM32F4DISCOVERY MCU
Number:MB997 Rev: C.1(PCB.SCH) Date: 5/24/2013 Sheet 3 of 6

35/40
Electrical schematics

39
36/40
Electrical schematics

R61 R62
51 51

C54 C55
U7 0.022uF 0.022uF 2 CN4
Audio_SDA PB9 1 15
PB9 SDA HP/LINE_OUTA
Audio_SCL PB6 2 14
PB6 SCL HP/LINE_OUTB
3 31 3
A0 SPKR/HP R65 1
I2S3_MCK PC7 37 0 ST-225-02
PC7 MCLK
I2S3_SCK PC10 38 4
PC10 SCLK SPKR_OUTA+
I2S3_SD PC12 39 6
PC12 SDIN SPKR_OUTA-
I2S3_WS PA4 40 7
PA4 LRCK SPKR_OUTB+
Audio_RST PD4 32 9 C43 C45
PD4 RESET SPKR_OUTB-
8 0.1uF 0.1uF
R43 VP 3V
10 5
-VHPFILT VP
10K 11
FLYN
30 C44
AIN1B R47 R48
C47 C50 29 1uF(X7R) PA4 Audio_DAC_OUT
AIN1A
1uF(X7R) 1uF (X7R) 12 26 100 0
FLYP AIN2B R44
25
AIN2A
2V5 24 100K
AIN3B R52
13 23
+VHP AIN3A C52
16 22 C51 100K
C59 VA AIN4B R53 10nF R54 R55
C40 C41 C53 34 21 PC3 PDM_OUT
1uF VD AIN4A
0.1uF 0.1uF 0.1uF 100 1uF(X7R) 1.2K 0
20 19
TSTO VQ R49
3V 36 28 PC4

DocID022256 Rev 3
TSTO AFILTB PC4
33 27 0
VL AFILTA
35 18 C57
DGND FILT+
C42 41 17 C46 1uF(X5R) Not Fitted
GND/Thermal Pad AGND
0.1uF C48 150pF(COG)
Figure 14. Audio

CS43L22 C56 150pF(COG)


I2C address 0x94 1uF(X5R)

3V 3V
C60
100nF
Not Fitted C58
10uF
R64 U9
0 1 6
GND VDD
2 5 PC3 PDM_OUT
LR DOUT PC3
3 4 PB10 CLK_IN
R63 GND CLK PB10
0 MP45DT02

STMicroelectronics
Title:
STM32F4DISCOVERY Audio
Number:MB997 Rev: C.1(PCB.SCH) Date: 5/24/2013 Sheet 4 of 6
UM1472
UM1472

3V

R67
620

3V

1
R51 LD8
R45 U6 47K Red

2
10K 2 3 R50 0 PD5 OTG_FS_OverCurrent
GND FAULT PD5
5 1
5V IN OUT
OTG_FS_PowerSwitchOn PC0 R46 0 4 CN5
PC0 EN
1
C49 VBUS
STMPS2141STR 2
4.7uF DM
3
DP
4
ID
5
GND

0
USB_Micro-AB receptacle

Shield
VBUS_FS PA9 475900001

DocID022256 Rev 3
PA9
OTG_FS_DM PA11 R58 22
PA11
OTG_FS_DP PA12 R60 22
PA12
OTG_FS_ID PA10 R59 0
PA10
3V

R66
Figure 15. USB_OTG_FS

U8 330
B3 A3
Vbus ID
C3 C1
1

D+out D+in
D3 D1
D-out D-in
A2 B1 LD7
Dz Pd1
B2 C2 Green
2

Pup Pd2
D2 R56
3

GND 47K
EMIF02-USB03F2 2 T1
9013
1

R57
[N/A]

Not Fitted

STMicroelectronics
Title:
STM32F4DISCOVERY USB_OTG_FS
Number:MB997 Rev: C.1(PCB.SCH) Date: 5/24/2013 Sheet 5 of 6

37/40
Electrical schematics

39
38/40
VDD VDD
Electrical schematics

Not Fitted
R38
Not Fitted R37

4
1
100
100K

C38 NRST

B1
NRST
SB1

4
1
100nF

3
2
SW-PUSH-CMS
PA0 R35 C37

B2
PA0
SB20 330
100nF
R39

3
2
SW-PUSH-CMS
220K

USER & WAKE-UP Button RESET Button

LD4

DocID022256 Rev 3
Green
LED4 PD12 R40 1 2
PD12
C39 3V U5 510
15 LD3
Reserved
1 4 PA5 SPI1_SCK Orange
VDD_IO SCL/SPC PA5 R36
100nF 14 6 PA7 SPI1_MOSI LED3 PD13 1 2
VDD SDA/SDI/SDO PA7 PD13
7 PA6 SPI1_MISO 680
Figure 16. Peripherals

SEL/SDO PA6
3 8 PE3 CS_I2C/SPI LD5
NC CS PE3
2 Red
NC R41
LED5 PD14 1 2
PD14
5 680
GND
12 LD6
GND
13 9 PE1 MEMS_INT2 Blue
GND INT2 PE1 R42
16 11 PE0 MEMS_INT1 LED6 PD15 1 2
GND INT1/DRDY PE0 PD15
10 680
Reserved
LIS3DSH

MEMS LEDs

STMicroelectronics
Title:
STM32F4DISCOVERY Peripherals
Rev: C.1(PCB.SCH) Date: 5/24/2013 Sheet 6 of 6
UM1472

Number:MB997
UM1472 Revision history

7 Revision history

Table 6. Document revision history


Date Revision Changes

27-Sept-2011 1 Initial release.


Added Section 4.1: STM32F407VGT6 microcontroller corrected
30-Jan-2012 2 Figure 3 MCU name, modified Figure 2 and Chapter 6: Electrical
schematics. Modified Table 5 PE2 and PE3 entries.
Updated for board rev. C. Modified title.
28-Nov-2013 3 Modified Section 4.8: Motion sensor (ST MEMS LIS3DSH)
Updated Chapter 6: Electrical schematics

DocID022256 Rev 3 39/40


39
UM1472

Please Read Carefully:

Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the
right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any
time, without notice.
All ST products are sold pursuant to ST’s terms and conditions of sale.
Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no
liability whatsoever relating to the choice, selection or use of the ST products and services described herein.
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this
document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products
or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such
third party products or services or any intellectual property contained therein.

UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED
WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS
OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
ST PRODUCTS ARE NOT DESIGNED OR AUTHORIZED FOR USE IN: (A) SAFETY CRITICAL APPLICATIONS SUCH AS LIFE
SUPPORTING, ACTIVE IMPLANTED DEVICES OR SYSTEMS WITH PRODUCT FUNCTIONAL SAFETY REQUIREMENTS; (B)
AERONAUTIC APPLICATIONS; (C) AUTOMOTIVE APPLICATIONS OR ENVIRONMENTS, AND/OR (D) AEROSPACE APPLICATIONS
OR ENVIRONMENTS. WHERE ST PRODUCTS ARE NOT DESIGNED FOR SUCH USE, THE PURCHASER SHALL USE PRODUCTS AT
PURCHASER’S SOLE RISK, EVEN IF ST HAS BEEN INFORMED IN WRITING OF SUCH USAGE, UNLESS A PRODUCT IS
EXPRESSLY DESIGNATED BY ST AS BEING INTENDED FOR “AUTOMOTIVE, AUTOMOTIVE SAFETY OR MEDICAL” INDUSTRY
DOMAINS ACCORDING TO ST PRODUCT DESIGN SPECIFICATIONS. PRODUCTS FORMALLY ESCC, QML OR JAN QUALIFIED ARE
DEEMED SUITABLE FOR USE IN AEROSPACE BY THE CORRESPONDING GOVERNMENTAL AGENCY.

Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void
any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any
liability of ST.
ST and the ST logo are trademarks or registered trademarks of ST in various countries.
Information in this document supersedes and replaces all information previously supplied.
The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.

© 2013 STMicroelectronics - All rights reserved

STMicroelectronics group of companies


Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan -
Malaysia - Malta - Morocco - Philippines - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America
www.st.com

40/40 DocID022256 Rev 3

You might also like