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.
Contents STM32F4DISCOVERY Contents 1 Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2 Quick start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.1 Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.2 System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.
STM32F4DISCOVERY List of tables 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. . . . .
List of figures STM32F4DISCOVERY 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. 4/38 STM32F4DISCOVERY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Hardware block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Top layout . . . . . . . . . . . .
STM32F4DISCOVERY 1 Conventions Conventions Table 1 provides the definition of some conventions used in the present document. Table 1.
Quick start 2 STM32F4DISCOVERY 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.
STM32F4DISCOVERY 3 Features 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 digi
Hardware and layout 4 STM32F4DISCOVERY 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 -INI 53" 37$ %MBEDDED 34 ,).
STM32F4DISCOVERY Figure 3. Hardware and layout Top layout 34 ,).+ 6 ,$ RED GREEN ,%$ #/#.
Hardware and layout Figure 4. STM32F4DISCOVERY Bottom layout 3" 3" 3" 3" 2%3%26%$ 3" .
STM32F4DISCOVERY 4.1 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 34- & 6'4 -BYTE OF &LASH MEMORY +BYTES OF 2!- ,1&0 X MM -3 6 This device provides the following benefits.
Hardware and layout STM32F407VGT6 block diagram %XTERNAL MEMORY CONTROLLER &3-# ##- DATA 2!- +" *4!' 37 -05 .6)# %4- $ "53 $-! &)&/ 53" /4' (3 3TREAMS $-! 2.
STM32F4DISCOVERY 4.2 Hardware and layout 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.
Hardware and layout 4.2.1 STM32F4DISCOVERY 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 4.2.2 Hardware and layout 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. Figure 9.
Hardware and layout 4.3 STM32F4DISCOVERY 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: 4.4 4.5 16/38 ● 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.
STM32F4DISCOVERY 4.6 Hardware and layout 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. ● ● 4.7 The sound can come independently from different inputs: – ST MEMS microphone (MP45DT02): digital using PDM protocol or analog when using the low pass filter.
Hardware and layout STM32F4DISCOVERY 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. ● ● ● 4.10.2 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.
STM32F4DISCOVERY Hardware and layout 4.11 Solder bridges Table 4. Solder bridges State(1) Bridge Description OFF 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. SB15,16 (X3 crystal) OFF X3, C16, C27, R21 and R22 deliver a 32 KHz clock. PC14, PC15 are not connected to P2.
Hardware and layout 4.12 STM32F4DISCOVERY 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.
STM32F4DISCOVERY Table 5.
Hardware and layout Table 5.
STM32F4DISCOVERY Table 5.
Hardware and layout Table 5.
STM32F4DISCOVERY Table 5.
Hardware and layout Table 5.
STM32F4DISCOVERY Table 5.
Hardware and layout Table 5.
STM32F4DISCOVERY Table 5.
Mechanical drawing 5 STM32F4DISCOVERY Mechanical drawing Figure 10.
VDD PA9 PA10 PA11 PA12 Doc ID 022256 Rev 2 PE7 PE9 PE11 PE13 PE15 PB11 PB13 PB15 PD9 PD11 PD13 PD15 PC1 PC3 PA1 PA3 PA5 PA7 PC5 PB1 PA9 PA10 PA11 PA12 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 Header 25X2 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 P1 PD5 PC0 U_USB_OTG_FS USB_OTG_FS.
1 2 3 4 5 0 100nF 3V 1 2 R9 R11 R10 R8 U5V R20 R19 8MHz X1 U5V BAT60JFILM D1 AIN_1 5V 1K5 3V 0 USB_DM 0 USB_DP 100K 4K7 4K7 OSC_IN OSC_OUT STM_RST 10K C6 20pF EXT_5V, Input or Output 5075BMR-05-SM VCC DD+ ID GND SHELL CN1 USB SB10 C11 R18 100K C9 20pF 3V Not Fitted R5 1 2 3 4 5 6 7 8 9 10 11 12 3V VBAT PC13 PC14 PC15 OSCIN OSCOUT NRST VSSA VDDA PA0 PA1 PA2 3V 100K SWIM_IN SWIM C7 100nF C8 100nF T_JTCK T_JTDO T_JTDI T_NRST Board Ident: PC13=0 SWIM_IN SWIM_RST SWIM_RS
C26 100nF C24 100nF fcm1608-0603 L1 C30 100nF VDD R29 4.7K VDD C31 100nF 47 R23 PB6 PB9 R33 4.
/38 Doc ID 022256 Rev 2 Not Fitted Audio_RST R63 0 R64 0 3V PD4 1 2 3 6 5 4 3V C41 0.1uF PC3 PB10 C53 0.1uF PC7 PC10 PC12 PA4 PB9 PB6 C47 1uF(X7R) C58 10uF VDD DOUT CLK MP45DT02 GND LR GND U9 10K R43 C40 0.1uF C60 100nF 2V5 PD4 I2S3_MCK I2S3_SCK I2S3_SD I2S3_WS Audio_SDA Audio_SCL PC3 PB10 C59 1uF C42 0.
VBUS_FS OTG_FS_DM OTG_FS_DP OTG_FS_ID OTG_FS_PowerSwitchOn PA9 PA11 PA12 PA10 PC0 R46 R59 PC0 PA9 PA11 PA12 PA10 0 0 B3 C3 D3 A2 B2 5V R45 10K 3V 22 22 GND ID D+in D-in Pd1 Pd2 R58 R60 D2 A3 C1 D1 B1 C2 STMPS2141STR GND FAULT IN OUT EN U6 EMIF02-USB03F2 Vbus D+out D-out Dz Pup U8 2 5 4 3 1 C49 4.
SPI1_MOSI SPI1_SCK MEMS_INT1 MEMS_INT2 PA7 PA5 PE0 PE1 PA0 Doc ID 022256 Rev 2 100nF PA7 PA5 PE0 PE1 C39 PA0 330 R35 1 6 3 13 14 8 9 3V MEMS LIS302DL 7 12 2 10 5 4 11 R39 220K VDD_IO CS_I2C/SPI VDD SDO Reserved GND SDA/SDI/SDO GND SCL/SPC GND INT1 GND INT2 Reserved U5 USER & WAKE-UP Button SB20 C38 100nF 100 4 1 3 2 Not Fitted VDD SW-PUSH-CMS B1 PE3 PA6 PE3 PA6 CS_I2C/SPI SPI1_MISO LED6 LED5 LED3 LED4 NRST PD15 PD14 PD13 PD12 NRST R37 100K VDD SW-PUSH-CMS B2 LD3 Orange
STM32F4DISCOVERY 7 Revision history Revision history Table 6. Document revision history Date Revision Changes 27-Sept-2011 1 Initial release. 19-Jan-2012 2 Added Section 4.1: STM32F407VGT6 microcontroller corrected Figure 3 MCU name, modified Figure 2 and Chapter 6: Electrical schematics.
STM32F4DISCOVERY 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.