You are on page 1of 30

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

January 2014

DocID022256 Rev 4

1/42

www.st.co
m

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 LIS302DL or LIS3DSH) ..............................................17
4.9 JP1 (Idd)...............................................................................................................18
4.10

OSC clock ................................................................................................19


4.10.1

OSC clock supply ................................................................................. 19

4.10.2

OSC 32 KHz clock supply .....................................................................19

4.11

Solder bridges ......................................................................................... 20

4.12

Extension connectors .............................................................................. 21

5 Mechanical drawing .........................................................................................34


6 Electrical schematics.......................................................................................35
7 Revision history ...............................................................................................41

List of tables

Table 1.
Table 2.
Table 3.
Table 4.
Table 5.
Table 6.

ON/OFF conventions............................................................................................................. 5
Jumper states...................................................................................................................... 13
Debug connector CN2 (SWD)............................................................................................. 15
Solder bridges..................................................................................................................... 20
MCU pin description versus board function ....................................................................... 21
Document revision history................................................................................................... 41

List of figures
Figure 1.
Figure 2.
Figure 3.
Figure 4.
Figure 5.
Figure 6.
Figure 7.
Figure 8.
Figure 9.
Figure 10.
Figure 11.
Figure 12.
Figure 13.
Figure 14.
Figure 15.
Figure 16.

STM32F4DISCOVERY........................................................................................................ 1
Hardware block diagram ..................................................................................................... 8
Top layout ........................................................................................................................... 9
Bottom layout..................................................................................................................... 10
STM32F407VGT6 package............................................................................................... 11
STM32F407VGT6 block diagram .....................................................................................12
Typical configuration ......................................................................................................... 13
STM32F4DISCOVERY connections image.......................................................................14
ST-Link connections image................................................................................................15
STM32F4DISCOVERY mechanical drawing.....................................................................34
STM32F4DISCOVERY...................................................................................................... 35
ST-LINK/V2 (SWD only)..................................................................................................... 36
MCU................................................................................................................................ 37
Audio................................................................................................................................. 38
USB_OTG_FS................................................................................................................... 39
Peripherals......................................................................................................................... 40

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


Solder bridge SBx OFF

SBx connections closed by solder


SBx connections left open

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.1Getting 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.2System requirements

Windows PC (XP, Vista, 7)


USB type A to Mini-B USB cable

2.3Development toolchain supporting the STM32F4DISCOVERY

Altium, TASKING VX-Toolset


Atollic TrueSTUDIO
IAR Embedded Workbench for ARM (EWARM)
Keil, MDK-ARM

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

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 STLINK/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

LIS302DL or 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

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 (STLINK/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

MS30007V2

Figure 3. Top layout

ST-LINK/V2
LD1 (red/green LED)
COM
CN2
SWD connector'

cnI I
'[ ]- - - , n,,...-

! MB997C

. LD2 (red LED)


PWR
CN3
ST-LINK/DISCOVERY
selector

- I ; -------------

iwww.st.com/stm32f4-discovery

i f - y ^ X s
g _ * ...............
GND

JP1
IQQ measurement

VDD
GND
PCIPC3
PA1
PA 3

STM32F407VGT6

PA
5

GND VDD

PC2 79**

'

PAO PA 2
PA

PE4 PE2

B1 user button

...
User

User

PE9

VDD
PB7

PI

11 PD8>". * ** SBc;i 1|

GND

..

Lfl

PB15
PD9
PD11
PD12
PD1
GND

Note:

016

*uuu *

PD10 PD12 PD14 NC


PB13

LD5 (red LED)

PB5

C5J

(blue LED) LD6

LD3
(orange LED)

PB9

II jj1

PE14

PB12 PB14

(green LED) LD4

(green LED) LD7

5p

GND
PE7

. SB1 (B2-RESET)

-PEI

PA 7

PE12

PC15

PE3

PB2
PE10

3V power
supply output

PH1

PE5

PBO

PB1

3'
PC13

PC4

PC5

5V power supply
input/output

GND

^5V
PHO
3V
PC1
< PE6

NRST PCO

s:
---------- ^

"

PD7

PB3

PD5

PDC

PD3

PD4

PD1

PD2

PC1

PDO

PCK

PC1

PA14

PA1

PA10
PA8
CO

PA1
J

PA

PC8

PC9

PC6

PC7

GNL

B2 reset button

LD8 (red LED)

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

Figure 4. Bottom 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

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 pA 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.

Figure 6. STM32F407VGT6 block diagram

UCM data RAM64


NJTRST, JTDI
___JTCK/SWCLK
JTDO/SWD, JTDO
TRACECLK
TRACED[3:0]

MPU
NVIC
D-BUS :

ETM

ARM Cortex-M4F 168 MHz


I-BUS FPU

Ethernet MAC

10/100
USB
OTG HS

DP, DM .
ULPI: CK, D(7:0), DIR, STP, NXT s
SCL/SDA, ININ' ID, VBUS, SOF

DMA/
FIFO

SRAM

DMA/
FIFO :

112

Ll
_
Ll

KB

SRAM 16 KB

FIcFC

LL
LL

AHB1 150 MHz

8 Streams

DMA1

Flash 1
up to 1MB

1
C
^=>c

ams : :
8 Slreamsl)

