ST STM32L476ZG User manual

June 2023 UM1855 Rev 6 1/80
1
UM1855
User manual
Evaluation board with STM32L476ZG MCU
Introduction
The STM32L476G-EVAL Evaluation board is designed as a complete demonstration and
development platform for the STMicroelectronics Arm®Cortex®-M4 core-based
STM32L476ZG microcontroller with three I²C buses, three SPI and six USART ports, CAN
port, SWPMI, two SAI ports, 12-bit ADC, 12-bit DAC, LCD driver, internal 128-Kbyte SRAM,
1-Mbyte flash memory, Quad-SPI port, touch sensing capability, USB OTG FS port, LCD
controller, flexible memory controller (FMC), JTAG debug port.
STM32L476G-EVAL, shown in Figure 1, is used as a reference design for user application
development, although it is not considered the final application.
A full range of hardware features on the board helps users to evaluate all on-board
peripherals such as USB, USART, digital microphones, ADC and DAC, dot-matrix TFT LCD,
LCD glass module, IrDA (supported up to version MB1144 C-01 of the board), LDR, SRAM,
NOR flash memory device, Quad-SPI flash memory device, microSD™ card, sigma-delta
modulators, smartcard with SWP, CAN transceiver, EEPROM, RF-EEPROM. Extension
headers allow connecting daughterboards or wrapping boards.
ST-LINK/V2-1 in-circuit debugger and flashing facility are integrated on the main board.
Figure 1. STM32L476G-EVAL Evaluation board
1. Picture not contractual.
www.st.com

Contents UM1855
2/80 UM1855 Rev 6
Contents
1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2 Ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.1 Codification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3 Development environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.1 System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
3.2 Development toolchains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
3.3 Demonstration software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
4 Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
5 Unpacking recommendations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
6 Hardware layout and configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
6.1 ST-LINK/V2-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
6.1.1 Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
6.1.2 ST-LINK/V2-1 firmware upgrade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
6.2 ETM trace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
6.3 Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
6.3.1 Supplying the board through the ST-LINK/V2-1 USB port . . . . . . . . . . . 17
6.3.2 Using ST-LINK/2-1 along with powering via the power jack (CN22) . . . 18
6.4 Clock references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
6.5 Reset sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
6.6 Boot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
6.6.1 Boot options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
6.6.2 Bootloader limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
6.7 Audio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
6.7.1 Digital microphones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
6.7.2 Headphones outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
6.7.3 Limitations in using audio features . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
6.8 USB OTG FS port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
6.8.1 STM32L476G-EVAL used as a USB Device . . . . . . . . . . . . . . . . . . . . . 25

UM1855 Rev 6 3/80
UM1855 Contents
5
6.8.2 STM32L476G-EVAL used as a USB Host . . . . . . . . . . . . . . . . . . . . . . . 25
6.8.3 Configuration elements related to the USB OTG FS port . . . . . . . . . . . 26
6.8.4 Limitations in using the USB OTG FS port . . . . . . . . . . . . . . . . . . . . . . 27
6.8.5 Operating voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
6.9 RS-232 and IrDA ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
6.9.1 RS-232 port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
6.9.2 IrDA port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
6.9.3 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
6.9.4 Operating voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
6.10 LPUART port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
6.11 microSD™ card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
6.11.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
6.11.2 Operating voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
6.12 Motor control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
6.12.1 Board modifications to enable motor control . . . . . . . . . . . . . . . . . . . . . 32
6.12.2 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
6.13 CAN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
6.13.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
6.13.2 Operating voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
6.14 Extension connectors (CN6 and CN7) . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
6.15 LCD glass module daughterboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
6.15.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
6.16 TFT LCD panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
6.17 User LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
6.18 Physical input devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
6.18.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
6.19 Operational amplifier and comparator . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
6.19.1 Operational amplifier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
6.19.2 Comparator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
6.20 Analog input, output, VREF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
6.21 SRAM device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
6.21.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
6.21.2 Operating voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
6.22 NOR flash memory device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
6.22.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46

