UM2032 STMICROELECTRONICS | Alldatasheet

Document overview

  • Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
  • PDF pages: 48

Technical content

Datasheet sections

  • 1 Features
  • 2 Demonstration software
  • 3 Product marking
  • 4 Ordering information
  • 5 Technology partner
  • 6 Hardware layout and configurat ion
  • 6.2 Embedded ST-LINK/V2-1
  • 6.2.1 Drivers
  • 6.2.2 ST-LINK/V2-1 firmware upgrade
  • 6.3 Power supply
  • 6.3.1 Power supply sources
  • 6.3.2 STM32 power supply options
  • 6.3.3 Modification of STM32 voltage
  • 6.3.4 Supplying the 32F412GDISCOVERY through
  • 6.3.5 Programming/debugging when the power supply
  • 6.3.6 Measurement of current IDD drawn by the microcontroller
  • 6.4 Clock source
  • 6.4.1 HSE clock source
  • 6.4.2 LSE clock source
  • 6.5 Reserved use of solder bridges
  • 6.6 Reset source
  • 6.7 Boot options
  • 6.8 Audio codec
  • 6.8.1 Stereo headset and headphone jack
  • 6.8.2 Loudspeaker output
  • 6.9 Digital microphones

Datasheet sections

started quickly and develop applications easily. interface with capacitive touch panel. in-circuit debugger and programmer for the STM32.

  1. Pictures are not contractual.

Figure 1. 32F412GDISCOVERY (top view) Figure 2. 32F412GDISCOVERY (bottom view)

Appendix B Federal Communi cations Commission (FCC)

Table 11. I

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-enumeration capability: – Virtual COM port – Mass storage – Debug port
  • 1.54-inch, 240x240-pixel TFT color LCD with parallel interface
  • I 2S audio codec, with a stereo headset jack, including analog microphone input and a loudspeaker output
  • Stereo digital ST-MEMS microphones.
  • microSD™ card connector
  • I2C 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.

3 Product marking