DMA2

CLK,NE[3:0], A[23:0]
D[31:0], OEN, WEN,
NBL[3:0], NL, NREG
NWAIT/IORDY, CD NIORD,
IOWR, INT[2:3]
INTN,NIIS16asAF

S-BUS

Mil or RMIIasAR
MDIOasAFP

External memory
controller (FSMC) SRAM,
PSRAM, NOR FIash, PC
Card (ATA), NAND Flash

klHBU

FIFC

RNG
Camera
interface

[HSYNC,VSYNC
1

USB OTG >E


CL
FS

.4. Power managm!

PIXCLK, D[13:0]

SCL, SDA, INTN, ID, VBUS, SOF

"VDD= 1.8 to 3.6 V


v

ss

CAP1, VCAP2

> 4 channels, ETR as AF


@VDDA
PA[15:0]<
PB[15:0]<

GPIO PORT B

PC[15:0]<

GPIO PORT c

PD [15:0] <

GPIO PORT D

PE[15:0]<

GPIO PORT E

PF[15:0]<
PG[15:0]<
PH[15:0]<
Pl[11:0]<

POI

if

Rest

GPIO PORTA

t RCLS

Int

PLL1&2

@VD
D

> 4 channels, ETR as AF

Supply
supervision
POR/PDR/
BOR

> 4 channels, ETR as AF


[VDDA.

PV
D
@VDDA @VDD

standby
Interface

>VBAT = 1-65 to 3.6 V

B
!

X I 0
I IX

GPIO PORTH

44>

GPIO PORT I

RTC

Backup register 4KBBKPSPAM

TIM2

n
n
RTC_AF1
RTC_AF1

AWU

a
s

TIM4 16b
JMA
1

A
0

AHB/APB2
140 AF

D[7:j
CMD, CKasAFj

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


channels (TIM1_CH[1:4D ETR, BKIN as
AF
4 compl. channels (TIM1_CH[1:4]N. 4
channels (TIM1_CH[1:4]) ETR, * BKIN as
AF

SDIO/MMC

40

AHB/APB1

TIM8/PWM
TIM9

1 channel as AF

TIM13

16b

TIM14 16b

USART2 smca'b irDA

40

1
6
5

<=
>

<^
>

smcard
irD
A
smcard
irDA

USART 1
USART 6

40

USART3 smca'd irDA

40

UART4

UART5

SPI2/I2S2

el

C4
>

40

<=

SPI3/I2S3

TIM6 16b

>

TIM7 16b

40
c=!
>

<=
remperature sensor N >

8 analog inputs common J to


the 3 ADCs 8 analog inputs
common / totheADC1&2 8

@vDDA

>

analog inputs to ADC3 <

I2C1/SMBUS

I2C2/SMBUS

VDDA

DDREF_ADC

c=!
>

SPI1
V

TIM5 32b
TIM12 160

TIM1 /PWM

2channels asAF

1 channel as AF
RX, TX, CK,
CTS, RTS asAF
RX, TX,CK,
CTS, RTS as AF
MOSI, MISO
SCK, NSS as AF

<=
>

EXT IT. WKUP

el
s

32b

16b
TIM3 l0U

DMA
2

TIT

GPIO PORT G

>

XTAL osc
4-16 MHz

Reset &
clock
control

GPIO PORT F

VSSA

> 4INRST
channels, ETR as AF

ADC 3

<=

DAC1
DAC2

M
DAC1_OUT
asAF

>
<^
>

ITF

DAC2_OUT
asAF

I2C3/SMBUS

40

bxCANI

40

bxCAN2

F
0
LL
LL

1 channel as AF
. RX, TX, CK,
'CTS, RTSasAF
>
R
X
,
T
X
,
C
K
'
C
T
S
,
R
T
S
a
s
A
F
> RX, TX as AF
> RX, TX as AF
> MOSI/SD, M ISO/SD_ext, SCK/CK
NSS/WS, MCK as AF
> MOSI/SD, M ISO/SD_ext, 3CK/CK
NSS/WS, MCK as AF
>SCL,

SDA,

SMBAasAF

>SCL, SDA, SMBAasAF ^


SCL, SDA, SMBAasAF
>TX,RX
>TX,RX

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.
MS19052V1

Figure 7. Typical configuration

Table 2. Jumper states


Jumper state

Both CN3 jumpers ON


Both CN3 jumpers OFF

Description
Hardware requirements:
ST-LINK/V2 functions enabled for
board
- on
USB
cableprogramming
type A to mini-B(default)
computer with Windows XP,
ST-LINK/V2 functions enabled for application
Vista or 7 through external CN2

connector (SWD supported)

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

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

4.2.2

Note:

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.
SB11 must be OFF if you use CN2 pin 5 in your external application.

Table 3. Debug connector CN2 (SWD)


Pin

CN2

Designation

VDD_TARGET

VDD from application

SWCLK

GND

SWD clock
Ground

SWDIO

SWD data input/output

NRST

RESET of target MCU

SWO

Reserved

Figure 9. ST-Link connections image

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.

4.4

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.

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

4.6

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.

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

4.9

Motion sensor (ST MEMS LIS302DL or LIS3DSH)


Two different versions of motion sensor (U5 in schematic) are available on the board
depending the PCB version. The LIS302DL is present on board MB997B (PCB revision B)
and the LIS3DSH is present on board MB997C (PCB rev C).
The LIS302DL or LIS3DSH are both 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 LIS302DL has dynamically user selectable full scales of +-2g/+-8g and it is capable of
measuring acceleration with an output rate of 100Hz to 400Hz.
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.

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).

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
R25a 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:
SB13closed
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,
SB16OPEN
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.

4.11 Solder bridges

Table 4. Solder bridges


Bridge

SB13,14 (X2 crystal)(2)

State(1)
OFF

Description

X2, C14, C15, R24 and R25 provide a clock. 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.

OFF

X3, C16, C27, R21 and R22 deliver a 32 KHz clock. PC14, PC15 are not
connected to P2.

ON

PC14, PC15 are only connected to P2. Remove only R21, R22

ON

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

OFF

B2 pushbutton is not connected the NRST pin of the STM32F407VGT6 MCU.

ON

B1 pushbutton is connected to PA0.

OFF

B1 pushbutton is not connected to PA0.

OFF

VDD is not powered from 3V, depends on JP1 jumper.

ON

VDD is permanently powered from 3V, JP1 jumper has no effect.

ON

NRST signal of the CN2 connector is connected to the NRST pin of the
STM32F407VGT6 MCU.

OFF

NRST signal of the CN2 connector is not connected to the NRST pin of the
STM32F407VGT6 MCU.

ON

SWO signal of the CN2 connector is connected to PB3.

OFF

SWO signal is not connected.

OFF

No incidence on STM32F103C8T6 (ST-LINK/V2) NRST signal.

ON

STM32F103C8T6 (ST-LINK/V2) NRST signal is connected to GND.

ON

BOOT0 signal of the STM32F407VGT6 MCU is held low through a 510 ohm pulldown resistor.

OFF

BOOT0 signal of the STM32F407VGT6 MCU is held high through a 10 Kohm


pull-up resistor.

OFF

The BOOT1 signal of the STM32F407VGT6 MCU is held high through a 10 Kohm
pull-up resistor.
The BOOT1 signal of the STM32F407VGT6 MCU is held low through a 510 ohm
pull-down resistor.

SB15,16 (X3 crystal)

SB1
(B2-RESET)
SB20
(B1-USER)
SB17
(VDD powered from
3v)

SB11 (NRST)

SB12 (SWO)

SB10 (STM RST)

SB18 (BOOT0)

SB19 (BOOT1)
ON

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.

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

14

"b
o

o
)
K
OJ
n
IS5
-

ho

"0

|~

D
H

-oro

)
-

CO

ro

D
1

"0

l~

w
IT
O'

c
s
o

m
-

o
w
o

Tl
<D
a>

PA3
PA1

PA4
PA2

PA5

PA6

PA7

"0

1
z

(D
-

-t

l\i

12

*<

)
CO

USART2
26
USART2 RTS/
RX/
USART4_RX/
TIM5 CH4/
ETH
TIM9RMII
CH2/REF CLK/ ETH 24
MII
RX
CLK/ TIM5 CH2/
TIM2 CH4/
TIMM2
OTG HSCH2/
ULPI D0/ ETH
ADC123_IN1
MII COL/ ADC123_IN3
USART2_TX/ TIM5 CH3/
TIM9
CH1/ SPI3_NSS/
TIM2 CH3/
29
SPI1 NSS/
ETH_MDIO/
USART2
CK/ADC123
DCMI IN2
25
HSYNC/ OTG HS SOF/
I2S3_WS/ ADC12 IN4/
DAC1_OUT

13
11

16

IZI

14

SPI1 SCK/
OTG HS ULPI CK/ TIM2
CH1 ETR/ TIM8 CHIN/
ADC12 IN5/ DAC2_OUT

30

SPI1 MISO/ TIM8 BKIN/


TIM13 CH1/
DCMI_PIXCLK/ TIM3
CH1/ TIM1 BKIN/
ADC12_IN6

31

SPI1 MOSI/
TIM8 CH1N/
TIM14 CH1TIM3 CH2/
ETH MIIRX DV/
TIM1 CH1N/
RMII CRS DV/
ADC12 IN7

21"0
ro

"0

01

D
D

USER

PA0WKUP

"0
ro

(/>

-t

USART2 CTS/ USART4


TX/ ETH MII CRS/ TIM2
23
CH1 ETR/ TIM5 CH1/
TIM8 ETR/ ADC123 IN0/
WKUP

CN2

~n

CN5

94
o

Power supply

Alternate
functions

"0

Board function

NRST

NRST

VPP

RESET

Main
BOOT0
function

Free I/O

MCU pin

OSC

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

USB

SWD

LED

Pushbutton

LIS302DL or LIS3DSH

MP45DT02

CS43L22

Alternate
functions

LQFP100

Main
function

Board function

n'
55
TI

15

18

17

3
D
o

32

3
D

55

D
o

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


MCU pin

Board function

|~
)

CO

Main
function

Alternate
functions

~n
"d

o
o

o
)
K
OJ
n

ho
ho

"0

1
D
H
o
ro

ro
D
1

w
IT
O'

l~
)

CO

"0

"0

c
s
o

l~

m
D

w
s
D

o
w
o

"n
-t
<D
a>

o
$

(D 1
z
w 01
c
D
D
<

o
z
Is)

o "0
z
l\i

"0
ro
43

"0 1
z
o 01
$
(D

to
c
D
D
<

D
)

"0 "0 ro

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


MCU pin

Main
function
PA8

Alternate
functions
MCO1/ USART1 CK/
TIM1 CH1/ I2C3 SCL/
OTG_FS_SOF

~n
"d
67
o
o

o
)
K
OJ
n
IS
5
ho

