ST 32F412GDISCOVERY User Manual

ST 32F412GDISCOVERY User Manual

Discovery kit with stm32f412zg mcu
Table of Contents

Advertisement

Quick Links

Introduction
The 32F412GDISCOVERY Discovery kit is a complete demonstration and development
platform for STMicroelectronics Arm
microcontroller. This microcontroller features four I
ports with two multiplexed full-duplex I
port, two CAN buses, FMC parallel 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
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
of specialized shields. The extension connectors allow easy connection of a daughterboard
for specific customer applications. The integrated ST-LINK/V2-1 provides an embedded
in-circuit debugger and programmer for the STM32.

Figure 1. 32F412GDISCOVERY (top view)

Pictures are not contractual.
October 2021
Discovery kit with STM32F412ZG MCU
®
®
Uno V3 compatible connectors expand the functionality with a wide choice
UM2032 Rev 3
®
Cortex
-M4 core-based STM32F412ZGT6
2
C buses, four USART ports, five SPI
2
S buses, SDIO interface, USB OTG full-speed 2.0
2
S with an audio codec and stereo jack

Figure 2. 32F412GDISCOVERY (bottom view)

UM2032
User manual
www.st.com
1/40
1

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for ST 32F412GDISCOVERY

  • Page 1: Figure 1. 32F412Gdiscovery (Top View)

    USB OTG FS, microSD™ card, full-duplex I 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.
  • Page 2: Table Of Contents

    Embedded ST-LINK/V2-1 ........13...
  • Page 3 32F412GDISCOVERY is USB device ......23 5.10.2 32F412GDISCOVERY is USB host ......23 5.11 microSD™...
  • Page 4 Contents UM2032 Federal Communications Commission (FCC) and ISED Canada Compliance Statements ..... . 37 FCC Compliance Statement ........37 8.1.1 Part 15.19 .
  • Page 5 UM2032 List of tables List of tables Table 1. Ordering information ............8 Table 2.
  • Page 6 32F412GDISCOVERY bottom layout ........
  • Page 7: Features

    Comprehensive free software libraries and examples available with the STM32Cube MCU Package • On-board ST-LINK/V2-1 debugger/programmer with USB re-enumeration capability: mass storage, Virtual COM port, and debug port • Support of a wide choice of Integrated Development Environments (IDEs) including ®...
  • Page 8: Ordering Information

    Ordering information UM2032 Ordering information To order the 32F412GDISCOVERY Discovery kit, refer to Table 1. Additional information is available from the datasheet and reference manual of the target microcontroller. Table 1. Ordering information Order code Board reference Target STM32 STM32F412G-DISCO...
  • Page 9: Development Environment

    UM2032 Development environment Development environment System requirements ® ® (a) ® (b) • Multi.OS support: Windows 10, Linux 64-bit, or macOS ® • USB Type-A or USB Type-C to Micro-B cable Development toolchains ® ® (c) • IAR Systems - IAR Embedded Workbench ®...
  • Page 10: Hardware Layout And Configuration

    Hardware layout and configuration UM2032 Hardware layout and configuration The 32F412GDISCOVERY Discovery kit is designed around the STM32F412ZGT6 (144-pin TQFP package). The hardware block diagram shown in Figure 3, illustrates the STM32F412ZGT6 connections with the peripherals. Figure 4 Figure 5 show the location of the main components on the Discovery kit.
  • Page 11: Figure 4. 32F412Gdiscovery Top Layout

    UM2032 Hardware layout and configuration Figure 4. 32F412GDISCOVERY top layout Audio jack (CN9) Digital microphones (U4, U5) USB OTG FS microSD™ connector Micro-AB connector (CN3) (CN13) VDD_MCU voltage selection Reset button (B1) (JP5) LED (LD7) IDD jumper (JP7) USB fault LED (LD8)
  • Page 12: Figure 5. 32F412Gdiscovery Bottom Layout

    Hardware layout and configuration UM2032 Figure 5. 32F412GDISCOVERY bottom layout Capacitive touch panel connector (CN14) U16 regulator output voltage adjustment (R90, R92) microSD™ connector (CN13) MSv43307V2 12/40 UM2032 Rev 3...
  • Page 13: 32F412Gdiscovery Discovery Kit Mechanical Drawing

    ST-LINK/V2-1 programming and debugging tool is integrated into the 32F412GDISCOVERY Discovery kit. For information about the debugging and programming features, refer to the ST-LINK/V2 in- circuit debugger/programmer for STM8 and STM32 user manual (UM1075). For a comparison of the various ST-LINK solutions, refer to the Overview of ST-LINK derivatives technical note (TN1235).
  • Page 14: St-Link/V2-1 Firmware Upgrade

    The 32F412GDISCOVERY Discovery kit is designed to be powered by the following sources: • 5 V DC from the ST-LINK/V2-1 USB connector CN6 with 500 mA current limitation. Power mechanism of supplying the Discovery kit by the ST-LINK/V2-1 is explained in Section 5.3.4: Supplying the 32F412GDISCOVERY through the ST-LINK/V2-1 USB port.
  • Page 15: Stm32 Power Supply Options

    5.3.2 STM32 power supply options The 32F412GDISCOVERY offers the possibility to supply the STM32 under 2.0 V or 3.3 V. A jumper must be placed in location 2.0 V of JP5 to supply the STM32 under 2.0 V, then pins 2 and 3 are connected. Similarly the jumper must be placed in 3.3 V to supply the STM32 with 3.3 V, then pins 1 and 2 of JP5 are connected.
  • Page 16: Supplying The 32F412Gdiscovery Through

    PC informs the ST-LINK/V2-1 facility of its capability to supply up to 500 mA of current. If the answer is positive, the ST-LINK/V2-1 sets the U8 switch to ON position to supply power to the remainder of the 32F412GDISCOVERY Discovery kit.
  • Page 17: Programming/Debugging When The Power Supply

    Programming/debugging when the power supply is not from ST-LINK/V2-1 Before connecting the USB cable from the ST-LINK/V2-1 USB connector CN6 to the PC, it is mandatory to power the Discovery kit using the user USB FS connector CN3 or the VIN ®...
  • Page 18 Table 4. Power-supply-related jumper settings (continued) Jumper Description ® Uno V3 32F412GDISCOVERY is supplied through the VIN pin of the ARDUINO compatible connector CN2. Jumper in E5V place. STLK ® Uno V3 32F412GDISCOVERY is supplied by +5 V pin of ARDUINO compatible connector CN2 (pin 5) or by pins 3 or 4 of the extension connector P2.
  • Page 19 UM2032 Hardware layout and configuration Table 4. Power-supply-related jumper settings (continued) Jumper Description VDD_USB power pin of STM32F412ZGT6 is supplied with a fix voltage of +3V3 independently of the remainder of supply pins of STM32. Default Setting JP7 IDD is ON by default to supply the STM32F412ZGT6 and when removed, it offers the possibility to insert an ammeter to measure the current drawn by the STM32 only.
  • Page 20: Clock Source

    By default the 8 MHz clock source is provided to the STM32F412ZGT6 by the MCO output of the ST-LINK/V2-1 MCU U6. In that case the solder bridge SB20 is ON, resistors R45 and R46 are not soldered, solder bridge SB22 is OFF. The pins PH0 and PH1 are not available for the extension connector P2.
  • Page 21: Boot Options

    UM2032 Hardware layout and configuration Boot options After reset, the STM32F412ZGT6 boots from the following embedded memory locations depending on bits BOOT0 and BOOT1 (see Table • User Flash memory (non-protected) • System Flash memory (protected) for In Circuit Programming •...
  • Page 22: Audio Codec

    5.8.2 Loudspeaker output The 32F412GDISCOVERY Discovery kit can deliver a monophonic audio to a loudspeaker connected to pins 36 and 38 of the extension connector P2. It is recommended to use the codec loudspeaker outputs SPKOUTRN and SPKOUTRP in linear mode called "class AB".
  • Page 23: 32F412Gdiscovery Is Usb Device

    5.10.1 32F412GDISCOVERY is USB device When the 32F412GDISCOVERY is USB device, the Discovery kit is powered by the 5 V of the CN3 USB OTG FS Micro-AB connector. In this case a jumper must be put in USB location of jumper JP3 and the green LEDs LD7 V and LD6 PWR light on to confirm the 5 V presence.
  • Page 24: Quad-Spi Nor Flash Memory

    Limitations: The Quad-SPI memory is not working when the STM32 is supplied with 2 V. 5.14 Virtual COM port The serial interface USART2 is directly available through a USB Virtual COM port of the ST-LINK/V2-1. The USB connector is CN6. ® 5.15 ARDUINO Uno V3 connectors ®...
  • Page 25: Table 7. Arduino ® Uno V3 Compatible Connectors

    (see Note:3) Note:1 Important, before using pin 4 of CN2 as +3.3 V input, insure that the solder bridge SB4 is removed. Otherwise the 32F412GDISCOVERY Discovery kit could be damaged by the overcurrent. Note:2 The external voltage applied to pin VIN should be in the range 6 to 9 V at 25°C ambient temperature.
  • Page 26: Extension Connectors P1 And P2

    32F412GDISCOVERY schematics (see on www.st.com) the pins belonging to the extension connectors P1 and P2 annotated with a letter, are shared with a peripheral of the 32F412GDISCOVERY (for example, S means that the port PC9 corresponding to pin 46 is also used for microSD™, see Table Table 8.
  • Page 27: Table 9. Pin Assignment For The Extension Connector P2

    UM2032 Hardware layout and configuration Table 8. Pin assignment for the extension connector P1 (continued) P1 odd pins P1 even pins Pin No. Name Note Pin No. Name Note PB10 PB11 PB12 PB13 PB14 PB15 PD12 PD13 Table 9. Pin assignment for the extension connector P2 P2 odd pins P2 even pins Pin No.
  • Page 28: Lcd Display, Backlight And Touch Panel

    Hardware layout and configuration UM2032 Table 9. Pin assignment for the extension connector P2 (continued) P2 odd pins P2 even pins Pin No. Name Note Pin No. Name Note PA10 PA13 Note:1 The star symbol “*” means pin compatible with the 32F401CDISCOVERY and 32F411EDISCOVERY Discovery kits.
  • Page 29: Lcd Signal Access (Cn7)

    UM2032 Hardware layout and configuration Table 10. Pin assignment for connector CN15 (continued) Signal STM32 pin CN15 pin Description name involved Data connected to FMC PE15 Data connected to FMC PE14 Data connected to FMC PE13 Data connected to FMC PE12 Data connected to FMC PE11...
  • Page 30: Backlight

    Uno V3 connectors CN1 and CN2 are available for the user (refer to the Figure 4: 32F412GDISCOVERY top layout). From left to right the user finds LD1, LD2, LD3 and LD4 with their colors green, orange, red and blue respectively. To light a LED a low-logic state 0 must be written in the corresponding GPIO.
  • Page 31: Table 12. Port Assignment To The Led Indicators

    UM2032 Hardware layout and configuration Table 12. Port assignment to the LED indicators Controlled by STM32 port Color Green Orange Blue UM2032 Rev 3 31/40...
  • Page 32: Connectors

    Connectors UM2032 Connectors C extension connector CN10 Figure 9. I C extension connector CN10 (front view) MS30715V2 Table 13. I C extension connector pinout CN10 Pin number Description Pin number Description I2C1_SDA (PB9) I2C1_SCL (PB10) EXT_RESET (PF11) USB OTG FS Micro-AB connector CN3 Figure 10.
  • Page 33: Microsd™ Connector Cn13

    Table 15. microSD™ connector CN13 Description Description number number SDIO_D2 (PC10) SDIO_D3 (PC11) SDIO_D0 (PC8) SDIO_CMD (PD2) SDIO_D1 (PC9) +3.3 V SDIO_CLK (PC12) MicroSDcard_detect (PD3) ST-LINK/V2-1 USB Micro-B connector CN6 Figure 12. USB Micro-B connector CN6 (front view) UM2032 Rev 3 33/40...
  • Page 34: Table 16. Usb Micro-B Connector Cn6

    Connectors UM2032 Table 16. USB Micro-B connector CN6 Pin number Description Pin number Description VBUS (power) Shield 34/40 UM2032 Rev 3...
  • Page 35: 32F412Gdiscovery Discovery Kit Information

    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 designs or in production.
  • Page 36: 32F412Gdiscovery Product History

    32F412GDISCOVERY Discovery kit information UM2032 32F412GDISCOVERY product history 7.2.1 Product identification 32F412GDISCO/ This product identification is based on the mother board MB1209-F412ZGT6-D02 It embeds the STM32F412ZGT6 microcontroller with silicon revision code "C". The limitations of this silicon revision are detailed in the errata sheet STM32F412xE/xG device errata (ES0305).
  • Page 37: Federal Communications Commission (Fcc) And Ised Canada Compliance Statements

    UM2032 Federal Communications Commission (FCC) and ISED Canada Compliance Statements Federal Communications Commission (FCC) and ISED Canada Compliance Statements FCC Compliance Statement 8.1.1 Part 15.19 This device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) this device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation.
  • Page 38: Ce Conformity

    CE conformity UM2032 CE conformity EN 55032 / CISPR32 (2012) Class A product Warning: This device is compliant with Class A of EN55032 / CISPR32. In a residential environment, this equipment may cause radio interference. Avertissement : cet équipement est conforme à la Classe A de la EN55032 / CISPR 32. Dans un environnement résidentiel, cet équipement peut créer des interférences radio.
  • Page 39: Revision History

    08-Nov-2016 (FCC) and Industry Canada (IC) Compliance Statements, Section Appendix C: CISPR32. Removed Schematics, Technology partner Demonstration software. Added Chapter 7: 32F412GDISCOVERY Discovery kit information. Updated Figure 3: Hardware block diagram, Figure 4: 32F412GDISCOVERY top layout, Figure 5: 32F412GDISCOVERY bottom layout, Section 5.2: Embedded...
  • Page 40 ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on ST products before placing orders. ST products are sold pursuant to ST’s terms and conditions of sale in place at the time of order acknowledgement.

Table of Contents