these engineering sample tools as reference design or in production.

  • On the targeted STM32 that is soldered on the board (for illustration of STM32 marking, refer to the section "Package information" 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

5 Technology partner

  • 128-Mbit Quad-SPI NOR Flash memory device, part number N25Q128A

Table 1. Ordering information

6 Hardware layout and configuration

location of the main components on the discovery kit. Figure 3. Hardware block diagram

Figure 6. 32F412GDISCOVERY mechanical drawing

6.2 Embedded ST-LINK/V2-1

from STMicroelectronics, ST-LINK/V2-1 offers new features and drops some others.

  • USB software re-enumeration
  • Virtual COM port interface on USB
  • Mass storage interface on USB
  • USB power management request for more than 100 mA power on USB Feature dropped:
  • SWIM interface For all general information concerning debugging and programming features common between V2 and V2-1 versions, refer to ST-LINK/V2 in-circuit debugger/programmer for STM8 and STM32 User manual (UM1075) at the www.st.com website. 2 8 48 5 37 1 1 109 108 144 1 8 8 1 5 31 D A 2 26 50.8 172 5.08 22.86 65.68 59.35 4.06 23.79 67 48.26

6.2.1 Drivers

ST-LINK/V2-1 must be installed. It can be downloaded from the www.st.com website. update the driver of the connected device from the device manager (see Figure 7). Note: Prefer using the "USB Composite Device" handle for a full recovery. Figure 7. USB composite device

6.2.2 ST-LINK/V2-1 firmware upgrade

6.3 Power supply

6.3.1 Power supply 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 6.3.4: Supplying the 32F412GDISCOVERY through the ST-LINK/V2-1 USB port. A jumper should be placed in location STLK of JP3, connecting pins 3 and 4. The green LED LD6 is lighted on to confirm the presence of +5 V voltage.
  • 5 V DC from the user USB FS connector CN3. A jumper should be placed in location USB of JP3, connecting pins 5 and 6. The green LED LD6 is lighted on to confirm the presence of +5 V voltage.
  • 6 V to 9 V DC from VIN pin of Arduino Uno V3 compatible connector CN2. The voltage is limited to 9 V to keep the temperature of the regulator U3 within his thermal safe

UM2032 Hardware layout and configuration area. A jumper should be placed in location E5V of jumper JP3, connecting pin 1 to pin 2 of JP3. The green LED LD6 is lighted on to confirm the presence of +5 V voltage.

  • 5 V DC from +5 V pin of Arduino Uno V3 connector (CN2 pin 5) with limitations. The jumpers on JP3 and CN5 have to be removed, SB21 (NRST) and SB28 (SWO) have to be opened. In such configuration the ST-LINK/V2-1 MCU is not powered, as consequence the 8 MHz of the ST-LINK/V2-1 cannot be used as external input clock for the STM32. For details on JP3 jumper setting refer to Table 2: Power-supply-related jumper settings.

6.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 has to 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 has to be placed in 3.3 V to supply the STM32 with 3.3 V, then pins 1 and 2 of JP5 are connected. For details on JP5 jumper setting refer to Table 2: Power-supply-related jumper settings.

6.3.3 Modification of STM32 voltage

Regulator U16 LD1117STR is dedicated to the 2.0 V supply. The output voltage of U16 is by default 2.0 V but it is adjustable depending on the resistors R90 and R92 which are by default 120 and 68 ohms respectively. The output voltage is calculated as following: with VREF = 1.25 V. If necessary, resistors R90 and R92 can be changed to modify the STM32 supply voltage. R90 and R92 are easily located bottom side of the discovery kit near U16 (see Figure 5 and Figure 8). VOUT VREF 1 R92 () R90()÷+()×=

Figure 8. R90 and R92 resistors

6.3.4 Supplying the 32F 412GDISCOVERY through

connected with the 32F412GDISCOVERY Micro-B USB receptacle CN6, via a USB cable. another power source should be used like VIN pin of connector CN2. enumeration procedure result and passes the power unconditionally to the discovery kit. The green LED LD6 turns on whenever the discovery kit is powered.

6.3.5 Programming/debugging when the power supply

enumeration succeeds thanks to the external power source.

  1. Put a jumper in JP3 at location USB to use power from the user USB CN3 or at location

E5V to use power from VIN of Arduino Uno V3 connector CN2.

  1. Connect the corresponding external power source.
  2. Check that the green LED LD6 is turned ON
  3. Connect the PC to the ST-LINK/V2-1 USB connector CN6
  4. If more than 500 mA current is needed by the discovery kit, the PC may be damaged or
  5. 500 mA is requested at the enumeration. If the PC cannot provide such current there is

a risk that the request is rejected and the enumeration does not succeed.

6.3.6 Measurement of current ID D drawn by the microcontroller

JP7 and replace it by a multimeter (see Table 2). Table 2. Power-supply-related jumper settings 32F412GDISCOVERY is supplied through CN3 Micro-AB USB FS connector.

compatible connector CN2. Jumper in E5V place. STM32F412ZGT6 is supplied with a +3.3 V voltage (VDD_MCU). STM32F412ZGT6 STM32 is supplied with a +2.0 V voltage (VDD_MCU). as remainder supply pins of STM32. Table 2. Power-supply-related jumper settings (continued)

independently of the remainder of supply pins of STM32.

Hardware layout and configuration UM2032

6.4 Clock source

6.4.1 HSE 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 closed, resistors R45 and R46 are not soldered, solder bridge SB22 is open. The pins PH0 and PH1 are not available for the extension connector P2. Alternatively, the discovery kit offers the possibility to use a crystal to provide the 8 MHz HSE clock source of the STM32F412ZGT6 U7. In that case, PH0 and PH1 are used as OSC_IN and OSC_OUT respectively. The solder bridges SB20, SB22, SB16 must be opened, 0 ohm resistors should be soldered to R45 and R46 and a crystal must be soldered in place X2. Regarding component selection of X2, capacitors C19 and C21 (8.2 pF) are optimized for a crystal NDK NX3225GD 8 MHz EXS00A-CG04874 and they are not fitted. The pins PH0 and PH1 are not available for the extension connector P2.

6.4.2 LSE clock source

By default, the 32.768 kHz crystal X3 is connected to pins PC14-OSC32_IN and PC15- OSC32_OUT of STM32F412ZGT6 for the RTC clock. Solder bridges SB25 and SB23 must be open. If LSE clock is not used, it is possible to use PC14-OSC32_IN and PC15-OSC32_OUT of STM32F412ZGT6 and to access by the extension connector P2. In that case, solder bridges SB25 and SB23 must be closed and resistors R54, R56 removed.

6.5 Reserved use of solder bridges

The following solder bridges must not be changed otherwise the microcontroller STM32F412ZGT6 U7 or other parts of the discovery kit may be damaged:

  • Solder bridges must be left closed: SB34, SB26
  • Solder bridges must be left open: SB27, SB35

6.6 Reset source

The reset signal of 32F412GDISCOVERY discovery kit is low active and the reset sources include:

  • Reset button B1, providing solder bridge SB1 is closed (default setting)
  • Embedded ST-LINK/V2-1, providing solder bridge SB21 is closed (default setting)
  • Arduino Uno V3 compatible connector CN2 pin 3
  • Extension connector P1 pin 6

6.7 Boot options

  • User Flash memory (non-protected)
  • System Flash memory (protected) for In Circuit Programming
  • RAM for debugging BOOT0 is set by the input pin BOOT0 of the STM32F412ZGT6. Its level is set by default to 0 by closing the solder bridge SB31 and keeping R69 unfitted. BOOT1 is shared with the GPIO PB2 used as QSPI_CLK and is sampled by the STM32F412ZGT6 only at RESET phase. At start-up, BOOT1 level depends on the resistors R104 and R100. By default R100 and R104 are not fitted on the discovery kit to avoid any influence on the QSPI_CLK signal using same pin as BOOT1. The application note “STM32 microcontroller system memory boot mode” Application note (AN2606) details the bootloader mechanism and configurations. Boot-related solder bridge and resistor settings are reported in Table 4:

Table 3. Boot options

0 X User Flash

11 R A M

Table 4. Boot-related solder bridge and resistor settings Microcontroller STM32F412ZGT6 boots from user Flash.

  1. To keep Quad-SPI functionality after boot-up phase, the user should select a resistor value of R100 or

R104 insuring a weak pull-down or weak pull-up respectively. Microcontroller STM32F412ZGT6 boots from system Flash. Microcontroller STM32F412ZGT6 from RAM.

Hardware layout and configuration UM2032

6.8 Audio codec

A Cirrus/Wolfson codec WM8994 U15 connected to the I2S3 interface of the microcontroller STM32F412ZGT6 offers possibility to connect a stereo headphone or headset with a mono- analog microphone. A loudspeaker can be connected to the extension connector. The digital audio output from the microcontroller is handled by the port of the microcontroller PB5 called CODEC_I2S3_SD while the other direction is handled by port PB4 called CODEC_I2S3ext_SD. The I²C-bus address of WM8994 is 0b0011010.

6.8.1 Stereo headset and headphone jack

A stereo headphone or a stereo headset with analog microphone can be plugged into the 3.5 mm standard jack socket CN9. The stereo digital audio streamed from pin PB5 of the microcontroller STM32F412ZGT6 is transformed in a stereo analog output by the codec WM8994 and is delivered to the headphone or headset through the pins 6 and 4 of the jack socket CN9. If a headset is plugged into CN9, the bias of the microphone is driven by the output MICBIAS1 of the codec and the analog audio enters into the codec by the pin IN1LN. The corresponding digital audio output from the codec is connected to the microcontroller STM32F412ZGT6 by the port PB4.

6.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 WM8994 codec loudspeaker outputs SPKOUTRN and SPKOUTRP in linear mode called "class AB". This mode is compatible with 4-ohm to 8-ohm impedance loudspeakers. Use of the switching mode called "class D" requires to use an appropriate filter to maximize rejection of unwanted frequencies and efficiency. To select the mode "class AB" of the codec WM8994, set to 1 the bit 8 of the register 0x23.

6.9 Digital microphones

Two ST-MEMS MP34DT01TR digital microphones U4 and U5 are available on the 32F412GDISCOVERY discovery kit. The two microphones are located at a distance of 21 mm each other. The microphones are connected to the DFSDM of the STM32 by the port PC2 generating the clock and by the port PB1 collecting the PDM interleaved data.

6.10 USB OTG FS

A USB OTG full-speed communication is available at USB Micro-AB receptacle connector CN3. Limitations: the USB-related operating supply voltage of STM32L412ZGT6 (VDD_USB line) must be within the range from 3.0 V to 3.6 V. Therefore, in case the STM32F412ZGT6 is supplied with 2 V by JP5 set in +2 V position, the USB of the STM32 works only if the VDD_USB power pin is supplied independently by +3.3V. This is done by closing pins 2 and 3 of the jumper JP6 (refer to Table 2: Power-supply-related jumper settings).

UM2032 Hardware layout and configuration 6.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 VBUS and LD6 PWR light on to confirm the 5 V presence. 6.10.2 32F412GDISCOVERY is USB host When the 32F412GDISCOVERY is USB host it supplies the 5V for the USB peripheral using one of the following sources:

  • ST-LINK/V2-1 USB Micro-B connector CN6, putting a jumper in STLK location of JP3
  • An external +5 V source connected to pins 3 or 4 of the extension connector P2, with no jumper in JP3.
  • An external +5V source connected to 5 V pin of Arduino Uno V3 connector CN2, with no jumper in JP3.
  • An external source between +7 to +11 V connected to VIN pin of Arduino Uno V3 connector CN2, putting a jumper in E5V location of JP3. The green LED LD6 is lighted to confirm the presence of the +5 V source. The power switch STMPS2141STR is controlled by the port PG8 of STM32 to deliver the 5 V power to the USB device connected to the USB connector CN3. It is recommended to use PG8 in open drain mode. When PG8 is closed to ground, the power switch is closed, and the green LED LD7 confirms the 5 V to the USB Device. The red LED LD8 FAULT is lit when an overcurrent occurs. For more details refer to Section 6.3: Power supply. 6.11 microSD card microSD cards with a capacity of 4 Gbytes or more can be inserted in the receptacle CN13. The four bits of the SDIO interface including CLK and CMD signals of the STM32F412ZGT6 are used to communicate with the microSD card. The card detection is read by the GPIO PD3: when a microSD card is inserted, the logic level is 0, otherwise it is 1. Note that port PC9 used as uSD_D1 can be routed also to the pin 46 of the extension connector P2, by closing the solder bridge SB43 for other usage like the alternate function MCO2. Therefore the use of the microSD card is exclusive with MCO2 output. Limitations: The microSD card is not working when the STM32 is supplied with 2V.

6.12 I 2C extension connector

The I2C2 bus is available on the I2C extension connector CN10. I2C2-SDA (port PB9) is available on pin 1 and I2C2-SCL is available on pin 3. Pins 5 and 7 of CN10 are the VDD and GND supplying the microcontroller. I2C2 voltage levels follows also VDD.

6.13 Quad-SPI NOR Flash memory

connected to the Quad-SPI interface of the STM32F412ZGT6 microcontroller. Limitations: The Quad-SPI memory is not working when the STM32 is supplied with 2 V.

6.14 Virtual COM port

ST-LINK/V2-1. The USB connector is CN6.

6.15 Arduino Uno V3 connectors

Caution: The IOs of STM32 microcontroller are 3.3 V compatible instead of 5 V for Arduino Uno V3. Table 5. Arduino Uno V3 compatible connectors

3 NRST NRST Reset TIM3_CH2,

and SB6, and close SB7 and SB5.

6 GND - Ground - PG10 D8 1

7 GND - Ground - - - -

1 A0 PA1 ADC1_IN1 TIM5_CH4 PF10 D5 6

2 A1 PC1 ADC1_IN11 - PG12 D4 5

3 A2 PC3 ADC1_IN13 TIM5_CH2 PF4 D3 4

4 A3 PC4 ADC1_IN14 - PG13 D2 3

Table 5. Arduino Uno V3 compatible connectors (continued)

6.16 Extension conn ectors P1 and P2

The extension connectors consist in male pin headers P1 and P2 (not soldered by default).

  • SPI
  • I2C with SMBA and FM+ (1 MHz speed)
  • Full USART (Rx, Tx, RTS, CTS)
  • CAN
  • ADC inputs
  • TIMERs channels
  • I2S full duplex with SD and extSD alternate functions.
  • DFSDM input for stereo PDM digital microphones Most of the ports connected to the extension connectors P1 and P2 are the same for the 32F401CDISCOVERY and 32F411EDISCOVERY discovery kits, to maximize the compatibility with the previous designs. In Table 6, Table 7 and in the 32F412GDISCOVERY schematics (see Section Appendix A: Schematics), the pin numbers corresponding to these ports, are annotated with the star symbol: “*”. In Table 6, Table 7 and in the 32F412GDISCOVERY schematics (see Section Appendix A: Schematics) 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 7).