"0 |~
"0

) c
1 CO
to
IT
D
o
H ro O'c
o
s
ro D
1 o
D
o

l~
m
D

Board function
w
s
D

c
C
O

o
w
o

"n
-t
<D
a>

-t

PA9

PA10
PB0
PA11

PB1
PA12

USART1 TX/ TIM1 CH2/


I2C3 SMBA/ DCMI D0/
OTG_FS_VBUS

68

USART1 RX/ TIM1 CH3/


OTG_FS_ID/ DCMI_D1

69

35
TIM3 CH3/
TIM8 CH2N/
USART1
CTS/ D1/
CAN1
RX/
OTG
HS ULPI
ETH
70
TIM1
CH4/ TIM1
OTG_FS_DM
MII
RXD2/
CH2N/
ADC12_IN8

1
)
CO
D
)

m
m

<
CD
c

44

41

22

D
s

T)

21
-

42

2 24-

39-

28

PA1 3

USART1
RTS/ CAN1 TX/ 36
TIM3
CH4/
71
TIM1 CH3N/
ETR/ OTG_FS_DP
TIM8
OTG HS ULPI D2/ ETH
MII RXD3/ OTG HS INTN/
TIM1
CH3N/ ADC12_IN9 72
JTMS-SWDIO

PB2
PA1 4

