background image

UM2032 Rev 3

21/40

UM2032

Hardware layout and configuration

39

5.7 Boot 

options

After reset, the STM32F412ZGT6 boots from the following embedded memory locations 
depending on bits BOOT0 and BOOT1 (see 

Table 5

):

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 6

:

          

Table 5. Boot options 

BOOT0

BOOT1

Boot Memory 

0

X

User Flash

1

0

System Flash

1

1

RAM

Table 6. Boot-related solder bridge and resistor settings 

Resistors, solder bridge

Description

SB31 ON

R69 not fitted

BOOT0=0

R100 and 

R104 not fitted

BOOT1=X

Default Setting

Microcontroller STM32F412ZGT6 boots from user Flash memory.

SB31 OFF 

R69 fitted

(any value 

from 0 to 10K)

BOOT0=1

R100 not fitted

R104 fitted 

(1)

BOOT1=0

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.
R104 is a pull-down resistor on PB2 shared between BOOT1 and 
QSPI_CLK.

R100 fitted

(1)

 

R104 not fitted

BOOT1=1

Microcontroller STM32F412ZGT6 from RAM.
R100 is a pull-up resistor on PB2 shared between BOOT1 and 
QSPI_CLK.

Summary of Contents for 32F412GDISCOVERY

Page 1: ...ng 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...

Page 2: ...3 Power supply 14 5 3 1 Power supply sources 14 5 3 2 STM32 power supply options 15 5 3 3 Modification of STM32 voltage 15 5 3 4 Supplying the 32F412GDISCOVERY through the ST LINK V2 1 USB port 16 5...

Page 3: ...access CN7 29 5 17 3 Backlight 30 5 17 4 Touch panel 30 5 18 Joystick and LEDs 30 6 Connectors 32 6 1 I2 C extension connector CN10 32 6 2 USB OTG FS Micro AB connector CN3 32 6 3 microSD connector CN...

Page 4: ...ral Communications Commission FCC and ISED Canada Compliance Statements 37 8 1 FCC Compliance Statement 37 8 1 1 Part 15 19 37 8 1 2 Part 15 21 37 8 1 3 Part 15 105 37 8 2 ISED Compliance Statement 37...

Page 5: ...INO Uno V3 compatible connectors 24 Table 8 Pin assignment for the extension connector P1 26 Table 9 Pin assignment for the extension connector P2 27 Table 10 Pin assignment for connector CN15 28 Tabl...

Page 6: ...re 5 32F412GDISCOVERY bottom layout 12 Figure 6 32F412GDISCOVERY mechanical drawing dimensions in millimeters 13 Figure 7 Updating the list of drivers in device manager 14 Figure 8 R90 and R92 resisto...

Page 7: ...sion connector ARDUINO Uno V3 expansion connectors 2 54 mm pitch expansion connector for direct access to various features of the STM32F412ZGT6 microcontroller Flexible power supply options ST LINK V2...

Page 8: ...ation The meaning of the codification is explained in Table 2 Table 1 Ordering information Order code Board reference Target STM32 STM32F412G DISCO MB1209 STM32F412ZGT6 Table 2 Codification explanatio...

Page 9: ...ventions Table 3 provides the definition of some conventions used in the present document a Linux is a registered trademark of Linus Torvalds b macOS is a trademark of Apple Inc registered in the U S...

Page 10: ...in components on the Discovery kit Figure 3 Hardware block diagram MSv41795V1 STM32F412ZGT6 TQFP144 package Audio CODEC RTC 3 3 V power supply I2C1 I2S3 I2 C extension connector 1 54 LCD Joystick GPIO...

Page 11: ...2 Extension connector P1 LCD ZZ1 ARDUINO connectors CN1 CN2 Supply source selection JP3 5 V power LED LD6 SWD connector CN4 ST LINK V2 1 Micro B USB connector CN6 ST LINK power switch fault LED LD10 A...

Page 12: ...ayout and configuration UM2032 12 40 UM2032 Rev 3 Figure 5 32F412GDISCOVERY bottom layout MSv43307V2 Capacitive touch panel connector CN14 microSD connector CN13 U16 regulator output voltage adjustmen...

Page 13: ...N1235 5 2 1 Drivers ST LINK V2 1 requires a dedicated USB driver which for Windows 7 Windows 8 and Windows 10 is available from www st com In cases where the STM32F412 Discovery board is connected to...

Page 14: ...ough 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...

