ST STM32G474E-EVAL User manual

January 2023 UM2514 Rev 5 1/66
1
UM2514
User manual
Evaluation board with STM32G4xxQE MCU
Introduction
The STM32G474E-EVAL board is a complete demonstration and development platform for
the STMicroelectronics Arm®Cortex®-M4 core-based STM32G474QET6 microcontroller. It
features three FDCAN controllers, four I²C Fast mode plus, five USART/UARTs and one
LPUART, four SPIs, one SAI port, USB FS and IRTIM communication interfaces, UCPD,
five 12-bit ADCs, seven 12-bit DAC channels, seven comparators, six operational
amplifiers, 17 timers, 96 Kbytes of internal SRAM, 32 Kbytes of CCM SRAM, 512 Kbytes of
flash memory, and JTAG/SWD debugging support.
The STM32G474E-EVAL, shown in Figure 1 and Figure 2, is used as a reference design for
user application development before porting to the final product. The STM32G484E-EVAL is
populated with an STM32G484QET6 MCU with cryptography. The STM32G474E-EVAL1 is
configured as a dedicated motor control board.
The full range of hardware features available on the board helps users to optimize the
application development by the evaluation of all the peripherals (USB FS, UCPD, USART,
audio, ADC and DAC, differential ADC, TFT LCD, potentiometer/LDR, SRAM, Quad-SPI
flash memory device, microSD™ card, smartcard, FDCAN transceiver, high-brightness
LED, motor control connectors, temperature sensor, and others). Extension headers provide
an easy connection to a daughterboard for specific applications.
STLINK-V3E is integrated into the board, as the embedded in-circuit debugger and
programmer for the STM32 MCU and the USB Virtual COM port bridge.
The three products (STM32G474E-EVAL, STM32G484E-EVAL, and STM32G474E-EVAL1)
are described in this user manual, together with STM32G474E-EVAL figures.
Pictures are not contractual.
Figure 1. STM32G474E-EVAL top view Figure 2. STM32G474E-EVAL bottom view
www.st.com

Contents UM2514
2/66 UM2514 Rev 5
Contents
1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2 Ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.1 Codification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3 Development environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.1 System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
3.2 Development toolchains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
4 Delivery recommendations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
5 Hardware layout and configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
5.1 STLINK-V3E . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5.1.1 Drivers and firmware upgrade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5.2 ETM trace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5.3 Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
5.3.1 Supplying the board through the STLINK-V3E USB port . . . . . . . . . . . 19
5.3.2 Using STLINK-V3E along with powering through the CN25 power jack 19
5.4 Clock references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
5.5 Reset source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
5.6 Boot option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
5.6.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
5.7 Audio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
5.7.1 Limitations in using audio features . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.8 USB FS port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.8.1 Operating voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.9 RS232 and RS485 port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.9.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.9.2 Operating voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.10 microSD™ card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.10.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.10.2 Operating voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.11 Motor control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

UM2514 Rev 5 3/66
UM2514 Contents
5
5.11.1 Board modifications to enable motor control . . . . . . . . . . . . . . . . . . . . . 31
5.11.2 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
5.12 FDCAN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
5.12.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
5.12.2 Operating voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
5.13 CN5 and CN6 extension connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
5.14 User LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
5.15 Physical input devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
5.15.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
5.16 Operational amplifier and comparator . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
5.16.1 Operational amplifier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
5.16.2 Comparator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
5.16.3 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
5.17 Analog input, output, VREF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
5.17.1 Analog input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
5.17.2 Analog output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
5.17.3 VREF+ terminal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
5.17.4 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
5.18 SRAM device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
5.18.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
5.18.2 Operating voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
5.19 EXT_I2C connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
5.20 Quad-SPI flash memory device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
5.20.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
5.20.2 Operating voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
5.21 MFX MCU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
5.21.1 MFX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
5.21.2 IDD measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
5.21.3 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
5.22 TFT LCD panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
5.23 UCPD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
5.23.1 USB Type-C®receptacles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
5.23.2 Power Delivery and local power management . . . . . . . . . . . . . . . . . . . 40
5.23.3 VBUS management and discharge mechanism . . . . . . . . . . . . . . . . . . . 40
5.23.4 VBUS voltage-sensing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
5.23.5 CC management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41