JTCK-SWCLK

37
76

PB3

JTDO/
JTDI/
TRACESWO/
SPI3 SCK/
SPI3_NSS/
I2S3 CK/ TIM2 CH2/
I2S3 WS/
SPI1_SCK
TIM2 CH1 ETR/ SPI1
NSS

89

77

40

NJTRST/ SPI3 MISO/


TIM3 CH1/ SPI1 MISO/
I2S3ext_SD

90

25

91

26

PA15

PB4

PB5

I2C1 SMBA/ CAN2_RX/


OTG HS ULPI D7/
ETH_PPS_OUT/ TIM3
CH2/
SPI1 MOSI/ SPI3_MOSI/
DCMI D10/ I2S3_SD

3
D

o
3

n'
7s
3

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


MCU pin

Board function

Main
function

Alternate
functions

~n
"d
o
o

o
)
K
OJ
n
IS
5
ho

"0

1
D
H
o
ro

1
)
CO
o
ro "0
D
c
1 =rto
o
oc
-t
s
1 o
) D

l~
m
D

s
D

c
w
C
O

o
w
o

"n
-t
<D
a>

CO

D
)

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


MCU pin

35

3
D
>

o
n'
7s

"0

ro

23"0
ro

24

CN2

CS43L22

PB10
PB13