Table 6. Pin assignment for the extension connector P1

3 VDD_MCU * 4 VDD_MCU *

5 GND * 6 NRST *

7 PC1 *A 8 PC0 *

11 PA1 *A 12 - -

13 PA3 *V 14 PA2 *V

15 PA5 *A 16 PA4 *C

17 PA7 *A 18 PA6 *A

19 PC5 *A 20 PC4 *A

21 PB1 *D 22 PB0 *A

23 GND * 24 PF2 -

25 PF3 A 26 - -

27 PF10 A 28 PF11 -

31 PG2 C 32 - -

33 PG9 A 34 PB10 *A

37 PB13 * 38 PB14 *

39 PB15 * 40 - -

45 PD13 * 46 - -

49 GND * 50 GND *

Table 7. Pin assignment for the extension connector P2

9 PC14 * 10 PC15 *

11 PE6 * 12 PC13 *

13 PE4 * 14 PE5 *

15 PE2 * 16 PE3 *

17 PE0 * 18 PE1 *

19 PB8 *A 20 PB9 *A

21 BOOT0 * 22 VDD_MCU *

23 PB6 *TC 24 PB7 *TC

25 PB4 *C 26 PB5 *C

31 PG10 A 32 PG11 A

33 PG12 A 34 PG13 A

