STM32F4DISCOVERY STM32F4 High-performance Discovery Board

Transcription

UM1472User ManualSTM32F4DISCOVERYSTM32F4 high-performance discovery boardIntroductionThe STM32F4DISCOVERY helps you to discover the STM32F4 high-performance featuresand to develop your applications. It is based on an STM32F407VGT6 and includes anST-LINK/V2 embedded debug tool interface, ST MEMS digital accelerometer, ST MEMSdigital microphone, audio DAC with integrated class D speaker driver, LEDs, pushbuttonsand a USB OTG micro-AB connector.Figure 1.January 2012STM32F4DISCOVERYDoc ID 022256 Rev 21/38www.st.com

ContentsSTM32F4DISCOVERYContents1Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52Quick start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62.1Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62.2System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62.3Development toolchain supporting the STM32F4DISCOVERY . . . . . . . . . 62.4Order code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74Hardware and layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84.1STM32F407VGT6 microcontroller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114.2Embedded ST-LINK/V2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134.2.1Using ST-LINK/V2 to program/debug the STM32F4 on board . . . . . . . . 144.2.2Using ST-LINK/V2 to program/debug an external STM32 application . . 154.3Power supply and power selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164.4LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164.5Pushbuttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164.6On board audio capability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174.7USB OTG supported . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174.8Motion sensor (ST MEMS LIS302DL) . . . . . . . . . . . . . . . . . . . . . . . . . . . 174.9JP1 (Idd) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174.10OSC clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184.10.1OSC clock supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184.10.2OSC 32 KHz clock supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184.11Solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194.12Extension connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205Mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306Electrical schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372/38Doc ID 022256 Rev 2