SPI2 SCK/ I2S2_CK/


I2C2 SCL/ USART3_TX/
47
OTG HS ULPI D3/ ETH
MIIRX
ER/
52
SPI2 SCK/
OTG_HS_SCL/
TIM2 CH3
I2S2
CK/ USART3_CTS/

CN5

51
SPI2 NSS/ I2S2_WS/
96
SPI2_NSS/
I2C2 SMBA/I2S2 WS/
TIM4
CH4/ TIM11 CH1/
USART3_CK/
OTG_FS_SDA/
SDIO D5/
TIM1 BKIN/ CAN2_RX/
DCMI
D7/
OTG_HS_ULPI_D5/ ETH
I2C1
RMII SDA/
TXD0/CAN1_TX
ETH MII
TXD0/ OTG_HS_ID

Power supply

PB12
PB9

Free I/O

95
48

OSC

TIM4 CH3/ SDIO D4/


TIM10 CH1/ DCMI_D6/
I2C2 SDA/
OTG_FS_SCL/ ETH MII
USART3 RX/
TXD3/ I2C1 SCL/
OTG HS ULPI D4/ ETH
CAN1_RX
RMII TX EN/ ETH MIITX
EN/ OTG HS SDA/
TIM2_CH4

USB

PB8
PB11

o
z "0
Is)