35 PG14 A 36 SPKOUTRN -

39 PA14 * 40 PA15 *A

Table 6. Pin assignment for the extension connector P1 (continued)

32F411EDISCOVERY discovery kits. capacitive touch panel, S: shared with microSD.

6.17 LCD display, backlight and touch panel

6.17.1 LCD display

STM32F412ZGT6 by the connector CN15 (see Table 8). set to high.To use the LCD in 8-bit mode, SB41 must be closed and SB42 opened. (Flexible Static Memory Controller) is used to select data/command access to the LCD. the refresh of the LCD memory done by the microcontroller with the LCD scan. The port PD11 of the STM32F412ZGT6 controls the reset of the LCD display LCD_RESET.

41 PA10 * 42 PA13 *

43 PA8 *D 44 - -

47 PC6 * 48 PC7 *C

Table 7. Pin assignment for the extension connector P2 (continued) Table 8. Pin assignment for connector CN15

1 GND Ground GND

2 LCD_TE Tearing Effect output pin to send an interrupt to STM32 PG4

3 D15 Data connected to FMC PD10

4 D14 Data connected to FMC PD9

5 D13 Data connected to FMC PD8

6.17.2 LCD signal access (CN7)

header CN7 gives an easy access to the FMC signals of the LCD (see Table 9).

6 D12 Data connected to FMC PE15

7 D11 Data connected to FMC PE14

8 D10 Data connected to FMC PE13

9 D9 Data connected to FMC PE12

10 D8 Data connected to FMC PE11

11 D7 Data connected to FMC PE10

12 D6 Data connected to FMC PE9

13 D5 Data connected to FMC PE8

14 D4 Data connected to FMC PE7

15 D3 Data connected to FMC PD1

16 D2 Data connected to FMC PD0

17 D1 Data connected to FMC PD15

18 D0 Data connected to FMC PD14

21 RS Data/Command select connected to A0 PF0

23 RESET LCD RESET PD11

24 IM 8-bit (low)/16-bit (high) mode selection pin n/a

25 IOVCC LCD I/Os power supply connected to VDD n/a

27 GND Ground GND

28 LEDA Anode of backlight LED n/a

29 LEDK Cathode of backlight LED n/a

Table 8. Pin assignment for connector CN15 (continued) Table 9. Pin assignment for connector CN7

1 A0 2 LCD_BLCTRL

5 FMC_NE1 6 FMC_NOE

6.17.3 Backlight

switching-mode-boost converter, supplied by the +5 V rail of the discovery kit.

6.17.4 Touch panel

6.18 Joystick and LEDs

light a LED a low-logic state 0 must be written in the corresponding GPIO. Table 10 gives the assignment of control ports to the LED indicators.

11 D3 12 VDD

13 LCD_TE 14 LCD_RESET

15 D4 16 D5

17 D6 18 D7

19 D8 20 D9

21 D10 22 D11

23 D12 24 D13

25 D14 26 D15

Table 9. Pin assignment for connector CN7 (continued)

Table 10. Port assignment to the LED indicators

7 Connectors

7.1 I 2C extension connector CN10

Figure 9. I2C extension connector CN10 (front view)

7.2 USB OTG FS Micro-AB connector CN3

Figure 10. USB OTG FS Micro-AB connector CN3 (front view) Table 11. I2C extension connector pinout CN10

1 I2C1_SDA (PB9) 5 VDD

3 I2C1_SCL (PB10) 7 GND

4 EXT_RESET (PF11) 8 NC

Table 12. USB OTG FS Micro-AB connector CN3

1 VBUS (PA9) 4 ID (PA10)

2 DM (PA11) 5 GND

3 DP (PA12) - -

Figure 11. microSD connector CN13 (front view)

7.4 ST-LINK/V2-1 USB Micro-B connector CN6

Figure 12. USB Micro-B connector CN6 (front view) Table 13. microSD connector CN13

1 SDIO_D2 (PC10) 6 GND

2 SDIO_D3 (PC11) 7 SDIO_D0 (PC8)

3 SDIO_CMD (PD2) 8 SDIO_D1 (PC9)

5 SDIO_CLK (PC12) 10 MicroSDcard_detect (PD3)

Table 14. USB Micro-B connector CN6

1 VBUS (power) 4 GND

2 DM 5,6 Shield

This section provides the design schematics for the 32F412GDISCOVERY discovery kit, to help users to implement these features in application designs. This section includes:

  • Overall schematics for the 32F412GDISCOVERY, see Figure 13
  • STM32 connections, see Figure 14
  • Power supply, see Figure 15
  • LCD, camera and connector, see Figure 16
  • Quad-SPI, see Figure 17
  • Audio amplifier, see Figure 18
  • Peripherals, see Figure 19
  • USB OTG FS, see Figure 20
  • Extension connectors, see Figure 21
  • Arduino Uno V3 connector, see Figure 22
  • ST-LINK/V2-1, see Figure 23

