![]() |
|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
november 2016 docid029078 rev 2 1/48 1 UM2032 user manual discovery kit with stm32f412zg mcu introduction the 32f412gdiscovery discovery kit is a complete demonstration and development platform for stmicroelectronics arm ? cortex ? -m4 core-based stm32f412zgt6 microcontroller. this microcontroller features four i 2 c buses, four usart ports, five spi ports with two multip lexed full-duplex i 2 s buses, sdio interface, usb otg full-speed 2.0 port, two can buses, fmc paralle l interface, two digital filters for sigma-delta modulators, pdm interface for two digital microphones, one 12-bit adc, dual quad-spi interface, jtag and swd debugging support. this discovery kit offers everything required for users to get started quickly and develop applications easily. a full range of hardware features on the board helps users to evaluate on-board peripherals such as: usb otg fs, microsd ? card, full-duplex i 2 s with an audio codec and stereo jack for headset including analog microphone, dfsdm with a pair of st-mems digital microphones on board, quad-spi flash memory device, 1.54" tft lcd using fmc interface with capacitive touch panel. the arduino ? uno v3 compatible connectors expand the functionality with a wide choice of specialized shields. the extension connectors allow easy connection of a daughterboard for specific customer applicatio ns. the integrated st-link/v2-1 provides an embedded in-circuit debugger and programmer for the stm32. 1. pictures are not contractual. figure 1. 32f412gdiscovery (top view) figure 2. 32f412gdiscovery (bottom view) www.st.com
contents UM2032 2/48 docid029078 rev 2 contents 1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2 demonstration software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3 product marking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4 ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 5 technology partner . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 6 hardware layout and configurat ion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 6.1 32f412gdiscovery discovery kit mechanical drawing . . . . . . . . . . . . .11 6.2 embedded st-link/v2-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11 6.2.1 drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 6.2.2 st-link/v2-1 firmware upgrade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 6.3 power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 6.3.1 power supply sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 6.3.2 stm32 power supply options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 6.3.3 modification of stm32 voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 6.3.4 supplying the 32f412gdiscovery through the st-link/v2-1 usb port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 6.3.5 programming/debugging when the power supply is not from st-link/v2-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 6.3.6 measurement of current idd drawn by the microcontroller . . . . . . . . . . 15 6.4 clock source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 6.4.1 hse clock source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 6.4.2 lse clock source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 6.5 reserved use of solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 6.6 reset source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 6.7 boot options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 6.8 audio codec . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 6.8.1 stereo headset and headphone jack . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 6.8.2 loudspeaker output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 6.9 digital microphones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 docid029078 rev 2 3/48 UM2032 contents 4 6.10 usb otg fs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 6.10.1 32f412gdiscovery is usb device . . . . . . . . . . . . . . . . . . . . . . . . . . 21 6.10.2 32f412gdiscovery is usb host . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 6.11 microsd card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 6.12 i 2 c extension connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 6.13 quad-spi nor flash memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 6.14 virtual com port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 6.15 arduino uno v3 connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 6.16 extension connectors p1 and p2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 6.17 lcd display, backlight and touch panel . . . . . . . . . . . . . . . . . . . . . . . . . . 26 6.17.1 lcd display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 6.17.2 lcd signal access (cn7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 6.17.3 backlight . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 6.17.4 touch panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 6.18 joystick and leds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 7 connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 7.1 i 2 c extension connector cn10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 7.2 usb otg fs micro-ab connector cn3 . . . . . . . . . . . . . . . . . . . . . . . . . . 30 7.3 microsd connector cn13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 7.4 st-link/v2-1 usb micro-b connector cn6 . . . . . . . . . . . . . . . . . . . . . . 31 appendix a schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 appendix b federal communi cations commission (fcc) and industry canada (ic) compliance st atements. . . . . . . . . . . . . 45 b.1 fcc compliance statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 b.1.1 part 15.19 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 b.1.2 part 15.105 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 b.1.3 part 15.21 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 b.2 ic compliance statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 b.2.1 compliance statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 b.2.2 dclaration de conformit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 appendix c cispr32 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 c.1 warning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 contents UM2032 4/48 docid029078 rev 2 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 docid029078 rev 2 5/48 UM2032 list of tables 5 list of tables table 1. ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 table 2. power-supply-related jumper settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 table 3. boot options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 table 4. boot-related solder bridge and resistor settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 table 5. arduino uno v3 compatible connec tors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 table 6. pin assignment for the extension connector p1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 table 7. pin assignment for the extension connector p2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 table 8. pin assignment for connector cn15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 table 9. pin assignment for connector cn7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 7 table 10. port assignment to the led indica tors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 9 table 11. i 2 c extension connector pinout cn10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 table 12. usb otg fs micro-ab connector cn3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 table 13. microsd connector cn13 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 table 14. usb micro-b connector cn6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 table 15. document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 list of figures UM2032 6/48 docid029078 rev 2 list of figures figure 1. 32f412gdiscovery (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 figure 2. 32f412gdiscovery (bottom view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 figure 3. hardware block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 figure 4. 32f412gdiscovery top layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 figure 5. 32f412gdiscovery bottom layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 figure 6. 32f412gdiscovery mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 figure 7. usb composite device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 figure 8. r90 and r92 resistors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 figure 9. i 2 c extension connector cn10 (front view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 figure 10. usb otg fs micro-ab connector cn3 (front view). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 figure 11. microsd connector cn13 (front view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1 figure 12. usb micro-b connector cn6 (front view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 figure 13. 32f412gdiscovery discovery kit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 figure 14. 32f412gdiscovery mcu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 figure 15. 32f412gdiscovery power . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 figure 16. 32f412gdiscovery lcd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 7 figure 17. 32f412gdiscovery quad-spi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 figure 18. 32f412gdiscovery audio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 9 figure 19. 32f412gdiscovery peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 figure 20. 32f412gdiscovery usb otg fs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 figure 21. 32f412gdiscovery extension connectors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 figure 22. 32f412gdiscovery arduino uno v3 connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 figure 23. 32f412gdiscovery st-link/v2-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 docid029078 rev 2 7/48 UM2032 features 47 1 features ? stm32f412zgt6 microcontroller featuring 1 mbyte of flash memory and 256 kbytes of ram in lqfp144 package ? on-board st-link/v2-1 swd debugger, supporting usb re-enu meration capability: ? virtual com port ? mass storage ? debug port ? 1.54-inch, 240x240-pixel tft color lcd with parallel interface ? i 2 s audio codec, with a stereo headset jack, including analog microphone input and a loudspeaker output ? stereo digital st-mems microphones. ? microsd ? card connector ? i 2 c extension connector ? 128-mbit quad-spi nor flash memory ? reset button and joystick ? four-color user leds ? usb otg fs with micro-ab connector ? four options for power-supply source: ? st-link/v2-1 usb connector ? user usb fs connector ? vin from arduino ? uno v3 connector ? +5 v from arduino ? uno v3 connector ? two supply voltage options for stm32: 2.0 v and 3.3 v ? compatible arduino ? uno v3 connectors ? extension connectors for direct access to various features of the stm32f412zgt6 ? comprehensive free software including a variety of examples, part of the stm32cube package 2 demonstration software demonstration software is preloaded in the stm32f412zgt6 flash memory. the latest version of the demonstration source code and the associated documentation can be downloaded from the www.st.com/stm32f4-discovery webpage. product marking UM2032 8/48 docid029078 rev 2 3 product marking evaluation tools marked as "es" or "e" are not yet qualified and therefore they are not ready to be used as reference design or in production. any consequences deriving from such usage will not be at st charge. in no event, st will be liable for any customer usage of these engineering sample tools as reference design or in production. "e" or "es" marking examples of location: ? on the targeted stm32 that is soldered on the board (for illu stration of stm32 marking, refer to the section "package informati on" of the stm32 datasheet available at www.st.com ). ? next to the evaluation tool ordering part number, that is stuck or silk-screen printed on the board. 4 ordering information to order the 32f412gdiscovery discovery kit refer to table 1 : 5 technology partner micron: ? 128-mbit quad-spi nor flash memory device, part number n25q128a table 1. ordering information order code target stm32 stm32f412g-disco stm32f412zgt6 docid029078 rev 2 9/48 UM2032 hardware layout and configuration 47 6 hardware layout and configuration the 32f412gdiscovery discovery kit is designed around the stm32f412zgt6 (144-pin tqfp package). the hardware block diagram showed in figure 3 , illustrates the stm32f412zgt6 connections with the peripherals. figure 4 and figure 5 show the location of the main components on the discovery kit. figure 3. hardware block diagram 0 6 y 9 6 7 0 ) = * 7 7 4 ) 3 s d f n d j h $ x g l r & |