(D 1
z
to 01
c
D
D
<

Board function

SWD

93

LED

I2C1 SDA/ FSMC NL/


DCMI VSYNC/ USART1
RX/ TIM4_CH2

Pushbutton

PB7

"0

LIS302DL or LIS3DSH

92

MP45DT02

I2C1 SCL/
Alternate
functions
TIM4 CH1/
CAN2 TX/
OTG FS INTN/ DCMI D5/
USART1_TX

LQFP100

PB6
Main
function

3
o
n'

"0
o

19
-

36

20

34
37

38

TIM1 CH1N/ CAN2_TX/


OTG HS ULPI D6/ ETH
RMII TXD1/ ETH MII
TXD1/ OTG_HS_VBUS

PB14

SPI2 MISO/
TIM1 CH2N/
TIM12 CH1/
OTG HS DMUSART3
_RTS/
TIM8 CH2N/
I2S2ext SD

53

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


MCU pin

Board function

l~
)
o
ro
"0
"0 D
c

w
1
1
IT
o O'
D
c
H
s
o -t
ro 1 o
) D
CO

Main
function

Tl
"d
o
o

Alternate
functions

)
K
CJ
n
IS
5
ho

l~
m
D

w
s
D

c
w

ro

"n
-t
<D
a>

CO

"0
o
$

o
z
l\i