Title: Size: Reference: Date: Sheet: of STM32F412G-DISCOProject: uSD_D0 uSD_D1 uSD_D2 uSD_D3 uSD_CLK uSD_CMD D[0..15] NRST QSPI_BK1_IO3 FMC_NOE FMC_NWE LED3 LED4 QSPI_BK1_IO2 QSPI_BK1_IO0 QSPI_BK1_IO1 uSD_Detect USB_OTGFS_VBUS USB_OTGFS_ID USB_OTGFS_DM DFSDM_DATIN0 QSPI_CLK DFSDM_CKOUT FMC_NE1 LCD_RESET LED1 LED2 JOY_RIGHT JOY_LEFT JOY_UP JOY_DOWN QSPI_BK1_NCS USB_OTGFS_OVRCR USB_OTGFS_PPWR_EN SWO SWDIO SWCLK USART2_TX USART2_RX EXT_RESET PH0 PH1 STLK_MCO JOY_SEL CODEC_INT LCD_TE LCD_BLCTRL PC0 PC2 PD12 PC1 PC3 PD13 PE6 PE4 PE2 PE0 PE1 PE5 PE3 PD6 PA4 PA6 PA2 PA1 PA7 PA5 PA3 PA14 PA10 PA8 PA13 PA15 PB10 PB12 PB14 PB11 PB13 PB15 PB8 PB6 PB4 PB7 PB5 PB3 PB9 PC4 PC5 PC14 PC6 PC15 PC7 PB1 PB0 PF2 PF3 PF10 PF11 PF13 PG2 PG9 PG10 PG11 PG12 PG13 PG14 I2C2_SDA I2C2_SCL USB_OTGFS_DP PC13 BOOT0 DFSDM_DATIN3 I2C1_SCL I2C1_SDA CODEC_I2S3_WS CODEC_I2S3_SCK CODEC_I2S3_SD CODEC_I2S3_MCK CODEC_I2S3ext_SD CTP_INT ARD_D3 CTP_RST ARD_D5 ARD_D4 ARD_A0 ARD_D2 ARD_D1 ARD_D0 ARD_D8 ARD_D7 ARD_A1 ARD_A2 ARD_A3 ARD_A4 ARD_D12 ARD_D13 ARD_D11 ARD_D10 ARD_A5 ARD_D15 ARD_D14 ARD_D9 ARD_D6 PC9 U_MCU2 MCU2.SchDoc PC0 PC2 PA4 PA6 PC4 PB0 PB10 PB12 PB14 PD12 PC1 PC3 PA1 PA7 PC5 PB1 PA5 PB11 PB13 PB15 PD13 PH1 PC15 PC13 PE1 PB7 PB5 PB3 PE5 PE3 PB9 PD6 PA13 PA15 PC7 PH0 PC14 PE6 PE4 PE2 PE0 PB8 PB6 PA14 PA10 PA8 PB4 PC6 PA2 PA3 PF2 PF3 PF10 PF11 PF13 PG2 PG9 PG10 PG11 PG12 PG13 PG14 SPKOUTRN SPKOUTRPBOOT0 NRST PC9 U_Extension_connectors Extension_connectors.SchDoc CODEC_INT DFSDM_DATIN0 DFSDM_CKOUT SPKOUTRN SPKOUTRP DFSDM_DATIN3 CODEC_I2S3_SCK CODEC_I2S3_WS CODEC_I2S3_SD I2C1_SCL CODEC_I2S3_MCK I2C1_SDA CODEC_I2S3ext_SD U_Audio Audio.SchDoc NRST ARD_A0 ARD_A1 ARD_A2 ARD_A3 ARD_A4 ARD_A5 ARD_D5 ARD_D4 ARD_D3 ARD_D2 ARD_D1 ARD_D0 ARD_D13 ARD_D12 ARD_D11 ARD_D10 ARD_D9 ARD_D8 ARD_D6 ARD_D7 ARD_D15 ARD_D14 U_Arduino_ Connectors Arduino_ Connectors.SchDoc LCD_RESET FMC_NWE FMC_NOE FMC_NE1 LCD_TE LCD_BLCTRL LCD_D[0..15] I2C1_SDA I2C1_SCL CTP_INT CTP_RST U_LCD LCD.SchDoc uSD_CLK uSD_CMD uSD_D0 uSD_D1 uSD_D2 uSD_D3 uSD_Detect EXT_RESET LED1 LED2 LED3 LED4 NRST I2C2_SDA I2C2_SCL JOY_SEL JOY_DOWN JOY_LEFT JOY_RIGHT JOY_UP U_Peripherals Peripherals.SchDoc QSPI_BK1_IO0 QSPI_BK1_IO2 QSPI_BK1_IO1 QSPI_BK1_IO3 QSPI_CLK QSPI_BK1_NCS U_QSPI QSPI.SchDoc USB_OTGFS_VBUS USB_OTGFS_DM USB_OTGFS_DP USB_OTGFS_ID USB_OTGFS_OVRCR USB_OTGFS_PPWR_EN U_USB_OTG_FS USB_OTG_FS.SchDoc U_Power Power.SchDoc STLK_MCO NRST SWCLK SWDIO SWO USART2_TX USART2_RX U_ST_LINK_V2-1_2 ST_LINK_V2-1_2.SCHDOC i FMCMatched Net Lengths [Tolerance = 200mil] Impedance Constraint [Min = 40.00 Max = 60.00 ] i FMC i FMC i FMC i FMC i FMC i QSPI Matched Net Lengths [Tolerance = 100mil] i QSPI i QSPI i QSPI i QSPI i QSPI Note: Text in italic placed on a wire is not the net name. It just helps to identify rapidly MCU IO related to this wire. rev D-01 modifications: Silkscreen: - update revision of board to D top side and bottom side. - name of pin32 of connector P1 is NC - bottom side update the LCD reference: LCD ref: FRD154BP2902-CTP Schematic: - R69-2 connected to VDD - updated CTP connector CN14: pin8 is now IOVCC - added SB44, SB45, C87 connected to CN14 pin8 - remove ZZ2 because LCD and CTP are now same part - updated reference of LCD ZZ1: FRD154BP2902-CTP ( now LCD+CTP) - added comment: CTP working with VDD_MCU from 1.8 to 3.6V - added R105 100K to insure CTP INT is low at power-on. - removed R11 pin26 of U6 STLINK, corrected name of power +3V3_ST_LINK - SB32 set: open by default rev D-02 modifications: - connected CN7 pin2 to PF5 - added two pull-up resistors to Reset of CTP one to VDD, second one to +3V3. Not populated.