Contents UM2514
4/66 UM2514 Rev 5
5.23.6 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
5.24 Temperature sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
5.24.1 Operating voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
5.25 Smartcard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
5.25.1 Operating voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
5.26 High-brightness LED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
5.26.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
6 Connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
6.1 CN1 external I2C connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
6.2 CN2 and CN4 motor-control connectors . . . . . . . . . . . . . . . . . . . . . . . . . 43
6.3 CN3, CN7, and CN8 SMB connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
6.4 CN5 and CN6 extension connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
6.5 CN9 DAC connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
6.6 CN12 and CN10 CAN1 and CAN2 connectors . . . . . . . . . . . . . . . . . . . . 46
6.7 CN11 RS232 and RS485 connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
6.8 CN14 JTAG connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
6.9 CN15 TAG connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
6.10 CN16 STDC14 connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
6.11 CN17 trace-debugging connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
6.12 CN128 MFX programming connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
6.13 CN19 Type-C signals connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
6.14 CN20 and CN24 LCD connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
6.15 CN21 STLINK-V3E USB Micro-B connector . . . . . . . . . . . . . . . . . . . . . . 50
6.16 CN22 USB Type-C®connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
6.17 CN23 blue line-in audio jack . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
6.18 CN26 green line-out audio jack . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
6.19 CN25 power connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
6.20 CN27 STLINK-V3E programming connector . . . . . . . . . . . . . . . . . . . . . . 52
6.21 CN28 microSD™ connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
6.22 CN31 smartcard connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
7 STM32G474E-EVAL I/O assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . 55

UM2514 Rev 5 5/66
UM2514 Contents
5
8 STM32G474E-EVAL, STM32G474E-EVAL1, and
STM32G484E-EVAL board information . . . . . . . . . . . . . . . . . . . . . . . . . 60
8.1 Product marking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
8.2 STM32G474E-EVAL, STM32G474E-EVAL1, and
STM32G484E-EVAL product history . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
8.3 Board revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
9 Federal Communications Commission (FCC) and
Innovation, Science and Economic Development
Canada (ISED) Compliance Statements . . . . . . . . . . . . . . . . . . . . . . . . 64
9.1 FCC Compliance Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
9.2 ISED Compliance Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65

List of tables UM2514
6/66 UM2514 Rev 5
List of tables
Table 1. List of available products . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Table 2. Codification explanation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Table 3. Setting of configuration elements for CN17 trace connector . . . . . . . . . . . . . . . . . . . . . . . 16
Table 4. Setting of configuration I/Os for PE2, PE3, PE4, and PE5 . . . . . . . . . . . . . . . . . . . . . . . . . 17
Table 5. Power-supply-related jumper and solder bridge settings . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Table 6. X3 crystal-related solder bridge settings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Table 7. X2 crystal-related solder bridge settings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Table 8. Boot selection switch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Table 9. Configuration PA10 of STM32G474QET6 terminals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Table 10. CN2 motor-control terminal and function assignment. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Table 11. CN4 motor-control terminal and function assignment. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Table 12. Motor control OpAmp and DAC function assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Table 13. Motor-control-related switches and solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Table 14. Motor-control-related switches and solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Table 15. Port assignment for control of physical input devices. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Table 16. Configuration elements related to OpAmp4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Table 17. Configuration elements related to Comp4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Table 18. Configuration elements related to VREF+ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Table 19. MFX signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Table 20. IDD measurement-related jumper settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Table 21. CN20 and CN24 TFT LCD connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Table 22. Dead-battery related jumpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Table 23. Connection between ST8024L and STM32F091VCT6 . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Table 24. CN1 EXT_I2C connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Table 25. CN2 motor-control connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Table 26. CN4 motor-control connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Table 27. SMB connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Table 28. CN9 analog input-output connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Table 29. CN10 or CN12 CAN connector. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Table 30. CN11 RS-232/RS-485 D-sub connector. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Table 31. CN14 JTAG debugging connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Table 32. CN15 TAG debugging connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Table 33. CN16 STDC14 debugging connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Table 34. CN17 trace-debugging connector. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Table 35. CN19 Type-C signals connector. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Table 36. CN21 USB Micro-B connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Table 37. CN22 USB Type-C®connector. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Table 38. CN26 on-board audio jack connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Table 39. CN28 microSD™ connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Table 40. CN31 smartcard connector. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Table 41. STM32G474E-EVAL I/O assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Table 42. Product history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Table 43. Board revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Table 44. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65

UM2514 Rev 5 7/66
UM2514 List of figures
7
List of figures
Figure 1. STM32G474E-EVAL top view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Figure 2. STM32G474E-EVAL bottom view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Figure 3. Hardware block diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Figure 4. STM32G474E-EVAL Evaluation board layout (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Figure 5. STM32G474E-EVAL Evaluation board layout (bottom view) . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 6. STM32G474E-EVAL Evaluation board mechanical dimensions (top view) . . . . . . . . . . . . 15
Figure 7. PCB top side rework for motor control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Figure 8. PCB bottom side rework for motor control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Figure 9. CN1 I2C EXT connector (front view). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Figure 10. CN2 and CN4 motor-control connectors (front view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Figure 11. SMB connector (front view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Figure 12. CN9 analog input-output connector (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Figure 13. CN10 or CN12 CAN connector (front view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Figure 14. CN11 RS232 and RS485 connector (front view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Figure 15. CN14 JTAG debugging connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Figure 16. CN16 STDC14 debugging connector (top view). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Figure 17. CN17 trace-debugging connector (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Figure 18. CN19 Type-C signals connector (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Figure 19. CN21 USB Micro-B connector (front view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Figure 20. CN22 USB Type-C®connector (front view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Figure 21. CN26 stereo headset with a microphone jack . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Figure 22. CN25 power-supply connector (front view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Figure 23. CN28 microSD™ connector (front view). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Figure 24. CN31 smartcard connector (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54

Features UM2514
8/66 UM2514 Rev 5
1 Features
•STM32G474QET6 (STM32G474E-EVAL and STM32G474E-EVAL1) or
STM32G484QET6 (STM32G484E-EVAL) Arm®Cortex®-M4 core-based
microcontroller with 512 Kbytes of flash memory and 96 Kbytes of RAM in an LQFP128
package
•240x320 TFT color LCD module with SPI interface
•16-Gbyte microSD™ card bundled
•On-board current measurement
•SAI audio codec
•Temperature sensor
•8-Mbit (512 K x 16-bit) SRAM
•Two 512-Mbit Quad-SPI NOR flash memories
•Four color user LEDs
•One high-brightness LED
•Reset and wake-up/tamper buttons
•4-direction joystick with selection button
•Light-dependent resistor (LDR)
•Potentiometer
•Access to a comparator and operational amplifier
•Board connectors:
– Analog line input jack
– Stereo headset jack
– Two connectors for external speakers
–microSD™card
– EXT_I2C connector supporting I2C bus
– RS-232 port configurable for communication or MCU flashing
– RS-485 port
– USB Type-C®port supporting USB FS Device
– Two CAN 2.0A/B-compliant ports
– Connector for DAC output
– JTAG/SWD connector
– ETM trace debug connector
– User interface through USB virtual COM port
– Embedded STLINK-V3E debug and flashing facility
– TAG connector 10-pin footprint
–Arm
®(a) Cortex®10-pin 1.27 mm-pitch debug connector over STDC14 footprint
– Coin cell battery holder
– Two sets of motor control expansion connectors
– Board expansion extension connectors
a. Arm is a registered trademark of Arm Limited (or its subsidiaries) in the US and/or elsewhere.

UM2514 Rev 5 9/66
UM2514 Features
65
•Flexible power-supply options: ST-LINK USB VBUS, USB connector, or external
sources
•Microcontroller supply voltage: fixed 3.3 V or adjustable range from 1.62 to 3.6 V
•On-board STLINK-V3E debugger/programmer with USB reenumeration capability:
mass storage, Virtual COM port, and debug port
•Comprehensive free software libraries and examples available with the STM32CubeG4
MCU Package
•Support of a wide choice of integrated development environments (IDEs) including IAR
Embedded Workbench®, MDK-ARM, and STM32CubeIDE

Ordering information UM2514
10/66 UM2514 Rev 5
2 Ordering information
To order the STM32G474E-EVAL, STM32G474E-EVAL1, or STM32G484E-EVAL
Evaluation board, refer to Table 1. Additional information is available in the datasheet and
reference manual of the targeted STM32.
2.1 Codification
The meaning of the codification is explained in Table 2.
Table 1. List of available products
Order code Board reference Target STM32 Differentiating feature
STM32G474E-EVAL
MB1397(1)
MB895(2)
1. Main board
2. LCD daughterboard
STM32G474QET6
Basic
STM32G474E-EVAL1 Motor-control configuration
board
STM32G484E-EVAL STM32G484QET6 Cryptography
Table 2. Codification explanation
STM32TTXXY-EVAL(Z) Description Example: STM32G484E-EVAL
STM32TT MCU series in STM32 Arm
Cortex MCUs STM32G4 Series
XX
MCU product line in the series
– G474: basic security
– G484: cryptography
STM32G484
YSTM32 flash memory size,
E for 512 Kbytes 512 Kbytes
-EVAL(Z)
Evaluation board configuration:
– EVAL: basic
– EVAL1: with motor-control
configuration board
Basic

UM2514 Rev 5 11/66
UM2514 Development environment
65
3 Development environment
3.1 System requirements
•Multi-OS support: Windows®10, Linux®(a) 64-bit or macOS®(b) (c)
•USB Type-A or USB Type-C®to Micro-B cable
3.2 Development toolchains
•IAR Systems - IAR Embedded Workbench®(d)
•Keil®- MDK-ARM(d)
•STMicroelectronics - STM32CubeIDE
4 Delivery recommendations
Some verifications are needed before using the board for the first time, to make sure that no
damage occurred during shipment and that no components are unplugged or lost.
When the board is extracted from its plastic bag, check that no component remains in the
bag. The main components to verify are:
1. microSD™ card that may have been ejected from the CN28 connector (right side of the
board),
2. TFT LCD MB895 daughterboard that must be in its CN20 and CN24 connectors
For product information related to the STM32G4xxQET6 microcontroller, visit the
www.st.com website.
a. Linux® is a registered trademark of Linus Torvalds.
b. macOS®is a trademark of Apple Inc., registered in the U.S. and other countries and regions.
c. Windows is a trademark of the Microsoft group of companies.
d. on Windows®only.

Hardware layout and configuration UM2514
12/66 UM2514 Rev 5
5 Hardware layout and configuration
The STM32G474E-EVAL board is designed around the STM32G474QET6 target
microcontroller in the 128-pin TQFP package. Figure 3 illustrates the connections of the
STM32G474QET6 with the peripheral components. Figure 4 and Figure 5 show the
locations of the main components on the Evaluation board.
Figure 3. Hardware block diagram
MSv61262V2
3.3 V
power supply
1.8 V
power supply
ADJ
power supply
STM32G474QET6
TQFP128
VBAT
RTC
SPI2
UCPD
USB FS
USART1
CAN1/2
DAP
SAI1
QSPI
FMC
I2C3
ADC/DAC
OPAMP4
COMP6
GPIO
Audio codec
2x single
Quad-SPI Flash
SRAM/PSRAM
Temperature sensor
EXT_I2C connector
ADC/DAC connector
Potentiometer/LDR
Joystick, buttons
Color LEDs
Motor control connector
CAN connector
STLINK-V3E
JTAG/SWD connector
TAG connector
Trace connector
STDC14 connector
3 V battery
32 KHz crystal
TFT LCD connector
microSD™ card
USB Type-C
®
connector
RS232/RS485 connector
High-brightness LED
Smartcard

UM2514 Rev 5 13/66
UM2514 Hardware layout and configuration
65
Figure 4. STM32G474E-EVAL Evaluation board layout (top view)
VDD_ADJ
(RV3)
Power jack
(CN25)
USB Type-C
®
connector
(CN22)
Type-C signals
(CN19)
5 V source
(JP12)
USART
(CN11)
5 V LED
(LD6)
HB LED
(LD5)
CAN1
(CN12)
CAN2
(CN10)
Motor control connector 2
(CN4)
STM32G474QET6 MCU
(U6)
EXT_I2C connector
(CN1)
Motor control connector 1
(CN2)
Extension headers
(CN5 and CN6)
Differential ADC input
(CN3)
Analog input +
(CN7)
Analog input -
(CN8)
DAC2
(CN32)
DAC
(CN9)
Potentiometer
(RV2)
TAG
(CN15)
STDC14
(CN16)
ETM TRACE
(CN17)
MFX
(CN18)
JTAG / SWD
(CN14)
STLINK-V3E power
overcurrent alarm
(LD7)
TFT LCD connector
(CN20 and CN24)
Audio in
(CN23)
Audio out
(CN26)
STLINK-V3E USB
(CN21)
microSD™ card
(CN28)
4 colored LEDs
(LD1 to LD4)
STLINK-V3E
COM LED
(LD8)
User button
(B2)
Joystick
(B1)
Reset button
(B3)
ST-LINK SWD
(CN27)

Hardware layout and configuration UM2514
14/66 UM2514 Rev 5
Figure 5. STM32G474E-EVAL Evaluation board layout (bottom view)
Smartcard
(CN31)

UM2514 Rev 5 15/66
UM2514 Hardware layout and configuration
65
Figure 6 provides the mechanical dimensions of the STM32G474E-EVAL board.
Figure 6. STM32G474E-EVAL Evaluation board mechanical dimensions (top view)

Hardware layout and configuration UM2514
16/66 UM2514 Rev 5
5.1 STLINK-V3E
STLINK-V3E facility for debugging and flashing of STM32G474QET6 is integrated on the
STM32G474E-EVAL board. It features:
•Self-powered through a USB connector (Micro-B)
•USB 2.0 high-speed compatible interface
•Direct firmware update support (DFU)
•SWD and serial wire viewer (SWV) communication support
•Drag-and-drop flash programming
•Two LEDs: communication, power
The CN21 USB connector can be used to power the STM32G474E-EVAL regardless of the
STLINK-V3E facility used for debugging or programming STM32G474QET6. This holds
also when the STLINK standalone tool is connected to the CN14, CN15, CN16, or CN17
connector and used for debugging or programming the STM32G474QET6. Section 5.3:
Power supply provides more detail about powering the STM32G474E-EVAL.
Refer to www.st.com for details about STLINK-V3E.
5.1.1 Drivers and firmware upgrade
The STLINK-V3E requires drivers to be installed on Windows®and embeds firmware that
needs to be updated from time to time to benefit from new functionality or corrections. Refer
to the technical note Overview of ST-LINK derivatives (TN1235) for details.
Before connecting the STM32G474E-EVAL to a Windows PC via USB, a driver for
STLINK-V3E must be installed. It is available from www.st.com.
5.2 ETM trace
The CN17 connector is available to output trace signals used for debugging. By default, the
Evaluation board is configured such that, STM32G474QET6 signals PE2, PE3, and PE4 are
connected to trace outputs TRACECLK, TRACED0, and TRACED1 of CN17, but these
signals are shared with the audio codec, motor control connectors, and FMC.
Table 3 shows the setting of configuration elements to shunt PE3 and PE4 MCU ports to the
CN17 connector, to use them as debug trace signals.
Table 4 shows the setting of configuration I/Os to shunt PE2, PE3, PE4, and PE5 MCU ports
to use them as the right functions.
Table 3. Setting of configuration elements for CN17 trace connector
Element Setting Configuration
R210 OFF Default setting.
CN17 pin 14 connects to TRACED0.
ON CN17 pin 14 connects to JTAG_TDO.
R207 OFF Default setting.
CN17 pin 16 connects to TRACED1.
ON CN17 pin 16 connects to JTAG_TRST.

UM2514 Rev 5 17/66
UM2514 Hardware layout and configuration
65
Table 4. Setting of configuration I/Os for PE2, PE3, PE4, and PE5
Element Setting Configuration
R147
SB111
SB103
R147 in
SB111 OFF
SB103 OFF
Default setting.
PE2 connects to TRACECLK.
R147 out
SB111 ON
SB103 OFF
Default setting.
PE2 connects to SAI_MCLK_A.
R147 out
SB111 OFF
SB103 ON
PE2 connects to MC1|MC2_PFC_Sync.
R145
SB110
SB118
R146
R145 in
SB110 OFF
SB118 OFF
R146 out
Default setting.
PE3 connects to TRACED0.
R145 out
SB110 ON
SB118 OFF
R146 out
Default setting.
PE3 connects to SAI_SD_B.
R145 out
SB110 OFF
SB118 ON
R146 out
PE3 connects to MC1|MC2_PFC_pwm.
R145 out
SB110 OFF
SB118 OFF
R146 in
Default setting.
PE3 connects to memory address line A19.
R144
SB107
SB109
R143
R144 in
SB107 OFF
SB109 OFF
R143 out
Default setting.
PE4 connects to TRACED1.
R144 out
SB107 ON
SB109 OFF
R143 out
Default setting.
PE4 connects to SAI_FS_A.
R144 out
SB107 OFF
SB109 ON
R143 out
PE4 connects to MC1_ICL_SHUTOUT.
R144 out
SB107 OFF
SB109 OFF
R143 in
Default setting.
PE4 connects to memory address line A20.

Hardware layout and configuration UM2514
18/66 UM2514 Rev 5
Warning: Generally, we have one default setting for the best
performance of many shared features, but it is easy for users
to configure features, as we have many default settings for
MCU ports (solder bridge or resistor is soldered).
5.3 Power supply
The STM32G474E-EVAL board is designed to be powered by a 5 V DC power source. It
incorporates a precise PTC and TRANSIL to protect the board from damage due to a wrong
power supply. One of the following five 5 V DC power inputs can be used, upon appropriate
board configuration:
•CN25 power jack:
Marked PSU on the board (JP12 jumper setting on E5V on the silkscreen). The positive
pole is on the center pin as illustrated in Figure 22.
The external power supply from the CN25 power jack is from 5 to 18 V input voltage.
The dedicated DC/DC regulator ST1S41PHR is used for about 5.2 V output voltage
and provided up to 3 A current.
•CN21 USB Micro-B receptacle of STLINK-V3E with enumeration:
Up to 500 mA can be supplied to the board (JP12 jumper setting on STLK on the
silkscreen).
Offers the enumeration feature described in Section 5.3.1.
•CN21 USB Micro-B receptacle of STLINK-V3E without enumeration:
Up to 1000 mA can be supplied to the board directly without enumeration (JP12 jumper
setting on CHGR on the silkscreen).
•CN22 USB Type-C®receptacle of USB PD interface:
Marked TYPE-C on the board (JP12 jumper setting on U5V on the silkscreen). Up to
500 mA can be supplied to the board in this way.
•Pin 49 of CN5 and pin 49 of CN6 extension connectors for custom daughterboard:
Marked 5V_D on the board (JP12 jumper setting on D5V on the silkscreen).
The LD6 green LED turns on when the voltage on the power line marked as 5 V is present.
All supply lines required for the operation of the components on the STM32G474E-EVAL
are derived from that 5 V line.
Table 5 describes the settings of all jumpers related to powering the STM32G474E-EVAL
and extension board. VDD_MCU is STM32G474QET6 digital supply voltage line. It can be
connected to a fixed 3.3 V or with an adjustable voltage regulator controlled by the RV3
potentiometer and producing a range of voltages between 1.62 V and 3.6 V.
SB28
SB97
SB28 ON
SB97 OFF
Default setting.
PE5 connects to TRACED2
SB28 OFF
SB97 ON PE5 connects to MC1_DissipativeBrake
Table 4. Setting of configuration I/Os for PE2, PE3, PE4, and PE5 (continued)
Element Setting Configuration

UM2514 Rev 5 19/66
UM2514 Hardware layout and configuration
65
5.3.1 Supplying the board through the STLINK-V3E USB port
To power the STM32G474E-EVAL board, the USB host (a PC) gets connected to the Micro-
B USB receptacle of the STM32G474E-EVAL board via a USB cable. The connection event
starts the USB enumeration procedure. In its initial phase, the current supply capability of
the USB port on the host is limited to 100 mA. It is enough because only the STLINK-V3E
part of the STM32G474E-EVAL draws power at that time: the U25 STMPS2151 power
switch is set to the OFF position, which isolates the rest of the STM32G474E-EVAL from the
power source. In the next phase of the enumeration procedure, the host PC informs the
STLINK-V3E facility of its capability to supply current up to 300 mA. If the answer is positive,
the STLINK-V3E sets the U25 STMPS2151 switch to the ON position to supply power to the
rest of the STM32G474E-EVAL board. If the PC USB port is not capable of supplying
current up to 300 mA, the CN25 power jack is available to supply the board.
If a short circuit occurs on the board, the STMPS2151 power switch protects the USB port of
the host PC against a current demand exceeding 500 mA. In such an event, the LD7 LED
lights up.
The STM32G474E-EVAL board can also be supplied from a USB power source not
supporting enumeration, such as a USB charger. In this particular case, jumper JP12 must
be fitted with a jumper hat as shown in Table 5. STLINK-V3E bypasses STMPS2151 power
regardless of the enumeration procedure result and passes the power unconditionally to the
board.
The LD6 green LED turns on whenever the whole board is powered.
5.3.2 Using STLINK-V3E along with powering through the CN25 power jack
When the board requires a current higher than 300 mA, the host PC, connected to the
STLINK-V3E USB port for debugging or programming, cannot supply the
STM32G474QET6 MCU. In such a case, the board can be powered through CN25 (marked
PSU on the board).
To do this, it is important to power the board before connecting it with the host PC, which
requires the following sequence to be respected:
1. Set the jumper JP12 in the E5V position.
2. Connect the external power source to CN25.
3. Check that the green LED LD6 is turned on.
4. Connect the host PC to the CN21 USB connector.
Caution: In case the board requires more than 300 mA and the host PC is connected via USB before
the board is powered from CN25, the following risk events are possible (listed in reverse
severity order):
1. The host PC can supply 300 mA (the enumeration succeeds) but it features no over-
current protection on its USB port. It is damaged due to over-current.
2. The host PC can supply 300 mA (the enumeration succeeds) and it has built-in
over-current protection on its USB port, limiting or shutting down the power out of its
USB port when the excessive current demand from the STM32G474E-EVAL is
detected. This causes an operating failure of the STM32G474E-EVAL.
3. The host PC cannot supply 300 mA (the enumeration fails). The STLINK-V3E does not
supply the rest of the STM32G474E-EVAL from its USB port VBUS line.
Table 5 details the jumper and solder bridge settings used for the configuration of the power
supply of the STM32G474E-EVAL.

Hardware layout and configuration UM2514
20/66 UM2514 Rev 5
Table 5. Power-supply-related jumper and solder bridge settings
Jumper /
solder bridge setting Configuration
JP12
Power source
selector
Default setting.
STM32G474E-EVAL is supplied through the CN21
Micro-B USB receptacle. It depends on the host PC
USB port powering capability declared in the
enumeration.
STM32G474E-EVAL is supplied through the CN22
USB Type-C®receptacle.
STM32G474E-EVAL is supplied through pin 49 of
CN5 and pin 49 of CN6 extension connectors.
Default setting.
STM32G474E-EVAL is supplied through the CN25
power jack.
STM32G474E-EVAL is supplied through the CN21
Micro-B USB receptacle.
Set to power the board through the CN21 using a
USB charger.
JP7
Vbat connection
Default setting.
Vbat is connected to VDD.
Vbat is connected to the battery.
JP6
VDDA
connection
VDDA terminal of STM32G474QET6 is connected
with VDD_MCU.
Default setting.
VDDA terminal of STM32G474QET6 is connected to
3.3 V.
JP11
VDD_MCU
connection
Default setting.
VDD_MCU (VDD terminals of STM32G474QET6) is
connected to the fixed 3.3 V.
VDD_MCU is connected to voltage in the range from
1.62 to 3.61 V adjustable with the RV3 potentiometer.
STLK CHGRE5VU5V DSV
STLK CHGRE5VU5V DSV
STLK CHGRE5VU5V DSV
STLK CHGRE5VU5V DSV
STLK CHGRE5VU5V DSV
13
2
13
2
13
2
13
2
13
2
13
2
Table of contents
Other ST Motherboard manuals

ST
ST STEVAL-WESU1 User manual

ST
ST STM3241G-EVAL User manual

ST
ST STEVAL-ISC005V1 Administrator Guide

ST
ST STEVAL-MKI005V1 User manual

ST
ST SPC584B-DISP User manual

ST
ST EVB-LIV3F User manual

ST
ST STM8L1526-EVAL User manual

ST
ST STEVAL-SP1ML915 User manual

ST
ST STM32MP157 Series User manual

ST
ST STM32F401 Discovery User manual

ST
ST SPC584BADPT176S User manual

ST
ST STM32100E-EVAL User manual

ST
ST ST25RU3993 User manual

ST
ST STEVAL-ISB041V1 User manual

ST
ST STFPC311 User manual

ST
ST STEVAL-IHM020V1 User manual

ST
ST FDA803S User manual

ST
ST STEVAL-IPC002V1 User manual

ST
ST eMotion STEVAL-MKI109V1 User manual

ST
ST STM32429I-EVAL User manual