(D 1
z
w 01
c
D
D
<

"0
ro

"0

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

1
D
H
o

CN2
CN2
CN2
CN2

"0

"0
ro

ino oso

--

--

--

--

57
-5
58-

--

--

--

--

59
38

60
39

40
61-

--

--

--

--

41
62-

--

--

--

--

42
97

43-

98
44
-

1- 45

--

--

462

12-

--

--

--

48
12 10
- 9 -

40

13
8
49
-

41

14
50
-

cn < 45
- cn10 9<
CO
<
GO
<
46 20 36-

42-

43
-

411
5
6

3
44
25

4
26

45-

22-

27
3
1
- 46
28
2

47
29
5

--

30
23-

17--

31
49
-

-18

29 -

32
50

15

VDD VDD VDD GND GND GND GND GND GND GND GND

GND GND

CN5
CN5
CN5
CN5

Power
Power
Power
Power
supply
supply
supply
supply

Free
Free
Free
Free
I/OI/O
I/O
I/O
CN2

OSC
OSC
OSC
OSC
CN5

- 33 19
-34

--

--

--

--

--

--

- 47 -31

--

--

--

--

--

35 - 30 -

33-

1-

--

--

--

--

--

--

---

--

2
167

37

32

-5

GND

PD7

CS_I2C/SPI

PD6

80 -
UART5_TX/
CK/
PE15- SDIOFSMC
D12/ TIM1_BKIN
3
TRACED0/
DCMI PE3
FSMC
D9/
NWAIT/
SPI3 MOSI/
87
D
I2S3 SD/ USART3_CK
USART2_RX
FSMC_A19
- z
PH0 OSC_IN
USART2 CK/
88
FSMC_NE1/
FSMC_NCE2

4 56

GND

PC12

RX D1/ ADC12_IN15
83
PE9
FSMC_D6/
TIM3 ETR/
TIM1_CH1
UART5
RXSDIO
CMD
/
PD14
FSMC_D0/
78

SPI3 SCK/ I2S3 CK/


DCMI_D11
TIM4_CH3
I2S2 MCK/
PE10TIM8 CH1/
FSMC_D7/
3
UART4_TX/- SDIO D2/
63 - o
SDIO D6/
USART6
TX/
TIM1_CH2N
PD15
FSMC_D1/
r~
DCMI D8/ USART3_TX
7s
DCMI
TIM3 CH1
84
FSMCD0/
CLK/
TIM4_CH4
PE11
FSMC_D8/
USART2_CTS
TIM1_CH2
PE0
TIM4 ETR/ FSMC NBL0/
FSMC_NOE/
85
DCMI_D2
PE12FSMC_D9/
USART2_RTS
UART4_RX/ SPI3TIM1_CH3N
MISO/ 79
SDIO D3/ DCMI D4/
PE1
FSMC_NBL1/
PE13
FSMC D10/ TIM1_CH3
USART3_RX/
DCMI_D3
I2S3ext_SD
FSMC_NWE/
86 -FSMC
- A23/
PE2
TRACECLK/
PE14FSMC_D11/
USART2_TX
ETH_MII_TXD3
TIM1_CH4

3
55
13-

=3

BLUE

PD5

ro

OverCurrent

PC11

39

"0 "0
ro
"0 "0
"0
ro ro

ro

"0 "0

RESET

PD4

"0

INT2

PC6
PD3

"0

INT1

PC10

RED

PD2

ORANGE RED

PD1
PC5

(D

USB
USB
USB
USB
Power
supply

PC9
PC4
PD0

SWD
SWD
SWD
SWD
Free
I/O

PC8
PC15
PC3

GREEN
OSC32_OUT

64FSMC
s A20/
PE4 TIM8 CH2/
I2S3 MCK/
TRACED1/
o
SPI2 MISO/
RTC_AF1
7
PD8
SDIO
D7/
USART6
RX/
PH1 OSC_OUT
DCMI_D4
FSMC D13/ USART3_TX
- n'
7s
OTG HS
DIR/ THMII
DCMI
D1/ULPI
TIM3_CH2
OSC32_IN
817
TXD2/ I2S2ext_SD/
PE5
PD9 TRACED2/
A21/
FSMC D14/ FSMC
USART3_RX
ADC123_IN12
TIM9 CH1/ DCMI_D6
D
PD10
FSMC D15/
65USART3_CK
SPI2
I2S2_SD/
o
TIM8 MOSI/
CH3/ SDIO
D0/
cOSC32_OUT
9 OTG
HS
ULPI
NXT/
ETH
TIM3 CH3/ USART6 CK/ 18
- A22/H
PE6
TRACED3/
FSMC
>
MII TXPD11
CLK/DCMI_D2
FSMC A16/ TIM9
CH2/
DCMI_D7
-fc.
ADC123_IN13 USART3_CTS
X
PD12
FSMC A17/ TIM4 CH1/
- D0/ ETH
66 ETHCKIN/
RMII RX
I2S
MCO2/
TIM8
USART3_RTS
33
81
PE7
FSMC_D4/
FSMC D0/
D2/ ADC12_IN14
CAN1_RX
MIIRX
CH4/ SDIO D1/ I2C3
TIM1_ETR
SDA/ DCMI- D3/
PD13
FSMC
A18/
TIM4_CH2
82
TIM3_CH4
PE8
FSMC_D5/
FSMC D3/ CAN1_TX
ETH RMII RX
ETH MII 34 - D1/TIM1_CH1N

TJ

OSC32_IN

PC7
PC13

LED
LED
LED
LED
OSC

ETH MDC/ ADC123_IN11 16

Board function Board function


o
c
s
"n "0 1
o
w
w
o z
-t
D
z
o
<D $ 01
C
Is)
a>
O
(D

to
c
D
D
<
Pushbutton
Pushbutton
Pushbutton
Pushbutton
USB

CO

D
)

l~
m
D

MP45DT02
MP45DT02
MP45DT02
MP45DT02
LED

1
)

CS43L22
CS43L22
CS43L22
CS43L22
Pushbutton

15

PC1

PC2
PC14

"0
|~
) c
to
CO
o =roro
c
D
s
1 o
D
o

LIS302DL
LIS302DL
LIS302DL
LIS302DL
or
LIS3DSH
or
or
orLIS3DSH
LIS3DSH
LIS3DSH
SWD

ro

MP45DT02

OTG HS ULPI STP/


ADC123_IN10