Figure 14. 32F412GDISCOVERY MCU

Title: Size: Reference: Date: Sheet: of STM32F412G-DISCOProject: E5V +5V 1 2 PWR LD6 Green 10uF 100nF +5V +3V3 E5V U5V_ST_LINK Vin3 Vout 2 Tab 4 U16 LD1117STR C55 10uF +2V+3V3 VDD_MCU 820 VIN 10uF(25V) 10uF Vin3 Vout 2 Tab 4 LD1117S50TR Arduino power pin U5V 1 2 3 4 5 6 JP3 Header 3X2 10uF GND JP2 SB4 Closed by default Open solder bridge if Discovery is supplied from +3V3 of extension connector 3 JP5 VDD_USB33 JP6 +3V3 Vin3 Vout 2 Tab 4 LD1117S33TR Jumper to measure IDD of the MCU 1 2 JP7 VDD VDD= supply of peripherals VDD_MCU= supply of MCU pins VDD only GND JP8 GND JP9 GND JP1 VDD_MCU IDD VDD_USB Voltage selection VDD_USB source selection R92 R90 120 C84 10uF VOUT = VREF (1 + R92 / R90) VOUT = +2V +/- 50mV using R90=120ohms and R92=68ohms and 5% tol

Figure 16. 32F412GDISCOVERY LCD *: standard orientation. Rotations by 90, 180, 270 degrees possible by registers.

Title: Size: Reference: Date: Sheet: of STM32F412G-DISCOProject: QSPI_BK1_IO0 QSPI_BK1_IO2 QSPI_BK1_IO1 PF9 PF7 PF6 PB2 PG6 PF8QSPI_BK1_IO3 VDD QSPI_CLK QSPI_BK1_NCS R72 10K DQ3/HOLD#7 VCC 8S#1 DQ12 DQ05 VSS 4DQ2/Vpp/W#3 DQ3/HOLD# VCCS# DQ1 C DQ0 VSS DQ2/Vpp/W# U12 MICRON N25Q128A13EF840F QSPI_BK1_IO0 QSPI_BK1_IO1 QSPI_BK1_IO2 QSPI_BK1_IO3 QSPI_BK1_NCS QSPI_CLK Exposed central pad should not be connected to any voltage on PCB VDD C37 100nF QSPI_CLK TP3 QSPI_BK1_IO0 TP2 QSPI_BK1_IO1 TP1 R100 [N/A] R104 [N/A] VDD R100 and R104:pull-up and pull-down to set PB2 in BOOT1 alternate function

Figure 18. 32F412GDISCOVERY Audio

3 CN9

Title: Size: Reference: Date: Sheet: of STM32F412G-DISCOProject: MICRO SD uSD_CLK uSD_CMD SMS064FF or SMS128FF SW2 9 SW1 10 CN13 PJS008-2000 uSD_D0 uSD_D1 uSD_D2 uSD_D3 uSD_Detect R64 PC8 PC9 PC10 PC11 PC12 PD2 (TF) Card R119 47K R115 47K R113 47K R118 47K R117 47K Reset Button 1 2 3 4 5 6 7 8 CN10 F206A-2*04MGF-A PB9 PB10 EXT_RESETPF11 SSM-104-L-DH (Samtec) I2C Extension Connector 1 2 LD3 Red 1 2 LD2 Orange 1 2 LD4 Blue 1 2 LD1 Green +3V3 510 680 680 680 LEDs LED1 LED2 LED3 LED4 4 3 TD-0341 [RESET/Black]C1 100nF 100K NRST PE0 SB1 Closed by default PE1 PE2 PE3 The 4 LEDs are top side PD3 I2C2_SDA I2C2_SCL R24 [N/A] R28 [N/A] R22 [N/A] R26 [N/A] R30 [N/A] VDD R23 100 JOY_SEL JOY_DOWN JOY_LEFT JOY_RIGHT JOY_UP JOYSTICK PF14 PF15 PG0 PG1 VDDVDD VDD VDD PA0 - WKUP1 Right side Left side COMMON 5 Selection 2 DOWN 3 LEFT 1 RIGHT 4 UP 6 MT008-A

Figure 20. 32F412GDISCOVERY USB OTG FS

