Advertisement

Quick Links

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the UM1472 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for ST UM1472

  • Page 1 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.
  • Page 2: Table Of Contents

    Embedded ST-LINK/V2 ........
  • Page 3 STM32F4DISCOVERY List of tables List of tables Table 1. ON/OFF conventions ............5 Table 2.
  • Page 4 ST-Link connections image ........
  • Page 5: Conventions

    STM32F4DISCOVERY Conventions 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...
  • Page 6: Quick Start

    USB connector CN1 to power the board. Red LED LD2 (PWR) then lights up. Four LEDs between B1 and B2 buttons are blinking. 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’...
  • Page 7: 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...
  • Page 8: 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 Figure 4 help you to locate these features on the STM32F4DISCOVERY.
  • Page 9: Figure 3. Top Layout

    STM32F4DISCOVERY Hardware and layout Figure 3. Top layout &1 & & &20 &1 0%% & & &1 & & & & & ZZZVWFRPVWPIGLVFRYHU\ & & & & 1567 & & & & 3& 3& 3& 3& 3& 3& 3& & 3& 3& &...
  • Page 10: Figure 4. Bottom Layout

    Hardware and layout STM32F4DISCOVERY Figure 4. Bottom layout 10/38 Doc ID 022256 Rev 2...
  • Page 11: Stm32F407Vgt6 Microcontroller

    STM32F4DISCOVERY Hardware and layout 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 This device provides the following benefits.
  • Page 12: Figure 6. Stm32F407Vgt6 Block Diagram

    Hardware and layout STM32F4DISCOVERY Figure 6. STM32F407VGT6 block diagram 12/38 Doc ID 022256 Rev 2...
  • Page 13: Embedded St-Link/V2

    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.
  • Page 14: Using St-Link/V2 To Program/Debug The Stm32F4 On Board

    Hardware and layout STM32F4DISCOVERY 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.
  • Page 15: Using St-Link/V2 To Program/Debug An External Stm32 Application

    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...
  • Page 16: Power Supply And Power Selection

    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.
  • Page 17: On Board Audio Capability

    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 –...
  • Page 18: Osc Clock

    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.
  • Page 19: Solder Bridges

    SWO signal is not connected. No incidence on STM32F103C8T6 (ST-LINK/V2) NRST signal. SB10 (STM_RST) STM32F103C8T6 (ST-LINK/V2) NRST signal is connected to GND. BOOT0 signal of the STM32F407VGT6 MCU is held low through a 510 ohm pull- down resistor. SB18 (BOOT0) BOOT0 signal of the STM32F407VGT6 MCU is held high through a 10 Kohm pull-up resistor.
  • Page 20: Extension Connectors

    Hardware and layout STM32F4DISCOVERY 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.
  • Page 21 STM32F4DISCOVERY Hardware and layout Table 5. MCU pin description versus board function (page 2 of 10) MCU pin Board function Main Alternate function functions SPI1_NSS/ SPI3_NSS/ USART2_CK/ DCMI_HSYNC/ OTG_HS_SOF/ I2S3_WS/ ADC12_IN4/ DAC1_OUT SPI1_SCK/ OTG_HS_ULPI_CK/ TIM2_CH1_ETR/ TIM8_CHIN/ ADC12_IN5/ DAC2_OUT SPI1_MISO/ TIM8_BKIN/ TIM13_CH1/ DCMI_PIXCLK/ TIM3_CH1/...
  • Page 22 Hardware and layout STM32F4DISCOVERY Table 5. MCU pin description versus board function (page 3 of 10) MCU pin Board function Main Alternate function functions USART1_CTS/ CAN1_RX/ PA11 TIM1_CH4/ OTG_FS_DM USART1_RTS/ CAN1_TX/ PA12 TIM1_ETR/ OTG_FS_DP PA13 JTMS-SWDIO PA14 JTCK-SWCLK JTDI/ SPI3_NSS/ PA15 I2S3_WS/ TIM2_CH1_ETR/...
  • Page 23 STM32F4DISCOVERY Hardware and layout Table 5. MCU pin description versus board function (page 4 of 10) MCU pin Board function Main Alternate function functions NJTRST/ SPI3_MISO/ TIM3_CH1/ SPI1_MISO/ I2S3ext_SD I2C1_SMBA/ CAN2_RX/ OTG_HS_ULPI_D7/ ETH_PPS_OUT/ TIM3_CH2/ SPI1_MOSI/ SPI3_MOSI/ DCMI_D10/ I2S3_SD I2C1_SCL/ TIM4_CH1/ CAN2_TX/ OTG_FS_INTN/ DCMI_D5/...
  • Page 24 Hardware and layout STM32F4DISCOVERY Table 5. MCU pin description versus board function (page 5 of 10) MCU pin Board function Main Alternate function functions SPI2_SCK/ I2S2_CK/ I2C2_SCL/ USART3_TX/ PB10 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/ ETH_MII_TX_EN/ OTG_HS_SDA/ TIM2_CH4 SPI2_NSS/ I2S2_WS/...
  • Page 25 STM32F4DISCOVERY Hardware and layout Table 5. MCU pin description versus board function (page 6 of 10) MCU pin Board function Main Alternate function functions SPI2_MOSI/ I2S2_SD/ TIM1_CH3N/ PB15 TIM8_CH3N/ TIM12_CH2/ OTG_HS_DP OTG_HS_ULPI_STP/ ADC123_IN10 ETH_MDC/ ADC123_IN11 SPI2_MISO/ OTG_HS_ULPI_DIR/ TH_MII_TXD2/ I2S2ext_SD/ ADC123_IN12 SPI2_MOSI/ I2S2_SD/ OTG_HS_ULPI_NXT/...
  • Page 26 Hardware and layout STM32F4DISCOVERY Table 5. MCU pin description versus board function (page 7 of 10) MCU pin Board function Main Alternate function functions TIM8_CH3/ SDIO_D0/ TIM3_CH3/ USART6_CK/ DCMI_D2 I2S_CKIN/ MCO2/ TIM8_CH4/ SDIO_D1/ I2C3_SDA/ DCMI_D3/ TIM3_CH4 SPI3_SCK/ I2S3_CK/ UART4_TX/ PC10 SDIO_D2/ DCMI_D8/ USART3_TX...
  • Page 27 STM32F4DISCOVERY Hardware and layout Table 5. MCU pin description versus board function (page 8 of 10) MCU pin Board function Main Alternate function functions FSMC_D3/ CAN1_TX TIM3_ETR/ UART5_RXSDIO_CMD DCMI_D11 FSMC_CLK/ USART2_CTS FSMC_NOE/ USART2_RTS FSMC_NWE/ USART2_TX FSMC_NWAIT/ USART2_RX USART2_CK/ FSMC_NE1/ FSMC_NCE2 FSMC_D13/ USART3_TX FSMC_D14/...
  • Page 28 Hardware and layout STM32F4DISCOVERY Table 5. MCU pin description versus board function (page 9 of 10) MCU pin Board function Main Alternate function functions TIM4_ETR/ FSMC_NBL0/ DCMI_D2 FSMC_NBL1/ DCMI_D3 TRACECLK/ FSMC_A23/ ETH_MII_TXD3 TRACED0/ FSMC_A19 TRACED1/ FSMC_A20/ DCMI_D4 TRACED2/ FSMC_A21/ TIM9_CH1/ DCMI_D6 TRACED3/ FSMC_A22/...
  • Page 29 STM32F4DISCOVERY Hardware and layout Table 5. MCU pin description versus board function (page 10 of 10) MCU pin Board function Main Alternate function functions FSMC_D12/ PE15 TIM1_BKIN OSC_IN OSC_OUT Doc ID 022256 Rev 2 29/38...
  • Page 30: Mechanical Drawing

    Mechanical drawing STM32F4DISCOVERY Mechanical drawing Figure 10. STM32F4DISCOVERY mechanical drawing 30/38 Doc ID 022256 Rev 2...
  • Page 31: Electrical Schematics

    ST_LINK_V2.SCHDOC U_ST_LINK U_STM32Fx U_Audio STM32Fx.SchDoc Audio.SchDoc PB10 PB10 PA14 TCK/SWCLK PC12 PA14 PC12 PA13 TMS/SWDIO PC10 PA13 PC10 NRST T_NRST NRST T_SWO U_USB_OTG_FS PA10 PE10 PA10 PE10 USB_OTG_FS.SchDoc PA11 PE11 U_IO Peripherals PA11 PE11 PA12 PE12 IO Peripherals.SchDoc PA12 PE12 PA10 PA13 PE13...
  • Page 32 PB15 AIN_1 T_JTMS 100nF PB14 T_JTCK SB10 20pF Jumpers ON --> DISCOVERY Selected PB13 PB12 Jumpers OFF --> ST-LINK Selected Not Fitted T_SWDIO_IN Wired on Solder Side SB17 LED_STLINK USB_DM USB_DP SB on Solder Side under JP _Green 100K LD_BICOLOR_CMS...
  • Page 33 BOOT1 PA10 PE10 PA10 PA10 PE10 PE10 PA11 PE11 PA11 PA11 PE11 PE11 PA12 PE12 PA12 PA12 PE12 PE12 PA13 PE13 PA13 PA13 PE13 PE13 PA14 PE14 PA14 PA14 PE14 PE14 PA15 PE15 PA15 PA15 PE15 PE15 SB19 Must be close to the Crystal 4.7K 4.7K PB10...
  • Page 34 0.022uF 0.022uF Audio_SDA HP/LINE_OUTA Audio_SCL HP/LINE_OUTB SPKR/HP I2S3_MCK ST-225-02 MCLK I2S3_SCK PC10 PC10 SCLK SPKR_OUTA+ I2S3_SD PC12 PC12 SDIN SPKR_OUTA- I2S3_WS LRCK SPKR_OUTB+ Audio_RST RESET SPKR_OUTB- 0.1uF 0.1uF -VHPFILT FLYN AIN1B 1uF(X7R) Audio_DAC_OUT AIN1A 1uF(X7R) 1uF (X7R) FLYP AIN2B AIN2A...
  • Page 35 OTG_FS_OverCurrent FAULT OTG_FS_PowerSwitchOn VBUS STMPS2141STR 4.7uF Shield VBUS_FS 475900001 OTG_FS_DM PA11 PA11 OTG_FS_DP PA12 PA12 OTG_FS_ID PA10 PA10 Vbus D+out D+in D-out D-in Green EMIF02-USB03F2 9013 [N/A] Not Fitted STMicroelectronics Title: STM32F4DISCOVERY USB_OTG_FS B.2(PCB.SCH) Date: 1/9/2012 Number: MB997 Rev: Sheet...
  • Page 36 Not Fitted Not Fitted 100K NRST NRST 100nF SB20 100nF 220K USER & WAKE-UP Button RESET Button Green LED4 PD12 PD12 CS_I2C/SPI Orange VDD_IO CS_I2C/SPI SPI1_MISO LED3 PD13 PD13 100nF Reserved SPI1_MOSI SDA/SDI/SDO SPI1_SCK SCL/SPC MEMS_INT1 LED5 PD14 INT1 PD14 MEMS_INT2 INT2 Reserved...
  • Page 37: Revision History

    STM32F4DISCOVERY Revision history Revision history Table 6. Document revision history Date Revision Changes 27-Sept-2011 Initial release. Added Section 4.1: STM32F407VGT6 microcontroller corrected 19-Jan-2012 Figure 3 MCU name, modified Figure 2 Chapter 6: Electrical schematics. Doc ID 022256 Rev 2 37/38...
  • Page 38 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.

Table of Contents