"0

-t

CS43L22

SPI2 MOSI/ I2S2 SD/


TIM1 CH3N/ TIM8 CH3N/
TIM12 CH2/ OTG_HS_DP

LQFP100

PC0

MCU pin
o
o
Alternate
)
~n
K
functions
Alternate
CJ
Alternate
"d
n
functions
IS5
functions
o
ho
o
54

LQFP100
LQFP100
LQFP100
LQFP100
LIS302DL
or LIS3DSH

PB15

MCU pin
Alternate
Main
functions
Alternate
Main
function
Main
functions
function

NI oso

Main
function
Main
function

38 -

27

5 Mechanical drawing
Figure 10. STM32F4DISCOVERY mechanical drawing

Electrical schematics
Figure 11. STM32F4DISCOVERY

tsi
1 Is

z
221

____

edffl

ai ai__________

*
c
if !
I
Jz
2 1*2

^
u 0

H'H'

</
>
o
p
'
p
o
.
+-
p

a>
o

to
9

<0

36
/4
2
Do
cl
D0
22
25
6
Re
v
4

El
ec
tri
ca
l
sc
he
m
ati
cs
U
M
14
72

(5
c

CD

ho

)
T:
ho

C/
>
t
a
o
3

U
M
14
72
El
ec
tri
ca
l
sc
he
m
ati
cs

Do
cl
D0
22
25
6
Re
v
4
37
/4
2

Figure 14. Audio

w
o
'E
o
1_
o

0)
o
o

OS
S'
Id

s;
I

U
M
14
72
El
ec
tri
ca
l
sc
he
m
ati
cs

Do
cl
D0
22
25
6
Re
v
4
39
/4
2

OTG FS
OverCurrent

OTG FS Powers
witch On

(Q
c
fD
Ol
c
w
ro
I
o
H
o
l_
Tl

VBUSFS
OTGFSD
M
OTGFSDP
OTG FS
ID

CO

iV/ Fitted

STMicroelectronics
T ,le:

STM32F4DISCOVERY USB_OTG_FS

NumberJWS9971 Rev:
C.1(PCB.SCH)| Date:5/24/2013

40
/4
2
Do
cl
D0
22
25
6
Re
v
4

El
ec
tri
ca
l
sc
he
m
ati
cs
U
M
14
72

VDD

USER & WAKE-UP Button

3V

RESET Button

Reserve
d
SCL/SPC
VDDIO SDA/SDI/
VDD
SDO
SEL/SDO

PA5

PA7

EMT2
DMT1/D
RDY

PEI

PEO

NC
GND
GND
GND
GND

Reserve
d

MEMS

SPI1SCB
C
SPI1MOS
I
SPI1MIS
O cs
I2C/SPI

MEMS_I
NT2
MEMS
INTI

(Q
c
(S
<7
>
p
D
o

L
D k*2
5104
f
L
D
3
680L kf
D
6805
fk
L
D
6806 kf J
2

2
2

LEDs

STMicroelectronics
STM32F4DISCOVER Y Peripherals

Number

MB9971

Rev:

C.1(PCB.SCH)|

Date:5/24/2013
I Sheet6 of 6

7 Revision history
Table 6. Document revision history
Date

Revision

Changes

27-Sept-2011

Initial release.

30-Jan-2012

Added Section 4.1: STM32F407VGT6 microcontroller corrected Figure 3


MCU name, modified Figure 2 and Chapter 6: Electrical schematics.
Modified Table 5 PE2 and PE3 entries.

28-Nov-2013

Updated for board rev. C. Modified title.


Modified Section 4.8: Motion sensor (ST MEMS LIS302DL or LIS3DSH)
Updated Chapter 6: Electrical schematics

29-Jan-2014

Modified Chapter 3: Features, Figure 2, Chapter 4.8: Motion sensor (ST


MEMS LIS302DL or LIS3DSH) , Table 5 adding ST MEMS LIS302DL
reference.
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 STS 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 PURCHASERS 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.

2014 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

You might also like