Title: Size: Reference: Date: Sheet: of STM32F412G-DISCOProject: NRST VDD_MCU 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 Header 25X2 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 Header 25X2 PE5 PE6 PA1 PA5 PA6PA7 PA8 PA15 PB1 PB8 PB9 PB10 PB13 PB14 PB15 PB0 PC1 PC3 PC4PC5 PC14 PC15 PC0 PD6 PD12 PD13 PH1PH0 VDD_MCU VDD_MCU +3V3+3V3 PB11 MCO_1 PE2 PE3 PE4 PC13 PA4 PB12 PC6 PC7 PA10 PA13 PA14 PB3 PB5 PB7 PB4 PB6 PE0 PE1 SPI4_MISO/SPI5_MISO/TIM9_CH1 SPI4_MOSI/I2S4_SD/SPI5_MOSI/I2S5_SD/TIM9_CH2 I2C2_SMBA TIM5_CH1 SPI_2_MOSI/I2S2_SD/I2C_4_SCL/TIM_1_CH3N/TIM8_CH3N/TIM12_CH2/RTC_50Hz I2C4_SMBA/USART3_RX/ADC1_15 TIM5_CH4 SPI2_MOSI/I2S2_SD/ADC1_13 ADC1_11/WKUP3 SPI4_MOSI/I2S4_SD/USART2_RTS/ADC1_1/TIM2_CH2/TIM5_CH2 ADC1_10/WKUP2 USART3_RTS/TIM4_CH1/I2C4_SCL DFSDM_clocking/I2S2_CKIN/I2C2_SDA SPI2_SCK/I2S2_CK/I2S3_MCK/I2C2_SCL/I2C4_SCL/USART3_TX/TIM2_CH3 SPI_2_MISO//I2S2ext_SD/I2C_4_SDA/USART_3_RTS/TIM_1_CH2N_8_CH2N_12_CH1SPI2_SCK/I2S2_CK/SPI4_SCK/I2S4_CK/USART3_CTS/CAN2_TX/TIM1_CH1N SPI5_NSS/I2S5_WS/ADC1_9/TIM1_CH3N/TIM3_CH4TIM/8_CH3N/DFSDM_DATIN0 I2C4_SDA/TIM4_CH2 SPI5_MOSI/I2S5_SD/I2C1_SCL/I2C3_SDA/CAN1_RX/TIM4_CH3/TIM10_CH1 SPI3_MOSI/3_SD/USART2_RX SPI1_NSS/1_WS/USART1_TX/TIM2_CH1/2_ETR I2S2_MCK/I2C4_SCL/USART6_TX/TIM3_CH1/TIM8_CH1 I2S1_MCK/ADC1_14 SPI2_NSS/I2S2_WS/I2C1_SDA/I2C2_SDA/CAN1_TX/TIM4_CH4/TIM11_CH1BOOT0 SPI1_MOSI/I2S1_SD/ADC1_7/TIM1_CH1N/TIM3_CH2/TIM8_CH1N/TIM14_CH1 SPI1_MISO//ADC1_6/TIM3_CH1/TIM13_CH1 SPI1_NSS/I2S1_WS/SPI3_NSS/I2S3_WS/ADC1_4SPI1_SCK/I2S1_CK/ADC1_5/TIM2_CH1/2_ETR/TIM8_CH1N SPI5_SCK/I2S5_CK/ADC1_8/TIM1_CH2N/TIM3_CH3/TIM8_CH2N TAMP1 USART6_RX CAN2_RX USART6_RTS/CAN2_TX USART6_CTS USART6_TX Alternate functions available: SPI1, SPI2, SPI4 I2C1, I2C2 with SMBA , I2C4 FM+ 1MHz with SMBA USART3 Rx,Tx,Cts,Rts, USART6 Rx,Tx,Cts,Rts CAN1, CAN2

14 ADC inputs

15 Timer channels I2S2 full duplex with SD and extSD DFSDM input for stereo PDM microphones (right side) (left side) shared with LED3 shared with LED4 shared with LSE crystal shared with LSE crystal shared with HSE crystal A A A A CA AA AA AD PC2 *D SPI2_MISO/I2Sext_SD/DFSDM-CKOUT/ADC1_12 shared with EXT_RESET A DC C C Dshared with USB_OTGFS_ID JTMS-SWDIO JTCK-SWCLK A A A AA AA A JTDO-SWO CC CC AAshared with LED1 shared with LED2 NRST PC0 PC2 PA4 PA6 PC4 PB0 PB10 PB12 PB14 PD12 PC1 PC3 PA1 PA7 PC5 PB1 PA5 PB11 PB13 PB15 PD13 PH1 PC15 PC13 PE1 PB7 PB5 PB3 PE5 PE3 PB9 PD6 PA13 PA15 PC7 PH0 PC14 PE6 PE4 PE2 PE0 PB8 BOOT0 PB6 PA14 PA10 PA8 PB4 PC6 PA2PA3 ** I2S2_CKIN/USART2_TX/ADC1_2/TIM2_CH3/TIM5_CH3/TIM9_CH1I2S2_MCK/USART2_RX/ADC1_3/TIM2_CH4/TIM5_CH4/TIM9_CH2 SPI2_NSS/I2S2_WS/SPI3_SCK/I2S3_CK/SPI4_NSS/I2S4_WS/I2C2_SMBA/USART2_RX PA2PA3 * : pin compatible with STM32F401-DISCO and STM32F411-DISCO A : shared with Arduino connectors C : shared with CODEC D : shared with Digital microphones PF2 PF3 PF10 PF11 PG2 PG9 PG10 PG11 PG12 PG13 PG14 SPKOUTRN SPKOUTRP PF2 PF3 PF10 PF11 PG2 PG9 PG10 PG11 PG12 PG13 PG14 SPKOUTRN SPKOUTRP +5V+5V Not Fitted Not Fitted PF13PF13 I2C4_SMBA V : shared with Virtual Com Port VV T : shared with Capacitive Touch Panel I2C1_SCL shared with Codec and CTP I2C1_SDA shared with Codec and CTPTT PC9 MCO_2/I2S2_CKIN/I2C3_SDA /TIM3_CH4 /TIM8_CH4*S S : shared with MicroSD

Figure 22. 32F412GDISCOVERY Arduino Uno V3 connector