Contents UM1855
4/80 UM1855 Rev 6
6.22.2 Operating voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
6.23 EEPROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
6.23.1 Operating voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
6.24 RF-EEPROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
6.25 Quad-SPI flash memory device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
6.25.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
6.25.2 Operating voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
6.26 Touch-sensing button . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
6.26.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
6.27 Smartcard, SWP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
6.27.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
6.27.2 Operating voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
6.28 Near field communication (NFC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
6.29 Dual-channel sigma-delta modulators STPMS2L . . . . . . . . . . . . . . . . . . 53
6.29.1 STPMS2L presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
6.29.2 STPMS2L settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
6.29.3 STPMS2L power metering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
6.29.4 STPMS2L for PT100 measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
6.29.5 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
6.30 STM32L476ZG current consumption measurement . . . . . . . . . . . . . . . . 57
6.30.1 IDD measurement principle - analog part . . . . . . . . . . . . . . . . . . . . . . . 57
6.30.2 Low-power mode IDD measurement principle - logic part . . . . . . . . . . . 59
6.30.3 IDD measurement in Dynamic-Run mode . . . . . . . . . . . . . . . . . . . . . . . 60
6.30.4 Calibration procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
7 Connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
7.1 RS-232 D-sub male connector (CN9) . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
7.2 Power connector (CN22) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
7.3 LCD daughterboard connectors (CN11 and CN14) . . . . . . . . . . . . . . . . . 63
7.4 Extension connectors (CN6 and CN7) . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
7.5 ST-LINK/V2-1 programming connector (CN16) . . . . . . . . . . . . . . . . . . . . 67
7.6 ST-LINK/V2-1 Type-B USB connector (CN17) . . . . . . . . . . . . . . . . . . . . . 67
7.7 JTAG connector (CN15) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
7.8 ETM trace debugging connector (CN12) . . . . . . . . . . . . . . . . . . . . . . . . . 69
7.9 microSD™ card connector (CN18) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70

UM1855 Rev 6 5/80
UM1855 Contents
5
7.10 ADC/DAC connector (CN8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
7.11 RF-EEPROM daughterboard connector (CN3) . . . . . . . . . . . . . . . . . . . . 71
7.12 Motor control connector (CN2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
7.13 USB OTG FS Micro-AB connector (CN1) . . . . . . . . . . . . . . . . . . . . . . . . 72
7.14 CAN D-sub male connector (CN5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
7.15 NFC connector (CN13) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
8 STM32L476G-EVAL board information . . . . . . . . . . . . . . . . . . . . . . . . . 75
8.1 Product marking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
8.2 STM32L476G-EVAL product history . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
8.3 Board revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
9 Federal Communications Commission (FCC)
and ISED Canada Compliance Statements . . . . . . . . . . . . . . . . . . . . . . 78
9.1 FCC Compliance Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
9.1.1 Part 15.19 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
9.1.2 Part 15.105 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
9.1.3 Part 15.21 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
9.2 ISED Compliance Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
9.2.1 Compliance Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
9.2.2 Déclaration de conformité . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
10 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79

List of tables UM1855
6/80 UM1855 Rev 6
List of tables
Table 1. Ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Table 2. Codification explanation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Table 3. ON/OFF conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Table 4. Setting of configuration elements for trace connector (CN12) . . . . . . . . . . . . . . . . . . . . . . 16
Table 5. Power-supply-related jumper settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Table 6. X1-crystal-related solder bridge settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Table 7. X2-crystal-related solder bridge settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Table 8. Boot selection switch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Table 9. Bootloader-related jumper setting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Table 10. Digital microphone-related jumper settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Table 11. Configuration elements related to the USB OTG FS port. . . . . . . . . . . . . . . . . . . . . . . . . . 26
Table 12. Settings of configuration elements for RS-232 and IrDA ports . . . . . . . . . . . . . . . . . . . . . . 28
Table 13. Hardware settings for LPUART . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Table 14. Terminals of microSD™ slot (CN18). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Table 15. Motor control terminal and function assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Table 16. CAN related jumpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Table 17. LCD-daughterboard-related configuration elements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Table 18. LCD glass element mapping - segments 0 to 9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Table 19. LCD glass element mapping - segments 10 to 19 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Table 20. LCD glass element mapping - segments 20 to 29 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Table 21. LCD glass element mapping - segments 30 to 39 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Table 22. Access to TFT LCD resources with FMC address lines A0 and A1 . . . . . . . . . . . . . . . . . . 41
Table 23. Assignment of CN19 connector terminals to TFT LCD panel . . . . . . . . . . . . . . . . . . . . . . . 41
Table 24. Port assignment for control of LED indicators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Table 25. Port assignment for control of physical input devices. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Table 26. Setting of jumpers related to potentiometer and LDR. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Table 27. SRAM chip select configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Table 28. NOR flash memory-related configuration elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Table 29. Configuration elements related to Quad-SPI device. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Table 30. Touch-sensing-related configuration elements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Table 31. Assignment of ports for ST8024CDR control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Table 32. Configuration elements related to smartcard and SWP . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Table 33. NFC connector (CN13) terminal assignment. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Table 34. JP11 jumper settings during IDD measurement with calibration . . . . . . . . . . . . . . . . . . . . 61
Table 35. RS-232 D-sub (DE-9M) connector (CN9) with HW flow control and ISP support. . . . . . . . 62
Table 36. LCD daughterboard connectors (CN11 and CN14) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Table 37. Daughterboard extension connector (CN6) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Table 38. Daughterboard extension connector (CN7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Table 39. USB Type-B connector (CN17) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Table 40. JATG debugging connector (CN15) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Table 41. Trace debugging connector (CN12) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Table 42. microSD™ card connector (CN18) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Table 43. Analog input-output connector (CN8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Table 44. RF-EEPROM daughterboard connector (CN3). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Table 45. Motor control connector (CN2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Table 46. USB OTG FS Micro-AB connector (CN1). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Table 47. CAN D-sub (DE-9M) 9-pin male connector (CN5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Table 48. NFC terminal (CN13) assignment. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73

UM1855 Rev 6 7/80
UM1855 List of tables
7
Table 49. Product history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Table 50. Board revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Table 51. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79

List of figures UM1855
8/80 UM1855 Rev 6
List of figures
Figure 1. STM32L476G-EVAL Evaluation board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Figure 2. STM32L476G-EVAL hardware block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Figure 3. STM32L476G-EVAL main component layout. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 4. USB Composite Device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Figure 5. Power jack (CN22) polarity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Figure 6. CN20, CN21 top view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Figure 7. PCB top-side rework for motor control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Figure 8. PCB underside rework for motor control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 9. LCD glass module daughterboard in display position. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Figure 10. LCD glass module daughterboard in I/O-bridge position . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Figure 11. LCD glass display element mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Figure 12. NFC board plugged into STM32L476G-EVAL board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Figure 13. Routing of STPMS2L dual-channel sigma-delta modulators . . . . . . . . . . . . . . . . . . . . . . . 54
Figure 14. Power measurement principle schematic diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Figure 15. STPMS2L power metering schematic diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Figure 16. Temperature measurement principle schematic diagram. . . . . . . . . . . . . . . . . . . . . . . . . . 57
Figure 17. Schematic diagram of the analog part of IDD measurement . . . . . . . . . . . . . . . . . . . . . . . 58
Figure 18. Schematic diagram of logic part of Low-power mode IDD measurement. . . . . . . . . . . . . . 59
Figure 19. Low-power mode IDD measurement timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Figure 20. RS-232 D-sub (DE-9M) 9-pole connector (front view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Figure 21. Power supply connector (CN22) (front view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Figure 22. USB Type-B connector (CN17) (front view) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Figure 23. JTAG debugging connector (CN15) top view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Figure 24. Trace debugging connector (CN12) top view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Figure 25. microSD™ card connector (CN18) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Figure 26. Analog input-output connector (CN8) top view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Figure 27. RF-EEPROM daughterboard connector (CN3) front view . . . . . . . . . . . . . . . . . . . . . . . . . 71
Figure 28. Motor control connector (CN2) top view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Figure 29. USB OTG FS Micro-AB connector (CN1) front view. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Figure 30. CAN D-sub (DE-9M) 9-pole male connector (CN5) front view . . . . . . . . . . . . . . . . . . . . . . 73
Figure 31. NFC female connector (CN13) top view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73

UM1855 Rev 6 9/80
UM1855 Features
79
1 Features
•STM32L476ZG microcontroller with 1-Mbyte flash memory and 128-Kbyte RAM(a)
•Four power supply options: power jack, ST-LINK/V2-1 USB connector, USB OTG FS
connector, daughterboard
•Microcontroller supply voltage: 3.3 V or range of 1.71 to 3.6 V
•Two MEMS digital microphones
•Two jack outputs for stereo audio headphones with independent content
•Slot for microSD™ card supporting SD, SDHC, SDXC
•4-Gbyte microSD™ card bundled
•16-Mbit (1M x 16 bit) SRAM device
•128-Mbit (8M x 16 bit) NOR flash memory device
•256-Mbit Quad-SPI flash memory device with double transfer rate (DTR) support
•RF-EEPROM with I²C bus
•EEPROM supporting 1 MHz I²C-bus communication speed
•RS-232 port configurable for communication or MCU flashing
•IrDA transceiver
•USB OTG FS Micro-AB port
•CAN 2.0A/B-compliant port
•Joystick with four-way controller and selector
•Reset and wake-up/tamper buttons
•Touch-sensing button
•Light-dependent resistor (LDR)
•Potentiometer
•Coin battery cell for power backup
•LCD glass module daughterboard (MB979) with 40x8-segment LCD driven directly by
STM32L476ZG
•2.8-inch 320x240 dot-matrix color TFT LCD panel with resistive touchscreen
•Smartcard connector and SWP support
•NFC transceiver connector
•Connector for ADC input and DAC output
•Power-metering demonstration with dual-channel sigma-delta modulator
•PT100 thermal sensor with dual-channel sigma-delta modulator
•MCU current consumption measurement circuit
•Access to the comparator and operational amplifier of STM32L476ZG
•Extension connector for motor control module
•JTAG/SWD, ETM trace debug support, user interface through USB Virtual COM port,
embedded ST-LINK/V2-1 debug, and flashing facility
•Extension connector for the daughterboard
a. Arm is a registered trademark of Arm Limited (or its subsidiaries) in the US and/or elsewhere.

Ordering information UM1855
10/80 UM1855 Rev 6
2 Ordering information
To order the STM32L476G-EVAL Evaluation board, refer to Table 1. Additional information
is available from the datasheet and reference manual of the target microcontroller.
2.1 Codification
The meaning of the codification is explained in Table 2.
Table 1. Ordering information
Order code Board references Target STM32
STM32L476G-EVAL
– MB1144(1)
–MB989
(2)
–MB979
(3)
– MB1020(4)
1. Main board
2. TFT LCD daughterboard
3. LCD glass module daughterboard
4. Dual-interface EEPROM daughterboard
STM32L476ZGT6
Table 2. Codification explanation
STM32XXYYZ-EVAL Description Example: STM32L476G-EVAL
XX MCU series in STM32 32-bit Arm Cortex
MCUs STM32L4 series
YY MCU product line in the series STM32L476
ZSTM32 flash memory size:
– G for 1 Mbyte 1 Mbyte
EVAL Evaluation board Evaluation board

UM1855 Rev 6 11/80
UM1855 Development environment
79
3 Development environment
3.1 System requirements
•Multi.OS support: Windows®10, Linux® (a) 64-bit, or macOS® (b)
•USB Type-A or USB Type-C®to Micro-B cable
3.2 Development toolchains
•IAR Systems®- IAR Embedded Workbench® (c)
•Keil®- MDK-ARM(c) (d)
•STMicroelectronics - STM32CubeIDE
3.3 Demonstration software
Demonstration software is preloaded in the STM32L476ZG flash memory, for easy
demonstration of the device peripherals in Standalone mode. For more information and to
download the latest available version, refer to the STM32L476G-EVAL demonstration
software available on the www.st.com website.
4 Conventions
Table 3 defines 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. and other countries.
c. On Windows®only.
d. All other trademarks are the property of their respective owners.
Table 3. ON/OFF conventions
Convention Definition
Jumper JPx ON Jumper fitted
Jumper JPx OFF Jumper not fitted
Solder bridge SBx ON SBx connections closed by solder
Solder bridge SBx OFF SBx connections left open

Unpacking recommendations UM1855
12/80 UM1855 Rev 6
5 Unpacking recommendations
Before the first use, make sure that no damage occurred to the board during shipment and
that no socketed components are loosened in their sockets or fallen into the plastic bag.
In particular, pay attention to the following components:
1. Quartz crystal (X2 position)
2. microSD™ card in its receptacle (CN18)
3. RF-EEPROM board (ANT7-M24LR-A) in its connector (CN3)
For product information related to the STM32L476ZG microcontroller, visit the www.st.com
website.

UM1855 Rev 6 13/80
UM1855 Hardware layout and configuration
79
6 Hardware layout and configuration
The STM32L476G-EVAL Evaluation board is designed around the STM32L476ZG target
microcontroller in an LQFP 144-pin package. Figure 2 illustrates STM32L476ZG
connections with peripheral components. Figure 3 shows the location of the main
components on the Evaluation board.
Figure 2. STM32L476G-EVAL hardware block diagram
Note: If the STM32L476G-EVAL board version is greater than or equal to MB1144 C-02, the IrDA
feature is not populated. Any mention of the IrDA feature in this user manual refers to the
previous versions of the board (up to MB1144 C-01). The version of the board is written on
the sticker placed on the bottom side of the board.
MSv36940V2
GPIO
I2C
USART1
JTAG
Potentiometer Joystick
LED
Key
button
RF EEPROM
connector
RS232
transceiver
IrDA
transceiver
RS232
connector
SAI1 Audio
codec
ST-LINK/V2-1
Standard-B
USB
connector
JTAG, trace and
SWD connectors
Extension
connectors for
GPIOs
two stereo
headphone
outputs
STM32L476ZGT6
CAN transceiver
and connector CAN
Motor control
connector
Comparator2
SDIO
microSD
card
FMC
RTC Battery
GPIO
I/O
Expander
SRAM
NOR flash
memory
USB OTG FS
USB Micro-AB
connector
USB power
switch
2.8’’ color
TFT LCD
LCD
Mifare
connector
Smartcard
with SWP
SWP
GPIO
Smartcard
interface
LDR
OpAmp1
ADC
EEPROM
LCD glass
module
40x8
TFT LCD
controller
DFSDM
two digital MEMS
microphones
Quad-SPI
flash memory
device
QUADSPI
TSC
Touch-sensing button
Sigma-delta
modulator
PT100
sensor
Power-meter
MCU
supply current
measurement
3.3V regulator
1.71 to 3.6V
adjustable
regulator
Sigma-delta
modulator
TFT LCD
touchscreen
GPIO

Hardware layout and configuration UM1855
14/80 UM1855 Rev 6
Figure 3. STM32L476G-EVAL main component layout
MSv36941V2
RV3
Potentiometer
U35 right
microphone
CN21
Headphones 2
jack
CN20
Headphones 1
jack
Standard-B
USB port of
ST-LINK/V2-1
CN15
JTAG
CN12 Trace
CN11
CN14
LCD glass module
daughterboard
DB979
CN9
USART1
R52
LDR
CN3
RF-EEPROM
CN2
Motor control
TS1
Touch-sensing
button
CN1
USB OTG port
U7
STM32L476ZGT6
CN4
Sigma-delta in
CN5
CAN
CN6
CN7
Extension
connectors
U11
IrDA
CN13
NFC
CN19
TFT LCD
CN18
microSD card
CN22
Power jack
U36 left
microphone
Four LEDs
RV1
VDD setting
B1
Reset button
B2
Wake-up / tamper
button
B3
Joystick

UM1855 Rev 6 15/80
UM1855 Hardware layout and configuration
79
6.1 ST-LINK/V2-1
ST-LINK/V2-1 facility for debugging and flashing of STM32L476ZG is integrated on the
STM32L476G-EVAL Evaluation board.
Compared to the ST-LINK/V2 standalone tool available from STMicroelectronics,
ST-LINK/V2-1 offers new features and drops some others.
New features:
•USB software re-enumeration
•Virtual COM port interface on USB
•Mass storage interface on USB
•USB power management request for more than 100 mA current on USB
Features dropped:
•SWIM interface
The USB connector (CN17) can be used to power STM32L476G-EVAL regardless of the
ST-LINK/V2-1 facility used for debugging or for flashing STM32L476ZG. This holds also
when an ST-LINK/V2 standalone tool is connected to the CN12 or CN15 connector and
used for debugging or flashing STM32L476ZG. Section 6.3 provides more detail on
powering STM32L476G-EVAL.
For full detail on both versions of the debug and flashing tool, the standalone ST-LINK/V2
and the embedded ST-LINK/V2-1, refer to www.st.com.
6.1.1 Drivers
Before connecting STM32L476G-EVAL to a Windows®8 or older PC via USB, a driver for
ST-LINK/V2-1 must be installed. It can be downloaded from www.st.com.
In case the STM32L476G-EVAL Evaluation board is connected to the PC before installing
the driver, the Windows device manager might report some USB devices found on
STM32L476G-EVAL as Unknown. To recover from this situation, after installing the
dedicated driver downloaded from www.st.com, the association of Unknown USB devices
found on STM32L476G-EVAL to this dedicated driver must be updated in the device
manager manually. Proceed as shown in Figure 4 using the USB Composite Device line.
Figure 4. USB Composite Device

Hardware layout and configuration UM1855
16/80 UM1855 Rev 6
6.1.2 ST-LINK/V2-1 firmware upgrade
For its operation, ST-LINK/V2-1 employs a dedicated MCU with flash memory. Its firmware
determines ST-LINK/V2-1 functionality and performance. The firmware might evolve during
the life span of STM32L476G-EVAL to include new functionality, fix bugs or support new
target microcontroller families. It is therefore recommended to keep ST-LINK/V2-1 firmware
up to date. The latest version is available from www.st.com.
6.2 ETM trace
The connector CN12 can output trace signals used for debugging. By default, the
Evaluation board is configured such that STM32L476ZG PE2 to PE5 signals are not
connected to trace outputs Trace_D0, Trace_D1, Trace_D2, Trace_D3, and Trace_CK of
CN12. They are used for other functions.
Table 4 shows the setting of configuration elements to shunt PE2, PE3, PE4, and PE5 MCU
ports to the CN12 connector, to use them as debug trace signals.
Warning: Enabling the CN12 trace outputs through the hardware modifications described in
Table 4 results in reducing the memory address bus width to 19 address lines and so the
addressable space to 512 Kwords of 16 bits. As a consequence, the onboard SRAM and
NOR flash memory usable capacity is reduced to 8 Mbits.
Table 4. Setting of configuration elements for trace connector (CN12)
Element Setting Use of PE2, PE3, PE4, PE5 terminals of STM32L476ZG
R103
SB26
R103 in
SB26 open
Default setting.
PE2 connected to LCDSEG38 and memory address line A23.
R103 out
SB26 closed PE2 connected to TRACE_CK on CN12. A23 pulled down.
R104
R104 in Default setting.
PE3 connected to LCDSEG39 and memory address line A19.
R104 out PE3 connected to TRACE_D0 on CN12. A19 pulled down.
R84
SB40
R84 in
SB40 open
Default setting.
PE4 connected to memory address line A20.
R84 out
SB40 closed PE4 connected to TRACE_D1 on CN12. A20 pulled down.
R85
SB38
R85 in
SB38 open
Default setting.
PE5 connected to memory address line A21.
R85 out
SB38 closed PE5 connected to TRACE_D2 on CN12. A21 pulled down.
R86
SB39
R86 in
SB39 open
Default setting.
PE6 is used for address bit A22.
R86 out
SB39 closed PE6 connected to TRACE_D3 on CN12. A22 pulled down.

UM1855 Rev 6 17/80
UM1855 Hardware layout and configuration
79
6.3 Power supply
A5 V DC power source might power the STM32L476G-EVAL Evaluation board. It
incorporates a precise polymer Zener diode (Poly-Zen) protecting the board from damage
due to the wrong power supply. One of the following four 5V DC power inputs can be used,
upon an appropriate board configuration:
•Power jack (CN22), marked PSU_E5V on the board. A jumper must be placed in the
PSU location of JP17. The positive pole is on the center pin as illustrated in Figure 5.
•Type-B USB receptacle (CN17) of ST-LINK/V2-1, offering an enumeration feature
described in Section 6.3.1.
•Micro-AB USB receptacle (CN1) of the USB OTG interface, marked OTG_FS on the
board. Up to 500mA can be supplied to the board in this way.
•Pin 28 of the extension connector (CN6) for custom daughterboards, marked D5V on
the board.
No external power supply is provided with the board.
LD7 red LED turns on when the voltage on the power line marked as +5V is present. All
supply lines required for the operation of the components on STM32L476G-EVAL are
derived from that +5V line.
Table 5 describes the settings of all jumpers related to powering STM32L476G-EVAL and
the extension board. VDD_MCU is STM32L476ZG digital supply voltage line. It can be
connected to a fixed 3.3 V or an adjustable voltage regulator controlled with the RV1
potentiometer and producing a range of voltages between 1.71 and 3.6 V.
6.3.1 Supplying the board through the ST-LINK/V2-1 USB port
To power STM32L476G-EVAL in this way, the USB Host (a PC) gets connected to the
STM32L476G-EVAL board’s Type-B USB receptacle, via a USB cable. This event starts the
USB enumeration procedure. In its initial phase, the host’s USB port current supply
capability is limited to 100 mA. It is enough because only the ST-LINK/V2-1 part of
STM32L476G-EVAL draws power at that time. If the jumper header JP18 is open, the
ST890 power switch (U37) is set to the OFF position, which isolates the remainder of
STM32L476G-EVAL from the power source. In the next phase of the enumeration
procedure, the host PC informs the ST-LINK/V2-1 facility of its capability to supply up to
300 mA of current. If the answer is positive, the ST-LINK/V2-1 sets the ST890 switch (U37)
to the ON position to supply power to the remainder of the STM32L476G-EVAL board. If the
PC USB port cannot supply up to 300 mA of current, the power jack (CN22) can be used to
supply the board.
If a short circuit might occur on the board, the ST890 power switch protects the USB port of
the host PC against a current demand exceeding 600 mA. In such an event, the LD9 LED
turns on.
The STM32L476G-EVAL board can also be supplied from a USB power source not
supporting enumeration, such as a USB charger. In this particular case, the JP18 header
must be fitted with a jumper as shown in Table 5. ST-LINK/V2-1 turns the ST890 power
switch ON regardless of the enumeration procedure result and passes the power
unconditionally to the board.
The LD7 red LED turns on whenever the whole board is powered.

Hardware layout and configuration UM1855
18/80 UM1855 Rev 6
6.3.2 Using ST-LINK/2-1 along with powering via the power jack (CN22)
The board might require more than 300 mA of supply current. It cannot be supplied from the
host PC connected to the ST-LINK/2-1 USB port for debugging or flashing STM32L476ZG.
In such a case, the board can be supplied through CN22 (marked PSU _E5V 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 in the JP15 header in the PSU position.
2. Connect the external 5 V power source to CN22.
3. Check that the red LED (LD7) is turned on.
4. Connect the host PC to the USB connector (CN17).
In case the board demands more than 300 mA and the host PC is connected via USB
before the board is powered from CN22, there is a risk of the following events occurring, in
the order of severity:
1. The host PC can supply 300 mA (the enumeration succeeds) but it does not
incorporate any protection on its USB port. It is damaged due to an overcurrent.
2. The host PC can supply 300 mA (the enumeration succeeds) and it has built-in
overcurrent protection on its USB port, limiting or shutting down the power out of its
USB port when the excessive current demand from STM32L476G-EVAL is detected.
This causes an operating failure to STM32L476G-EVAL.
3. The host PC cannot supply 300 mA (the enumeration fails) so
ST-LINK/V2-1 does not supply the remainder of STM32L476G-EVAL from its USB port
VBUS line.
Figure 5. Power jack (CN22) polarity

UM1855 Rev 6 19/80
UM1855 Hardware layout and configuration
79
Table 5. Power-supply-related jumper settings
Jumper array Jumper setting Configuration
JP17
Power source
selector
JP17 STM32L476G-EVAL is supplied via the power jack
marked PSU_E5V (CN22). The extension connector
(CN6) does not pass the 5 V of STM32L476G-EVAL to
the daughterboard.
JP17 STM32L476G-EVAL is supplied through the Micro-AB
USB connector (CN1). The extension connector (CN6)
does not pass the 5 V of STM32L476G-EVAL to the
daughterboard.
JP17 Default setting.
STM32L476G-EVAL is supplied through the Micro-B
USB connector (CN17). CN6 extension connector does
not pass the 5 V of STM32L476G-EVAL to the
daughterboard.
Check JP18 setting in Table 5.
JP17
STM32L476G-EVAL is supplied through pin 28 of the
extension connector (CN6).
JP17 STM32L476G-EVAL is supplied via the power jack
marked PSU_E5V (CN22). The extension connector
(CN6) passes the 5 V of STM32L476G-EVAL to the
daughterboard. Make sure to disconnect from the
daughterboard any power supply that could generate
conflict with the power supply on the power jack (CN22).
JP12
Vbat connection
JP12
Vbat is connected to the battery.
JP12
Default setting.
Vbat is connected to VDD.
3688967/.'9
3688967/.'9
3688967/.'9
3688967/.'9
3688967/.'9

Hardware layout and configuration UM1855
20/80 UM1855 Rev 6
JP2
VDD_MCU
connection
JP2 Default setting.
VDD_MCU (VDD terminals of STM32L476ZG) is
connected to fixed +3.3 V.
JP2 VDD_MCU is connected to voltage in the range of
+1.71 to +3.6 V, adjustable with potentiometer RV1.
JP10
VDDA
connection
JP10 Default setting.
VDDA terminal of STM32L476ZG is connected to
VDD_MCU.
JP10 VDDA terminal of STM32L476ZG is connected to
+3.3 V.
JP1
VDD_USB
connection
JP1 Default setting.
VDD_USB (VDDUSB terminal of STM32L476ZG) is
connected to VDD_MCU.
JP1
VDD_USB is connected to +3.3V.
JP3
VDD_IO
connection
JP3 Default setting.
VDD_IO (VDDIO2 terminals of STM32L476ZG) is
connected to VDD_MCU
JP3
VDD_IO is open.
JP18
Powering
through USB of
ST-LINK/V2-1
JP18 Default setting.
The Micro-B USB connector (CN17) of ST-LINK/V2-1
can supply power to the STM32L476G-EVAL board
remainder, depending on the powering capability of the
host PC USB port declared in the enumeration.
JP18 Type-B USB connector CN17 of ST-LINK/V2-1 supplies
power to the STM32L476G-EVAL board remainder.
Setting for powering the board through CN17 using
USB charger.
Table 5. Power-supply-related jumper settings (continued)
Jumper array Jumper setting Configuration
Table of contents
Other ST Motherboard manuals

ST
ST ST7LIT15BY0 User manual

ST
ST STM32303C-EVAL User manual

ST
ST STM32F746G-DISCO User manual

ST
ST NUCLEO-F207ZG User manual

ST
ST STSW-IDS002V1 User manual

ST
ST X-NUCLEO-NFC03A1 User manual

ST
ST M24LR64-R User manual

ST
ST STM32H7 Nucleo-144 User manual

ST
ST STM32H753I-EVAL User manual

ST
ST STM32F4 Series Installation and operating instructions

ST
ST STEVAL-IPMnM1S User manual

ST
ST STM32L152-EVAL User manual

ST
ST STM32L152RCT6 Discovery kit User manual

ST
ST STM32G070RBT6 User manual

ST
ST STM32L5 Nucleo-144 board User manual

ST
ST STM3240G-EVAL User manual

ST
ST STEVAL-IDB007V Series User manual

ST
ST STM32100B-EVAL User manual

ST
ST B-L4S5I-IOT01A User manual

ST
ST STM32CubeF4 User manual