0% found this document useful (0 votes)
369 views38 pages

UM1472 User Manual: Stm32F4Discovery STM32F4 High-Performance Discovery Board

Uploaded by

Adnan Sahanić
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)
369 views38 pages

UM1472 User Manual: Stm32F4Discovery STM32F4 High-Performance Discovery Board

Uploaded by

Adnan Sahanić
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/ 38

UM1472

User Manual
STM32F4DISCOVERY
STM32F4 high-performance discovery board

Introduction
The STM32F4DISCOVERY helps you to discover the STM32F4 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

January 2012 Doc ID 022256 Rev 2 1/38


www.st.com
Contents STM32F4DISCOVERY

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

6 Electrical schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31

7 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

2/38 Doc ID 022256 Rev 2


STM32F4DISCOVERY 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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

Doc ID 022256 Rev 2 3/38


List of figures STM32F4DISCOVERY

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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Figure 11. STM32F4DISCOVERY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Figure 12. ST-LINK/V2 (SWD only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Figure 13. MCU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 14. Audio. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Figure 15. USB_OTG_FS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Figure 16. Peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36

4/38 Doc ID 022256 Rev 2


STM32F4DISCOVERY 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

Doc ID 022256 Rev 2 5/38


Quick start STM32F4DISCOVERY

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, EWARM
● Keil™, MDK-ARM

2.4 Order code


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

6/38 Doc ID 022256 Rev 2


STM32F4DISCOVERY 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
● LIS302DL, 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

Doc ID 022256 Rev 2 7/38


Hardware and layout STM32F4DISCOVERY

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

-INI
53"

%MBEDDED
34 ,).+6
37$

34-&6'4

)/ )/ (EADER


(EADER

)/ 2%3%4

,%$ "
,$ TO ,$ 234

-0$4 "
53%2

#3, ,)3$,


-INI *ACK -ICRO 53"

-36

8/38 Doc ID 022256 Rev 2


STM32F4DISCOVERY Hardware and layout

Figure 3. Top layout

34 ,).+6
,$ REDGREEN ,%$
#/- ,$ RED ,%$
#.

072

37$ CONNECTOR




%&










#.







& 34 ,).+$)3#/6%29


% '







SELECTOR












)))*!(*+,-.!(-/$0!+,1"#2













6 POWER



SUPPLY INPUTOUTPUT
*0



)$$ MEASUREMENT







6 POWER









SUPPLY OUTPUT








$$



34-&6'4 3" " 2%3%4








,$




%%


ORANGE ,%$






" USER BUTTON




,$ RED ,%$


!"#

" RESET BUTTON



"!"(

GREEN ,%$ ,$





















BLUE ,%$ ,$










































GREEN ,%$ ,$

,$ RED ,%$

-36

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

Doc ID 022256 Rev 2 9/38


Hardware and layout STM32F4DISCOVERY

Figure 4. Bottom layout

3" 3" 3" 3"


2%3%26%$

3" 3" 3" 3" 3" .234


$%&!5,4
3" 34-?234

3" 8 CRYSTAL
3" 8 CRYSTAL
3" 37/
3" 8 CRYSTAL
3" 8 CRYSTAL
3" 6$$ FROM 6

3" "//4 3" "//4

3" " 53%2

-36

10/38 Doc ID 022256 Rev 2


STM32F4DISCOVERY 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

34-&6'4

-BYTE OF &LASH MEMORY
+BYTES OF 2!-

,1&0 X MM -36

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.

Doc ID 022256 Rev 2 11/38


Hardware and layout STM32F4DISCOVERY

Figure 6. STM32F407VGT6 block diagram


##- DATA 2!- +" %XTERNAL MEMORY #,+ .% ;= !;=
CONTROLLER &3-# $;= /%. 7%.
.*4234 *4$) .",;= ., .2%'
!("
*4#+37#,+ *4!'