Title: Size: Reference: Date: Sheet: of STM32F412G-DISCOProject: STM_RST T_JTCK T_JTCK T_JTDO T_JTDI T_JTMS OSC_IN OSC_OUT T_NRST AIN_1 USB ST-LINK COM Board Ident: PC13=0 T_SWDIO_IN LED_STLINK MCO STLINK_RX STLINK_TX T_SWO R85 1K5 R40 0 R39 0 R37 [N/A] R44 100K R36 10K R103 4K7 R102 4K7 C14 10pF C16 10pF C18 100nF USB_RENUMn USB_RENUMn +3V3_ST_LINK +3V3_ST_LINK +3V3_ST_LINK PWR_EXT BAT60JFILM C24 1uF C86 10nF C34 1uF GND BYPASS INH Vin Vout U9 LD3985M33R C25 100nF C35 100nF +3V3_ST_LINK R42 10K R81 36K R83 100 +3V3_ST_LINK E5V R48 100K BAT60JFILM Power Switch to supply +5V from STLINK USB PWR_ENn C56 100nF C61 100nF C62 100nF C67 100nF +3V3_ST_LINK 9013-SOT23 VUSB_ST_LINK VUSB_ST_LINK VUSB_ST_LINK VDD LED_STLINK 100 100 +3V3_ST_LINK STM_JTMS STM_JTCK BAT60JFILM T_JRST STL_USB_DM STL_USB_DP STL_USB_DM STL_USB_DP R32 100K R34 2K7 R33 4K7 +5V CUR_SEL IN1 IN2 ON3 GND 4 SET 5 OUT 6 OUT 7 FAULT8 ST890CDR VUSB_ST_LINK U5V_ST_LINK R51 10K R62 2K7 C32 100nF BAT60JFILM +3V3_ST_LINK VBAT1 PC132 PC143 PC154 OSC_IN5 OSC_OUT6 /RST7 VSSA8 VDDA9 PA010 PA111 U2_TX12 U2_RX13 U2_CK14 S1_CK15 S1_MISO16 S1_MOSI17 PB0 18 PB1 19 PB2/BOOT120 PB10 21 VSS_123 VDD_124 PB12 25 PB11 22 S2_CK 26S2_MISO 27S2_MOSI 28PA8 29PA9 30PA10 31PA11 32PA12 33JTMS 34VSS_2 35VDD_2 36 JTCK37 JTDI38 JTDO39 JNRST40 PB541 PB642 PB743 BOOT044 PB845 PB946 VSS_347 VDD_348 STLINK U5V output current limitation : 500mA SB19 Open by default R89 100K R101 [N/A] +3V3_ST_LINK USB Virtual ComPort Not Fitted STLK_MCO C69 [N/A] MCO SB18 Open by default Jumpers ON --> DISCOVERY Selected Jumpers OFF and Solder bridge on T_SWO removed --> ST-LINK Selected T_JTCK T_JTMS SWD to MCU 4CN5 SB14 SB13 SB11 SB12 SB10 SB9 SB2 Closed by default SB3 Open by default STM_JTMS STM_JTCK SWD RESERVED DEFAULT R25 R19 TCK/SWCLK TMS/SWDIO R27 10K CN4 Header 6 AIN_1 T_NRST T_SWO NRST R15 22R11 [N/A] SB21 Closed by default SB28 Closed by default T_NRST SWO_MCU BAT60JFILM R29 [N/A] SWCLKPA14 SWDIOPA13 SWOPB3 R35 [N/A] Red _Green 2 1 3 4 LD5 HSMF-A201-A00J1 T_JTDO T_JTMS C29 100nF C36 100nF VccA1 A12 A23 GND4 DIR 5B2 6B1 7VccB 8 U11 SN74LVC2T45DCUT VDD T_SWO +3V3_ST_LINK SWO_MCU SB24 Closed by default VCCA1 A12 A23 GND4 DIR 5B2 6B1 7VCCB 8 U10 SN74LVC2T45DCUT VDD VDD C28 100nF C27 100nF R59 100K R58 100K +3V3_ST_LINK R61

12 JP4

[N/A] +3V3_ST_LINK R49 USART2_TX USART2_RX PA2 PA3 1 2 NX3225GD-8.00M transistor pins numbers follow SOT23 JEDEC standard, R53 1 2 FAULT LD10 Red R60 820 VBUS 1 DM 2 DP 3 ID 4 GND 5 Shield 6 USB_Micro-B receptacle Shield 7 Shield 8 Shield 9 EXP 10 EXP 11 CN6 1050170001 STLINK power supply Text To use the Discovery as programmer of an external STM32: - Insure the STM32 to programm on an external board is supplied with 3.3V ONLY! - Remove the two jumpers on CN5 to left pins 1, 2, 3, 4 open - Connect following pins of CN4 to the STM32 to programm: pin2 to SWCLK, pin3 to GND, pin4 to SWDIO, pin5 to RESET. +3V3_ST_LINK

UM2032 Federal Communications Commission (FCC) and Industry Canada (IC) Compliance Appendix B Federal Communications Commission (FCC) and Industry Canada (IC) Compliance Statements B.1 FCC Compliance Statement B.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. B.1.2 Part 15.105 This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment. This equipment generates, uses, and can radiate radio frequency energy and, if not installed and used in accordance with the instruction manual, may cause harmful interference to radio communications. Operation of this equipment in a residential area is likely to cause harmful interference in which case the user will be required to correct the interference at his own expense. B.1.3 Part 15.21 Any changes or modifications to this equipment not expressly approved by STMicroelectronics may cause harmful interference and void the user's authority to operate this equipment. B.2 IC Compliance Statement B.2.1 Compliance Statement Industry Canada ICES-003 Compliance Label: CAN ICES-3 (A)/NMB-3(A) B.2.2 Déclaration de conformité Étiquette de conformité à la NMB-003 d'Industrie Canada : CAN ICES-3 (A)/NMB-3(A)

C.1 Warning Warning: This device is compliant with Class A of CISPR 32. In a residential environment, this equipment may cause radio interference.

Revision history

Table 15. Document revision history 28-Jul-2016 1 Initial version. Section Appendix C: CISPR32.