Page 15: ...ails on JP5 jumper setting refer to Table 4 Power supply related jumper settings 5 3 3 Modification of STM32 voltage Regulator U16 is dedicated to the 2 0 V supply The output voltage of U16 is by defa...

Page 16: ...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...

Page 17: ...spected the Discovery kit may be powered by VBUS first from ST LINK V2 1 and the following risks may be encountered 1 If more than 500 mA current is needed by the Discovery kit the PC may be damaged o...

Page 18: ...in 5 or by pins 3 or 4 of the extension connector P2 No jumper in JP3 JP5 Default Setting STM32F412ZGT6 is supplied with a 3 3 V voltage VDD_MCU STM32F412ZGT6 STM32 is supplied with a 2 0 V voltage VD...

Page 19: ...of 3V3 independently of the remainder of supply pins of STM32 JP7 Default Setting JP7 IDD is ON by default to supply the STM32F412ZGT6 and when removed it offers the possibility to insert an ammeter t...

Page 20: ...and PH1 are not available for the extension connector P2 5 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...

Page 21: ...tem memory boot mode Application note AN2606 details the bootloader mechanism and configurations Boot related solder bridge and resistor settings are reported in Table 6 Table 5 Boot options BOOT0 BOO...

Page 22: ...the port PB4 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...

Page 23: ...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...

Page 24: ...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 CN1 CN2 CN11 and CN12 are female connectors com...

Page 25: ...ON Note 4 Important before using pin 4 of CN2 as 5 V input insure the jumpers and solder bridges are configured according to 5 V DC power input defined in Section 5 3 1 Power supply sources Otherwise...

Page 26: ...signs In Table 8 Table 9 and in the 32F412GDISCOVERY schematics see on www st com the pin numbers corresponding to these ports are annotated with the star symbol In Table 8 Table 9 and in the 32F412GD...

Page 27: ...Name Note Pin No Name Note 1 GND 2 GND 3 5 V 4 5 V 5 3V3 6 3V3 7 PH0 8 PH1 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 P...

Page 28: ...SB41 must be ON and SB42 OFF The selection of the LCD is performed by FMC_NE1 PD7 write enable signal is FMC_NWE PD5 and read enable is FMC_NOE PD4 The address bit A0 of the FMC Flexible Static Memory...

Page 29: ...nnected to FMC PD0 17 D1 Data connected to FMC PD15 18 D0 Data connected to FMC PD14 19 RD Read of LCD connected to FMC_NOE PD4 20 WR Write of LCD connected to FMC_NWE PD5 21 RS Data Command select co...

Page 30: ...d to port PG5 to be used as an interruption input of the microcontroller Port PF12 is the reset of the capacitive touch panel 5 18 Joystick and LEDs The blue button B2 is a 4 direction joystick with a...

Page 31: ...UM2032 Rev 3 31 40 UM2032 Hardware layout and configuration 39 Table 12 Port assignment to the LED indicators LED Controlled by STM32 port Color LD1 PE0 Green LD2 PE1 Orange LD3 PE2 Red LD4 PE3 Blue...

Page 32: ...ure 10 USB OTG FS Micro AB connector CN3 front view Table 13 I2 C extension connector pinout CN10 Pin number Description Pin number Description 1 I2C1_SDA PB9 5 VDD 2 NC 6 NC 3 I2C1_SCL PB10 7 GND 4 E...

Page 33: ...iew 6 4 ST LINK V2 1 USB Micro B connector CN6 Figure 12 USB Micro B connector CN6 front view Table 15 microSD connector CN13 Pin number Description Pin number Description 1 SDIO_D2 PC10 6 GND 2 SDIO_...

Page 34: ...Connectors UM2032 34 40 UM2032 Rev 3 Table 16 USB Micro B connector CN6 Pin number Description Pin number Description 1 VBUS power 4 GND 2 DM 5 6 Shield 3 DP...

Page 35: ...ot yet qualified and therefore 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 custom...

Page 36: ...It embeds the STM32F412ZGT6 microcontroller with silicon revision code C or 1 The limitations of these silicon revisions are detailed in the errata sheet STM32F412xE xG device errata ES0305 7 3 Board...

Page 37: ...al 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 e...

Page 38: ...arning 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 EN55...

Page 39: ...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 ST...

Page 40: ...lection and use of ST products and ST assumes no liability for application assistance or the design of Purchasers products No license express or implied to any intellectual property right is granted b...

Reviews: