ST MICROELECTRONICS STM32G474E-EVAL1 User guide

Introduction
UM2514
User manual
Evaluation board with STM32G4xxQE MCU
The STM32G474E-EVAL board is a complete demonstration and development platform for the STMicroelectronics Arm 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 and six operational amplifiers, 17 timers, 96 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 STM32G484QET6U 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 easy connection to 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, STM32G474E-EVAL1) are described in this user manual, together with STM32G474E-EVAL figures.
Figure 1. STM32G474E-EVAL top view Figure 2. STM32G474E-EVAL bottom view
Cortex®-M4 core-based STM32G474QET6U microcontroller.
Kbytes of internal SRAM, 32 Kbytes of CCM SRAM, 512 Kbytes of
Pictures are not contractual.
September 2019 UM2514 Rev 4 1/83
www.st.com
1
Contents UM2514
Contents
1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2 Ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.1 Product marking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.2 Codification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
3 Development environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.1 System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.2 Development toolchains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.3 Demonstration software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4 Delivery recommendations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
5 Hardware layout and configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
5.1 STLINK-V3E . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
5.1.1 Drivers and firmware upgrade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
5.2 ETM trace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
5.3 Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
5.3.1 Supplying the board through STLINK-V3E USB port . . . . . . . . . . . . . . 20
5.3.2 Using STLINK-V3E along with powering through CN25 power jack . . . 20
5.4 Clock references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
5.5 Reset source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.6 Boot Option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.6.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.7 Audio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.7.1 Limitations in using audio features . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.8 USB FS port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.8.1 Operating voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.9 RS232 and RS485 port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.9.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.9.2 Operating voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
5.10 microSD card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
5.10.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
2/83 UM2514 Rev 4
UM2514 Contents
5.10.2 Operating voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
5.11 Motor control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
5.11.1 Board modifications to enable motor control . . . . . . . . . . . . . . . . . . . . . 32
5.11.2 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
5.12 FDCAN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
5.12.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
5.12.2 Operating voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
5.13 Extension connectors CN5 and CN6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
5.14 User LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
5.15 Physical input devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
5.15.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
5.16 Operational amplifier and comparator . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
5.16.1 Operational amplifier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
5.16.2 Comparator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
5.16.3 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
5.17 Analog input, output, VREF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
5.17.1 Analog input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
5.17.2 Analog output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
5.17.3 VREF+ terminal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
5.17.4 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
5.18 SRAM device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
5.18.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
5.18.2 Operating voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
5.19 EXT_I2C connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
5.20 Quad-SPI Flash memory device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
5.20.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
5.20.2 Operating voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
5.21 MFX MCU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
5.21.1 MFX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
5.21.2 IDD measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
5.21.3 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
5.22 TFT LCD panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
5.23 UCPD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
5.23.1 USB Type-C receptacles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
5.23.2 Power Delivery & Local power management . . . . . . . . . . . . . . . . . . . . . 41
UM2514 Rev 4 3/83
5
Contents UM2514
5.23.3 VBUS management and discharge mechanism . . . . . . . . . . . . . . . . . . 41
5.23.4 VBUS voltage-sensing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
5.23.5 CC management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
5.23.6 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
5.24 Temperature Sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
5.24.1 Operating voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
5.25 Smartcard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
5.25.1 Operating voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
5.26 High brightness LED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
5.26.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
6 Connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
6.1 External I2C connector CN1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
6.2 Motor control connector CN2 and CN4 . . . . . . . . . . . . . . . . . . . . . . . . . . 44
6.3 SMB connector CN3, CN7 and CN8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
6.4 Extension connectors CN5 and CN6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
6.5 DAC connector CN9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
6.6 CAN1 and CAN2 connector CN12 and CN10 . . . . . . . . . . . . . . . . . . . . . 47
6.7 RS232 and RS485 connector CN11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
6.8 JTAG connector CN14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
6.9 TAG connector CN15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
6.10 STDC14 connector CN16 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
6.11 Trace debugging connector CN17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
6.12 MFX programming connector CN18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
6.13 Type-C signals connector CN19 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
6.14 LCD connector CN20 and CN24 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
6.15 ST-LINK-V3E USB Micro-B connector CN21 . . . . . . . . . . . . . . . . . . . . . . 51
6.16 USB Type-C connector CN22 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
6.17 Audio blue jack (Line In) CN23 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
6.18 Audio green jack (Line Out) CN26 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
6.19 Power connector CN25 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
6.20 ST-LINK-V3E programming connector CN27 . . . . . . . . . . . . . . . . . . . . . . 53
6.21 microSD connector CN28 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
6.22 Smartcard connector CN31 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
4/83 UM2514 Rev 4
UM2514 Contents
7 Schematic diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Appendix A STM32G474E-EVAL I/O Assignment . . . . . . . . . . . . . . . . . . . . . . . . 77
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
UM2514 Rev 4 5/83
5
List of tables UM2514
List of tables
Table 1. List of available products . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Table 2. Codification explanation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Table 3. Setting of configuration elements for trace connector CN17 . . . . . . . . . . . . . . . . . . . . . . . 17
Table 4. Setting of configuration I/Os for PE2, PE3, PE4 and PE5 . . . . . . . . . . . . . . . . . . . . . . . . . 18
Table 5. Power supply related jumper and solder bridge settings . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Table 6. X3 crystal related solder bridge settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Table 7. X2 crystal related solder bridge settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Table 8. Boot selection switch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Table 9. Configuration PA10 of STM32G474QET6U terminals . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Table 10. Motor control CN2 terminal and function assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Table 11. Motor control CN4 terminal and function assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Table 12. Motor control OpAmp and DAC function assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Table 13. Motor control related switches and solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Table 14. Motor control related switches and solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Table 15. Port assignment for control of physical input devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Table 16. Configuration elements related with OpAmp4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Table 17. Configuration elements related with Comp4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Table 18. Configuration elements related with VREF+. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Table 19. MFX signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Table 20. IDD measurement related jumper settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Table 21. TFT LCD connector CN20 and CN24. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Table 22. Dead battery related jumpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Table 23. Connection between ST8024L and STM32F091VCT6 . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Table 24. EXT_I2C connector CN1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Table 25. Motor control connector CN2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Table 26. Motor control connector CN4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Table 27. SMB connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Table 28. Analog input-output connector CN9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Table 29. CAN connector CN10 or CN12 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Table 30. RS-232/RS-485 D-sub connector CN11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Table 31. JTAG debugging connector CN14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Table 32. TAG debugging connector CN15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Table 33. STDC14 debugging connector CN16 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Table 34. Trace debugging connector CN17 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Table 35. Type-C signals connector CN19 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Table 36. USB Micro-B connector CN21 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Table 37. USB Type C connector CN22 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Table 38. Audio Jack Connector CN26 (on board) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Table 39. MicroSD connector CN28 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Table 40. Smartcard connector CN31 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Table 41. STM32G474E-EVAL I/O Assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Table 42. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
6/83 UM2514 Rev 4
UM2514 List of figures
List of figures
Figure 1. STM32G474E-EVAL top view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Figure 2. STM32G474E-EVAL bottom view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Figure 3. Hardware block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Figure 4. STM32G474E-EVAL Evaluation board layout (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 5. STM32G474E-EVAL Evaluation board layout (bottom view) . . . . . . . . . . . . . . . . . . . . . . . 15
Figure 6. STM32G474E-EVAL Evaluation board mechanical dimensions (top view) . . . . . . . . . . . . 16
Figure 7. PCB top side rework for motor control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 8. PCB bottom side rework for motor control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 9. I2C EXT connector CN2 (front view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Figure 10. Motor control connector CN2 and CN4 (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Figure 11. SMB connector (front view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Figure 12. Analog input-output connector CN9 (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Figure 13. CAN connector CN10 or CN12 (front view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Figure 14. RS232 and RS485 connector CN11 (front view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Figure 15. JTAG debugging connector CN14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Figure 16. STDC14 debugging connector CN16 (top view). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Figure 17. Trace debugging connector CN17 (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Figure 18. Type-C signals connector CN19 (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Figure 19. USB Micro-B connector CN21 (front view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Figure 20. USB Type C connector CN22 (front view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Figure 21. Stereo headset with microphone jack CN26. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Figure 22. Power supply connector CN25 (front view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Figure 23. microSD connector CN28 (front view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Figure 24. Smartcard connector CN31 (top view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Figure 25. MB1397_TOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Figure 26. STM32 microcontroller I/Os . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Figure 27. STM32 microcontroller power . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Figure 28. USB_PD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Figure 29. USB-TYPEC_CON . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Figure 30. FMC memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Figure 31. QSPI memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Figure 32. Audio. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Figure 33. LCD and SD card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Figure 34. RS232 and RS485 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Figure 35. FDCAN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Figure 36. Analog interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Figure 37. Peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Figure 38. Smartcard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Figure 39. Motor control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Figure 40. Extension connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Figure 41. Debug connectors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Figure 42. Multi function expander. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Figure 43. Power board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Figure 44. STLINK-V3E -SWD Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
UM2514 Rev 4 7/83
7
Features UM2514

1 Features

Common features
240x320 TFT color LCD display 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 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
8/83 UM2514 Rev 4
UM2514 Features
-Arm
®(a)
Cortex® 10-pin 1.27 mm-pitch debug connector over STDC14 footprint
-Coin cell battery holder
Board expansion connectors:
-Two sets of motor control expansion connectors
-Board expansion extension connectors
Flexible power-supply options:
-ST-LINK USB VBUS, external sources, USB Type-C™ connector, or daughterboard
On-board STLINK-V3E debugger/programmer with USB re-enumeration
capability: mass storage, Virtual COM port, and debug port
Microcontroller supply voltage: fixed 3.3 V or adjustable range from 1.62 V to
3.6 V
Comprehensive free software libraries and examples available with the
STM32CubeG4 MCU Package
Support of a wide choice of integrated development environments (IDEs) including
IAR™, Keil
, GCC-based IDEs
Board-specific features
-STM32G474QET6U microcontroller with 512 Kbytes of Flash memory and 96 Kbytes of RAM in LQFP128 package (STM32G474E-EVAL and STM32G474E-EVAL1)
-STM32G474E-EVAL1 is the board to use for motor control application with solder bridge and resistor configuration
-STM32G484QET6U with cryptography (STM32G484E-EVAL)
Fully compatible with all microcontrollers of the STM32G4x1 and STM32G4x3 lines with “QET6” part number suffix
a. Arm is a registered trademark of Arm Limited (or its subsidiaries) in the US and/or elsewhere.
UM2514 Rev 4 9/83
82
Ordering information UM2514

2 Ordering information

To order the STM32G4x4E-EVAL Evaluation board, refer to Tab le 1. Additional information is available in the datasheet and reference manual of the targeted STM32.
Order code Board reference Target STM32 Differentiating feature

Table 1. List of available products

STM32G474E-EVAL
STM32G474E-EVAL1
STM32G484E-EVAL STM32G484QET6U Cryptography

2.1 Product marking

Evaluation tools marked as “ES” or “E” are not yet qualified and are therefore not ready to be used as reference design or in production. Any consequences arising from such usage will not be at STMicroelectronics’ charge. In no event will STMicroelectronics be liable for any customer usage of these engineering sample tools as reference designs or in production.
‘E’ or ‘ES’ marking examples of location:
on the targeted STM32 that is soldered on the board (for illustration of STM32 marking, refer to the section Package information in the STM32 datasheet at www.st.com).
next to the evaluation tool ordering part number, that is stuck or silkscreen printed on the board.
This board features a specific STM32 device version which allows the operation of any bundled commercial stack/library available. This STM32 device shows a "U" marking option at the end of the standard part number and is not available for sales.
In order to use the same commercial stack in his application, a developer may need to purchase a part number specific to this stack/library. The price of those part numbers includes the stack/library royalties.
MB1397
STM32G474QET6U
-
Motor-control configuration
board
10/83 UM2514 Rev 4
UM2514 Ordering information

2.2 Codification

The meaning of the codification is explained in Tabl e 2.
STM32XXYYYZ-EVAL(T) Description Example: STM32G484E-EVAL

Table 2. Codification explanation

XX
MCU series in STM32 Arm Cortex MCUs
STM32G4 Series
MCU product line in the series
YY
– G474: basic security
STM32G484
– G484: cryptography
Z
STM32 Flash memory size, E for 512 Kbytes
512 Kbytes
Evaluation board configuration:
T
– EVAL: basic – EVAL1: with motor-control
Basic
configuration board
The order code is mentioned on a sticker placed on the top side of the board.
UM2514 Rev 4 11/83
82
Development environment UM2514

3 Development environment

3.1 System requirements

Windows® OS (7, 8 and 10), Linux® 64-bit or macOS
USB Type-A to Micro-B cable

3.2 Development toolchains

Keil® MDK-ARM
IAR™ EWARM
GCC-based IDEs
(b)
(b)

3.3 Demonstration software

The demonstration software, included in the STM32Cube MCU Package corresponding to the on-board MCU, is preloaded in the STM32 Flash memory for easy demonstration of the device peripherals in standalone mode. The latest versions of the demonstration source code and associated documentation can be downloaded from www.st.com.
®(a)

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 which may have been ejected from the connector CN28 (right side of the board),
2. TFT LCD display MB895 daughterboard which must be in its CN20 and CN24 connectors
For product information related to STM32G4xxQET6U microcontroller, visit the www.st.com website.
a. macOS® is a trademark of Apple Inc., registered in the U.S. and other countries.
®
b. on Windows
only
12/83 UM2514 Rev 4
UM2514 Hardware layout and configuration
06Y9
9
SRZHUVXSSO\
9
SRZHUVXSSO\
$'-
SRZHUVXSSO\
670*4(7
74)3
9%$7
57&
63,
8&3'
86%)6
86$57
&$1
'$3
6$,
463,
)0&
,&
$'&'$&
23$03
&203
*3,2
$XGLRFRGHF
[VLQJOH
4XDG63,)ODVK
65$0365$0
7HPSHUDWXUHVHQVRU
(;7B,&FRQQHFWRU
$'&'$&FRQQHFWRU
3RWHQWLRPHWHU/'5
-R\VWLFNEXWWRQV
&RORU/('V
0RWRUFRQWUROFRQQHFWRU
&$1FRQQHFWRU
67/,1.9(
-7$*6:'FRQQHFWRU
7$*FRQQHFWRU
7UDFHFRQQHFWRU
67'&FRQQHFWRU
9EDWWHU\
.+]FU\VWDO
7)7/&'FRQQHFWRU
PLFUR6'FDUG
86%7\SH&FRQQHFWRU
5656FRQQHFWRU
+LJKEULJKWQHVV/('
6PDUWFDUG

5 Hardware layout and configuration

The STM32G474E-EVAL board is designed around STM32G474QET6U target microcontroller in TQFP 128-pin package. STM32G474QET6U with the peripheral components. Figure 4 and Figure 5 show the locations of main components on the evaluation board.

Figure 3. Hardware block diagram

Figure 3 illustrates the connections of the
UM2514 Rev 4 13/83
82
Hardware layout and configuration UM2514
CN21 STLINK
-
V3E
USB
CN14 JTAG/SWD
CN23 Audio In
LD8 STLINK
-V3E
COM LED
B1 Joystick
B3 Reset Button
4 colour LEDs
CN22 Type
-C
connector
U6 STM32G474QET6U
CN5, CN6 Extension header
CN16 STDC14
CN11 USART
CN28 MicroSD card
B2 USRE Button
CN26 Audio out
CN3 DIFF ADC input
RV2 Potentiometer
LD7 STLINK
-
V3E Power over current alarm
CN17 ETM TRACE
CN15 TAG
CN20/CN24 TFT LCD c
onnector
CN19 Type-C SIG
JP12 5V source
CN2 Motor control c
onnector 1
CN1 EXT_I2C c
onnector
CN12 CAN1
CN4 Motor control connector 2
CN10 CAN2
CN32 DAC2
CN18 MFX
CN27 ST
-LINK
SWD
CN25 Power Jack
CN7
CN8
LD6 5V LED
RV3 VDD ADJ
LD5 HB LED
CN9 DAC

Figure 4. STM32G474E-EVAL Evaluation board layout (top view)

14/83 UM2514 Rev 4
UM2514 Hardware layout and configuration
CN31 Smartc
ard

Figure 5. STM32G474E-EVAL Evaluation board layout (bottom view)

UM2514 Rev 4 15/83
82
Hardware layout and configuration UM2514
Figure 6 provides the mechanical dimensions of the STM32G474E-EVAL board.

Figure 6. STM32G474E-EVAL Evaluation board mechanical dimensions (top view)

16/83 UM2514 Rev 4
UM2514 Hardware layout and configuration

5.1 STLINK-V3E

STLINK-V3E facility for debug and flashing of STM32G474QET6U 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 color LEDs: communication, power
The USB connector CN21 can be used to power the STM32G474E-EVAL regardless of the STLINK-V3E facility used for debugging or programming STM32G474QET6U. This holds also when the STLINK stand-alone tool is connected to connector CN14 or CN15 or CN16 or CN17 and used for debugging or programming the STM32G474QET6U.
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 a firmware which needs to be updated from time to time in order to benefit from new functionality or corrections. Refer to the Overview of ST-LINK derivatives technical note (TN1235) for details.
Section 5.3:
Before connecting the STM32G474E-EVAL to a Windows (7, 8 10) PC via USB, a driver for STLINK-V3E must be installed. It is available from www.st.com.

5.2 ETM trace

The connector CN17 is available to output trace signals used for debug. By default, the evaluation board is configured such that, STM32G474QET6U signals PE2, PE3 and PE4 are connected to trace outputs TRACECLK, TRACED0, and TRACED1 of CN17, but these signals shared with Audio codec, motor control connectors and FMC.
Tabl e 3 shows the setting of configuration elements to shunt PE3 and PE4 MCU ports to
CN17 connector, to use them as debug trace signals.
Tabl e 4 shows the setting of configuration I/Os to shunt PE2, PE3, PE4 and PE5 MCU ports
to use them as the right functions.
R210
R207

Table 3. Setting of configuration elements for trace connector CN17

Element Setting Configuration
open
closed CN17 pin 14 connects to JTAG_TDO.
open
closed CN17 pin 16 connects to JTAG_TRST.
Default setting.
CN17 pin 14 connects to TRACED0.
Default setting.
CN17 pin 16 connects to TRACED1.
UM2514 Rev 4 17/83
82
Hardware layout and configuration UM2514

Table 4. Setting of configuration I/Os for PE2, PE3, PE4 and PE5

Element Setting Configuration
R147 SB111 SB103
R147 in SB111 open SB103 open
R147 out SB111 closed SB103 open
Default setting.
PE2 connects to TRACECLK.
Default setting.
PE2 connects to SAI_MCLK_A.
R147 out SB111 open
PE2 connects to MC1|MC2_PFC_Sync.
SB103 closed
R145 in SB110 open SB118 open
Default setting.
PE3 connects to TRACED0.
R146 out
R145 out
R145 SB110 SB118 R146
SB110 closed SB118 open R146 out
R145 out SB110 open SB118 closed
Default setting.
PE3 connects to SAI_SD_B.
PE3 connects to MC1|MC2_PFC_pwm.
R146 out
R145 out SB110 open SB118 open
Default setting.
PE3 connects to memory address line A19.
R146 in
R144 in SB107 open SB109 open
Default setting.
PE4 connects to TRACED1.
R143 out
R144 out
R144 SB107 SB109 R143
SB107 closed SB109 open R143 out
R144 out SB107 open SB109 closed
Default setting.
PE4 connects to SAI_FS_A.
PE4 connects to MC1_ICL_SHUTOUT.
R143 out
R144 out SB107 open SB109 open
Default setting.
PE4 connects to memory address line A20.
R143 in
18/83 UM2514 Rev 4
UM2514 Hardware layout and configuration
Table 4. Setting of configuration I/Os for PE2, PE3, PE4 and PE5 (continued)
Element Setting Configuration
SB28 closed
SB28 SB97
SB97 open
SB28 open SB97 closed
Warning: Generally we have one default setting for best performance

5.3 Power supply

The STM32G474E-EVAL board is designed to be powered from a 5 V DC power source. It incorporates a precise PTC and transil to protect the board from damage due to wrong power supply. One of the following five 5 board configuration:
Power jack CN25: Marked PSU on the board (JP12 jumper setting on E5V on silkscreen). The positive pole is on the center pin as illustrated in Figure 22. The External power supply from Power jack CN25 is from 5 V 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.
Micro-B USB receptacle CN21 of STLINK-V3E with enumeration: Up to 500 mA can be supplied to the board (JP12 jumper setting on STLK on silkscreen). Offers the enumeration feature described in Section 5.3.1.
Micro-B USB receptacle CN21 of STLINK-V3E without enumeration: Up to 1000 mA can be supplied to the board directly without enumeration (JP12 jumper setting on CHGR on silkscreen).
USB Type-C receptacle CN22 of USB PD interface: Marked TYPE-C on the board (JP12 jumper setting on U5V on 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 silkscreen).
Default setting.
PE5 connects to TRACED2
PE5 connects to MC1_DissipativeBrake
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).
V DC power inputs can be used, upon appropriate
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.
Tabl e 5: Power supply related jumper and solder bridge settings describes the settings of all
jumpers related to powering the STM32G474E-EVAL and extension board. VDD_MCU is STM32G474QET6U digital supply voltage line. It can be connected to a fixed 3.3
UM2514 Rev 4 19/83
V or with
82
Hardware layout and configuration UM2514
an adjustable voltage regulator controlled by RV3 potentiometer and producing a range of voltages between 1.62
V and 3.6 V.

5.3.1 Supplying the board through STLINK-V3E USB port

To power the STM32G474E-EVAL this way, 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 host USB port current supply capability is limited to 100 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 V3E sets the U25 STMPS2151 switch to 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 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
bridge settings. STLINK-V3E bypasses STMPS2151 power regardless of enumeration
procedure result and passes the power unconditionally to the board.
mA. It is enough because only STLINK-V3E part of the
mA. If the answer is positive, the STLINK-
mA. In such an event, the LD7 LED
Tabl e 5: Power supply related jumper and solder
The LD6 green LED turns on whenever the whole board is powered.

5.3.2 Using STLINK-V3E along with powering through CN25 power jack

When the board requires a current higher than 300 mA, the host PC, connected to STLINK­V3E USB port for debugging or programming, cannot supply the STM32G474QET6U 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 E5V position
2. Connect the external power source to CN25
3. Check that the green LED LD6 is turned on
4. Connect host PC to USB connector CN21
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 is capable of supplying 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 is capable of supplying 300 mA (the enumeration succeeds) and it has a 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 is not capable of supplying 300 mA (the enumeration fails). The STLINK­V3E does not supply the rest of the STM32G474E-EVAL from its USB port VBUS line.
20/83 UM2514 Rev 4
UM2514 Hardware layout and configuration
67/. &+*5(989 '69
67/. &+*5(989 '69
67/. &+*5(989 '69
67/. &+*5(989 '69
67/. &+*5(989 '69
Tabl e 5 details jumper and solder bridge settings used for the configuration of the power
supply of the STM32G474E-EVAL.
Table 5. Power supply related jumper and solder bridge settings
Jumper /
solder bridge
JP12 Power source
selector
setting Configuration
Default setting.
STM32G474E-EVAL is supplied through CN21 Micro-B USB receptacle. Depend on host PC USB port’s powering capability declared in the enumeration.
STM32G474E-EVAL is supplied through 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 CN 25 power jack.
STM32G474E-EVAL is supplied through CN21 Micro-B USB receptacle.
Setting for powering the board through CN21 using USB charger.
JP7 Vbat connection
JP6 VDDA
connection
JP11 VDD_MCU
connection
Default setting.
Vbat is connected to VDD.
Vbat is connected to battery.
VDDA terminal of STM32G474QET6U is connected with VDD_MCU.
Default setting.
VDDA terminal of STM32G474QET6U is connected to 3.3 V.
Default setting.
VDD_MCU (VDD terminals of STM32G474QET6U) is connected to fixed 3.3 V.
VDD_MCU is connected to voltage in the range from +1.62 V to +3.61 V, adjustable with potentiometer RV3.
UM2514 Rev 4 21/83
82
Hardware layout and configuration UM2514
Note: On all STLINK-V3E boards, the target application is now able to run even if the STLINK-V3E
is either not connected to a USB host, or is powered through a USB charger (or through a not-enumerating USB host).

5.4 Clock references

Two clock references are available on the STM32G474E-EVAL Evaluation board for the STM32G474QET6U target microcontroller.
32.768 kHz crystal X3, for embedded RTC
24 MHz crystal X2, for main clock generator
The main clock generation is possible via an internal RC oscillator or from STLK_MCO, disconnected by removing resistors R312, R313 and R317 when internal RC clock is used.

Table 6. X3 crystal related solder bridge settings

SB88
SB87
SB82
SB81
Solder
bridge
Solder
bridge
Setting Configuration
Default setting.
Open
Closed
Open
Closed
PC14 OSC32_IN terminal is not routed to extension connector CN5. X3 is used as clock reference.
PC14 OSC32_IN is routed to extension connector CN5. Resistor R315 must be removed, for X3 quartz circuit not to disturb clock reference or source on daughter board.
Default setting.
PC15 OSC32_OUT terminal is not routed to extension connector CN5. X3 is used as clock reference.
PC15 OSC32_OUT is routed to extension connector CN5. Resistor R314 must be removed, for X3 quartz circuit not to disturb clock reference on daughter board.

Table 7. X2 crystal related solder bridge settings

Setting Configuration
Default setting.
open
closed
open
closed
PF0 OSC_IN terminal is not routed to extension connector CN5. X2 is used as clock reference.
PF0 OSC_IN is routed to extension connector CN5. Resistor R317 and R312 must be removed, in order not to disturb clock reference or source on daughterboard.
Default setting.
PF1 OSC_OUT terminal is not routed to extension connector CN5. X2 is used as clock reference.
PF1 OSC_OUT is routed to extension connector CN5. Resistor R313 must be removed, in order not to disturb clock reference or source on daughter board.
22/83 UM2514 Rev 4
UM2514 Hardware layout and configuration
!
!

5.5 Reset source

The general reset of the STM32G474E-EVAL board is active low. The reset sources are:
reset button B3
JTAG/SWD connector CN14, ETM trace connector CN17, STDC14 connector CN16
and TAG connector CN15 (reset from debug tools)
Through extension connector CN5 pin 30 (reset from daughter board)
Embedded STLINK-V3E

5.6 Boot Option

After reset, the STM32G474QET6U MCU can boot from the following embedded memory locations:
Main (user, non-protected) Flash memory
System (protected) Flash memory
RAM, for debugging
The boot option is configured by setting switch SW7 (BOOT0) and the boot base address programmed in the nBOOT1, nBOOT0 and nSWBOOT0 of FLASH_OPTR option bytes.

Table 8. Boot selection switch

Switch Setting Description
SW7

5.6.1 Limitations

BOOT0 PB8 is exclusive with FDCAN1, JP1 must be opened to disconnect FDCAN1_RX signal.

5.7 Audio

A WM8894 codec is connected to SAI interface of the STM32G474QET6U. It supports the TDM feature of the SAI port. The TDM feature enables the STM32G474QET6U to simultaneously stream two independent stereo audio channels to two separate stereo analog audio outputs. The codec communicates with the STM32G474QET6U via the I2C3 bus, which is shared with MFX, Temperature Sensor, EXT_I2C connector.
BOOT0 line is tied high. STM32G474QET6U boots from system Flash memory (nBOOT1 bit of FLASH_OPTR register is set high) or from RAM (nBOOT1 is set low).
Default setting. BOOT0 line is tied low. STM32G474QET6U boots from Main Flash
memory.
-
UM2514 Rev 4 23/83
82
Hardware layout and configuration UM2514
The audio connections are:
The analog line input is connected to ADC of WM8994ECS/R through blue audio jack CN23.
The analog line output is connected to DAC of WM8994ECS/R via green audio jack CN26.
Two external speakers can be connected to WM8994ECS/R via JP17 for right speaker and JP16 for left speaker, not fitted as default.
The I2C-bus address of WM8994 codec are 0x34 or 0x35.

5.7.1 Limitations in using audio features

Due to the share of PE2, PE3, PE4 and PF6 terminals of STM32G474QET6U by multiple peripherals, refer to
If the SAI_MCLKA, SAI_SDB and SAI_FSA are used as part of SAI port, it cannot be used as TRACE and FMC peripheral.
If the SAI port of STM32G474QET6U is used for streaming audio to the WM8994 codec IC, STM32G474QET6U cannot control the motor.
Tabl e 4. The following limitations apply in using the audio features:

5.8 USB FS port

The STM32G474E-EVAL board supports USB full-speed (FS) as a USB device communication via USB Type-C receptacle CN22.
When a USB host connection to the USB Type-C receptacle CN22 of STM32G474E-EVAL is detected, the STM32G474E-EVAL board starts behaving as a USB device. Depending on the powering capability of the USB host, the board can take power from VBUS terminal of CN22. In the board schematic diagrams, the corresponding power voltage line is called U5V.

5.8.1 Operating voltage

The USB-related operating supply voltage of STM32G474QET6U (VDD_USB line) must be within the range from 3.0
V to 3.6 V.

5.9 RS232 and RS485 port

The STM32G474E-EVAL board offers one RS-232 communication or RS-485 communication port. They use the same DB9 male connector CN11. RX and TX signals of USART1 port of STM32G474QET6U are shared with USBPD and VCP. configuration PA10 of STM32G474QET6U terminals.

5.9.1 Limitations

Due to the sharing of PA9 and PA10 terminals of STM32G474QET6U by multiple peripherals, if RS-232 or RS485 port use as part of USART1 port, it cannot be used as USBPD and VCP peripheral.
Table 9 shows the
24/83 UM2514 Rev 4
UM2514 Hardware layout and configuration

5.9.2 Operating voltage

The RS-232 or RS-485 operating supply voltage of STM32G474QET6U (VDD line) must be within the range from 1.62
Table 9. Configuration PA10 of STM32G474QET6U terminals
V to 3.6 V.
USART1_RX is connected to RS-232 RXD of transceiver.
JP9 USART1_RX
connection
JP10 VCP_RX
connection

5.10 microSD card

The CN28 slot for microSD card is routed to STM32G474QET6U SPI port, accepting 8GB (or more) Micro SD card. One 16-Gbyte microSD card is delivered as part of STM32G474E­EVAL. The card insertion switch is routed to the MFX_GPIO5 of MFX MCU port and it must be set with internal pull-up.

5.10.1 Limitations

Due to the share of I/O port, the following limitations apply:
The microSD card cannot be operated simultaneously with motor control connector 2.
USART1_RX is connected to RS-485 RO of transceiver.
Default setting.
USART1_RX is not connected to RS-232 or RS-485 of transceiver.
Default setting.
VCP_RX is connected to STLINK-V3E STLK_VCP_TX.
VCP_RX is not connected to STLINK-V3E STLK_VCP_TX.

5.10.2 Operating voltage

The supply voltage for STM32G474E-EVAL microSD card operation must be within the range from 1.62
V to 3.6 V.

5.11 Motor control

The CN2 (MC1) and CN4 (MC2) connectors are designed to receive a motor control module. Available signals on these connectors include emergency stop, motor speed, 3­phase motor current, bus voltage, heatsink temperature coming from the motor driving board and 6 channels of PWM control signal going to the motor driving circuit.
The dedicated motor control STM32G474E-EVAL1 board is supported for motor control module application only.
UM2514 Rev 4 25/83
82
Loading...
+ 58 hidden pages