STM32F4DISCOVERYList of tablesList of tablesTable 1.Table 2.Table 3.Table 4.Table 5.Table 6.ON/OFF conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5Jumper states . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13Debug connector CN2 (SWD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15Solder bridges. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19MCU pin description versus board function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37Doc ID 022256 Rev 23/38

List of figuresSTM32F4DISCOVERYList of figuresFigure 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/38STM32F4DISCOVERY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Hardware block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8Top layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9Bottom layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10STM32F407VGT6 package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11STM32F407VGT6 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12Typical configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13STM32F4DISCOVERY connections image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14ST-Link connections image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15STM32F4DISCOVERY mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30STM32F4DISCOVERY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31ST-LINK/V2 (SWD only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32MCU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33Audio. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34USB OTG FS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35Peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36Doc ID 022256 Rev 2

STM32F4DISCOVERY1ConventionsConventionsTable 1 provides the definition of some conventions used in the present document.Table 1.ON/OFF conventionsConventionDefinitionJumper JP1 ONJumper fittedJumper JP1 OFFJumper not fittedSolder bridge SBx ONSBx connections closed by solderSolder bridge SBx OFF SBx connections left openDoc ID 022256 Rev 25/38

Quick start2STM32F4DISCOVERYQuick startThe STM32F4DISCOVERY is a low-cost and easy-to-use development kit to quicklyevaluate and start a development with an STM32F4 high-performance microcontroller.Before installing and using the product, please accept the Evaluation Product LicenseAgreement from www.st.com/stm32f4-discovery.For more information on the STM32F4DISCOVERY and for demonstration software, visitwww.st.com/stm32f4-discovery.2.1Getting startedFollow the sequence below to configure the STM32F4DISCOVERY board and launch theDISCOVER application:2.22.32.41.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 thefour LEDs blinking according to the motion direction and speed. (If you connect asecond USB cable ‘type A to micro-B’ between PC and CN5 connector then the boardis 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, visitwww.st.com/stm32f4-discovery and follow the tutorial.6.Discover the STM32F4 features, download and execute programs proposed in the listof projects.7.Develop your own application using available examples.System requirements Windows PC (XP, Vista, 7) USB type A to Mini-B USB cableDevelopment toolchain supporting the STM32F4DISCOVERY Altium, TASKING VX-Toolset Atollic, TrueSTUDIO IAR, EWARM Keil , MDK-ARMOrder codeTo order the STM32F4 high-performance discovery board, use the order codeSTM32F4DISCOVERY.6/38Doc ID 022256 Rev 2

STM32F4DISCOVERY3FeaturesFeaturesThe STM32F4DISCOVERY offers the following features: STM32F407VGT6 microcontroller featuring 1 MB of Flash memory, 192 KB of RAM inan LQFP100 package On-board ST-LINK/V2 with selection mode switch to use the kit as a standaloneST-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 easyprobingDoc ID 022256 Rev 27/38

Hardware and layout4STM32F4DISCOVERYHardware and layoutThe STM32F4DISCOVERY is designed around the STM32F407VGT6 microcontroller in a100-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 MEMSmicrophone, and connectors).Figure 3 and Figure 4 help you to locate these features on the STM32F4DISCOVERY.Figure 2.Hardware block diagram-INI53"37 %MBEDDED34 ,). 6 34- & 6'4 ) /2%3%4,% , TO , " 234-0 4 " 53%2#3 , -INI *ACK(EADER) /(EADER) /,)3 ,-ICRO 53"-3 6 8/38Doc ID 022256 Rev 2

STM32F4DISCOVERYFigure 3.Hardware and layoutTop layout34 ,). 6 , RED GREEN ,% #/#. 37 CONNECTOR, RED ,% 072 %& 34- & 6'4 !"# GREEN ,% , 6 POWERSUPPLY OUTPUT3" " 2%3%4, ORANGE ,% , RED ,% " RESET BUTTON 6 POWERSUPPLY INPUT OUTPUT BLUE ,% , "!"( %% GREEN ,% , " USER BUTTON#. 34 ,). )3#/6%29SELECTOR)))*!(* ,-.!(- / 0! ,1"#2 & *0 ) MEASUREMENT % ' , RED ,% -3 6 Note:Pin 1 of CN2, CN3, JP1, P1 and P2 connectors are identified by a square.Doc ID 022256 Rev 29/38

Hardware and layoutFigure 4.STM32F4DISCOVERYBottom layout3" 3" 3" 3" 2%3%26% 3" .2343" 3" 3" 3" %&!5,43" 34-?2343" 8 CRYSTAL3" 8 CRYSTAL3" 37/3" 8 CRYSTAL3" 8 CRYSTAL3" 6 FROM 63" "//4 3" "//4 3" " 53%2-3 6 10/38Doc ID 022256 Rev 2

STM32F4DISCOVERY4.1Hardware and layoutSTM32F407VGT6 microcontrollerThis ARM Cortex-M4 32-bit MCU with FPU has 210 DMIPS, up to 1 MB Flash/192 4 KBRAM, USB OTG HS/FS, Ethernet, 17 TIMs, 3 ADCs, 15 comm. interfaces and a camera.Figure 5.STM32F407VGT6 package34- & 6'4 -BYTE OF &LASH MEMORY BYTES OF 2!-,1&0 X MM-3 6 This device provides the following benefits. 168 MHz/210 DMIPS Cortex-M4 with single cycle DSP MAC and floating point unitproviding:Boosted execution of control algorithmsMore features possible for your applicationsEase of useBetter code efficiencyFaster time to marketElimination of scaling and saturationEasier support for meta-language tools Designed for high performance and ultra fast data transfers; ART Accelerator, 32-bit, 7layer AHB bus matrix with 7 masters and 8 slaves including 2 blocks of SRAM, MultiDMA controllers: 2 general purpose, 1 for USB HS, 1 for Ethernet, One SRAM blockdedicated to the core, providing performance equivalent to 0-wait execution from FlashConcurrent execution and data transfers and simplified resource allocation Outstanding power efficiency; Ultra-low dynamic power, RTC 1 µA typical in VBATmode, 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 bothhigh processing and low power performance when running at low voltage or on arechargeable 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 inspace constrained applications Superior and innovative peripherals providing new possibilities to connect andcommunicate high speed data and more precision due to high resolution Extensive tools and software solutions providing a wide choice within the STM32ecosystem to develop your applications.Doc ID 022256 Rev 211/38

Hardware and layoutSTM32F407VGT6 block diagram%XTERNAL MEMORYCONTROLLER &3-###- DATA 2!- "*4!' 37-05.6)#%4- "53 -! &)&/53"/4' (3 3TREAMS -! 2.'32!- "32!- "!(" -(Z&)&/!((" -(Z 3TREAMS -! &LASHUP TO -"6 6 !0!; 0"; '0)/ 0/24 !'0)/ 0/24 "0#; '0)/ 0/24 #0 ; '0)/ 0/24 0%; '0)/ 0/24 %53"/4' &32# (30/22ESET2# ,3)NT0,, 3UPPLYSUPERVISIO

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