Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG...

39
August 2015 DocID027676 Rev 2 1/39 1 UM1879 User manual Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user to discover the STM32L4 ultra-low-power features and to develop and share applications. It is based on STM32L476VGT6 microcontroller with three I2Cs, three SPIs, six USARTs, CAN, SWPMI, two SAIs, 12-bit ADCs, 12-bit DAC, LCD driver, internal 128 Kbytes of SRAM and 1 Mbyte of Flash memory, Quad-SPI, touch sensing, USB OTG FS, LCD controller, FMC, JTAG debugging support. The 32L476GDISCOVERY includes an ST-LINK/V2-1 embedded debugging tool interface, LCD (24 segments, 4 commons), LEDs, pushbutton, joystick, USB OTG FS, audio DAC, MEMS (Microphone, 3 axis gyroscope, 6 axis compass), Quad-SPI Flash memory, embedded ammeter measuring MCU consumption in low-power modes. External boards can be connected thanks to extension and probing connectors. Figure 1. STM32L476 discovery board 1. Picture not contractual. www.st.com

Transcript of Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG...

Page 1: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

August 2015 DocID027676 Rev 2 1/39

1

UM1879User manual

Discovery kit with STM32L476VG MCU

Introduction

The STM32L476 discovery kit (32L476GDISCOVERY) helps the user to discover the STM32L4 ultra-low-power features and to develop and share applications.

It is based on STM32L476VGT6 microcontroller with three I2Cs, three SPIs, six USARTs, CAN, SWPMI, two SAIs, 12-bit ADCs, 12-bit DAC, LCD driver, internal 128 Kbytes of SRAM and 1 Mbyte of Flash memory, Quad-SPI, touch sensing, USB OTG FS, LCD controller, FMC, JTAG debugging support.

The 32L476GDISCOVERY includes an ST-LINK/V2-1 embedded debugging tool interface, LCD (24 segments, 4 commons), LEDs, pushbutton, joystick, USB OTG FS, audio DAC, MEMS (Microphone, 3 axis gyroscope, 6 axis compass), Quad-SPI Flash memory, embedded ammeter measuring MCU consumption in low-power modes.

External boards can be connected thanks to extension and probing connectors.

Figure 1. STM32L476 discovery board

1. Picture not contractual.

www.st.com

Page 2: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

Contents UM1879

2/39 DocID027676 Rev 2

Contents

1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

2 Demonstration software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

3 Order code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

4 Delivery recommendations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

5 Bootloader limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

6 Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

7 Hardware layout and configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

7.1 Embedded ST-LINK/V2-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

7.1.1 Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

7.1.2 ST-LINK/V2-1 firmware upgrade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

7.1.3 Using ST-LINK/V2-1 to program/debug the STM32L476VGT6 on board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

7.1.4 Using ST-LINK/V2-1 to program/debug an external STM32 applicationboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

7.2 Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

7.3 Clock source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

7.4 Reset source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

7.5 User interface: LCD, joystick, LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

7.6 Boot0 configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

7.7 Quad-SPI NOR Flash memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

7.8 USB OTG FS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

7.9 USART configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

7.10 Audio DAC and MEMS microphone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

7.11 9-axis motion sensors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

7.12 I2C extension connector CN2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

7.13 MCU current ammeter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

7.14 Extension connector P1, P2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

7.15 Solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

Page 3: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

DocID027676 Rev 2 3/39

UM1879 Contents

3

8 Schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

Appendix A Power consumption measurements . . . . . . . . . . . . . . . . . . . . . . . . 35

Appendix B Mechanical drawing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38

Page 4: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

List of tables UM1879

4/39 DocID027676 Rev 2

List of tables

Table 1. ON/OFF conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9Table 2. Jumper states . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13Table 3. Debug connector CN4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15Table 4. Reset related jumper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18Table 5. Connector CN2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21Table 6. Extension connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22Table 7. Solder bridges. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23Table 8. Typical power consumption of the STM32L476 discovery board . . . . . . . . . . . . . . . . . . . . 36Table 9. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38

Page 5: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

DocID027676 Rev 2 5/39

UM1879 List of figures

5

List of figures

Figure 1. STM32L476 discovery board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Figure 2. Hardware block diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10Figure 3. STM32L476 discovery board top layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11Figure 4. STM32L476 discovery board bottom layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12Figure 5. Updating the list of drivers in device manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14Figure 6. CN1, CN3 (ON), CN4 connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14Figure 7. CN1, CN3 (OFF), CN4 connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15Figure 8. Board jumper location. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17Figure 9. Connector CN2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20Figure 10. STM32L476 discovery board design top sheet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25Figure 11. ST-LINK/V2-1 with support of SWD only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26Figure 12. STM32L476VGT6 MCU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27Figure 13. IDD measurement / MFX (Multi Function eXpander) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28Figure 14. Joystick ACP, LEDs and pushbutton . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29Figure 15. LCD display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30Figure 16. OTG USB FS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31Figure 17. Audio DAC and microphone MEMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32Figure 18. Quad-SPI Flash memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33Figure 19. Gyroscope, accelerometer, magnetometer MEMS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34Figure 20. Power consumption tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35Figure 21. STM32L476 discovery board mechanical drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

Page 6: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

Features UM1879

6/39 DocID027676 Rev 2

1 Features

STM32L476VGT6 microcontroller featuring 1 Mbyte of Flash memory and 128 Kbytes of RAM in LQFP100 package

On-board ST-LINK/V2-1 supporting USB re-enumeration capability

Three different interfaces supported on USB:

– Virtual com port

– Mass storage

– Debug port

Mbed-enabled (mbed.org)

LCD 24 segments, 4 commons in DIP 28 package

Seven LEDs:

– LD1 (red/green) for ST-LINK/V2-1 USB communication

– LD2 (red) for 3.3 V power on

– LD3 over current (red)

– LD4 (red), LD5 (green) two user LEDs

– LD6 (green), LD7 (red) USB OTG FS LEDs

Pushbutton (reset)

Four direction joystick with selection

USB OTG FS with micro-AB connector

SAI Audio DAC, stereo with output jack

Digital microphone MEMS

Accelerometer and magnetometer MEMS

Gyroscope MEMS

128-Mbit Quad-SPI Flash memory

MCU current ammeter with 4 ranges and auto calibration

I2C extension connector for external board

Four power supply options:

– ST-LINK/V2-1

– USB FS connector

– External 5V

– CR2032 battery (not provided)

Extension connectors

Comprehensive free software including a variety of examples, part of STM32Cube package

Page 7: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

DocID027676 Rev 2 7/39

UM1879 Demonstration software

38

2 Demonstration software

The demonstration software is preloaded in the STM32L476VGT6 Flash memory for an easy demonstration of the device peripherals in stand-alone mode. The latest versions of the demonstration source code and associated documentation can be downloaded from www.st.com/stm32l4-discovery.

3 Order code

To order the discovery kit based on the STM32L476VG MCU, use the order code: STM32L476G-DISCO.

4 Delivery recommendations

Some verifications are needed before using the board for the first time to make sure that nothing was damaged during the shipment and that no components are unplugged or lost. When the board is extracted from its plastic bag, please check that no component remains in the bag. In particularly, please make sure that the following jumpers on top side of the board are plugged: CN3, JP3, JP5, and JP6.

The battery CR2032 is not provided.

Page 8: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

Bootloader limitations UM1879

8/39 DocID027676 Rev 2

5 Bootloader limitations

Boot from system Flash memory results in executing bootloader code stored in the system Flash memory protected against write and erase. This allows in-system programming (ISP), that is, flashing the MCU user Flash memory. It also allows writing data into RAM. The data come in via one of communication interfaces such as USART, SPI, I²C bus, USB or CAN.

Bootloader version can be identified by reading Bootloader ID at the address 0x1FFF6FFE.

The STM32L476VGT6 part soldered on the 32L476GDISCOVERYmain board is marked with a date code corresponding to its date of manufacture. STM32L476VGT6 parts with the date code prior or equal to week 22 of 2015 are fitted with bootloader V 9.0 affected by the limitations to be worked around, as described hereunder. Parts with the date code starting from week 23 of 2015 contain bootloader V 9.2 in which the limitations no longer exist.

To locate the visual date code information on the STM32L476VGT6 package, refer to its datasheet (DS10198) available on www.st.com, section Package Information. Date code related portion of the package marking takes Y WW format, where Y is the last digit of the year and WW is the week. For example, a part manufactured in week 23 of 2015 bares the date code 5 23.

Bootloader ID of the bootloader V 9.0 is 0x90.

The following limitations exist in the bootloader V 9.0:

1. RAM data get corrupted when written via USART/SPI/I2C/USB interface

Description:

Data write operation into RAM space via USART, SPI, I²C bus or USB results in wrong or no data written.

Workaround:

To correct the issue of wrong write into RAM, download STSW-STM32158 bootloader V 9.0 patch package from www.st.com and load "Bootloader V9.0 SRAM patch" to the MCU, following the information in readme.txt file available in the package.

2. User Flash memory data get corrupted when written via CAN interface

Description:

Data write operation into user Flash memory space via CAN interface results in wrong or no data written.

Workaround:

To correct the issue of wrong write into Flash memory, download STSW-STM32158 bootloader V 0.9 patch package from www.st.com and load "Bootloader V9.0 CAN patch" to the MCU, following the information in readme.txt file available in the package

6 Conventions

Table 1 provides conventions used in the present document.

Page 9: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

DocID027676 Rev 2 9/39

UM1879 Conventions

38

Table 1. 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 opened

Page 10: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

Hardware layout and configuration UM1879

10/39 DocID027676 Rev 2

7 Hardware layout and configuration

The STM32L476 discovery board is designed around the STM32L476VGT6 (100-pin LQFP package). The hardware block diagram (see Figure 2) illustrates the connection between STM32L476VGT6 and peripherals (9-axis motion sensors, digital microphone MEMS, LCD segment, 128 Mbytes of Quad-SPI Flash memory, SAI Audio DAC stereo with 3.5mm output jack, USB OTG FS, IDD current measurement, LEDs, pushbutton, joystick) and Figure 3 will help to locate these features on the STM32L476 discovery board.

Figure 2. Hardware block diagram

A to Mini-B USB

Embedded ST_LINK/V2-1

(3V CR2032 Battery) CR1

SWD

Head

er P

1

Head

er P

2 STM32L476VGT6

power

JP6

IO

IO reset

9-axis motion sensors

digital microphone

MEMS

SAI Audio DAC stereo

LCD segment (4x24)

128Mb QuadSPI flash

USB OTG FS with Micro-A-B connector

IDD current measurement

Reset pushbutton

Joystick with 4-direction control and selector

User LEDs LD5 (green)

LD4 (red)

IO

Page 11: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

DocID027676 Rev 2 11/39

UM1879 Hardware layout and configuration

38

Figure 3. STM32L476 discovery board top layout

Page 12: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

Hardware layout and configuration UM1879

12/39 DocID027676 Rev 2

Figure 4. STM32L476 discovery board bottom layout

Page 13: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

DocID027676 Rev 2 13/39

UM1879 Hardware layout and configuration

38

7.1 Embedded ST-LINK/V2-1

The ST-LINK/V2-1 programming and debugging tool is integrated on the STM32L476 discovery board. Compared to ST-LINK/V2 the changes are listed below.The new features supported on ST-LINK/V2-1 are: USB software re-enumeration

Virtual com port interface on USB

Mass storage interface on USB

USB power management request for more than 100mA power on USB

These features are no more supported on ST-LINK/V2-1: SWIM interface

Application voltage lower than 3 V

For all general information concerning debugging and programming features common between V2 and V2-1 please refer to ST-LINK/V2 user manual (UM1075).There are two different ways to use the embedded ST-LINK/V2-1 depending on the jumper states: Program/debug the STM32L476VGT6 on board (Section 7.1.3),

Program/debug an STM32 in an external application board using a cable connected to SWD connector CN4 (Section 7.1.4)

.

7.1.1 Drivers

The ST-LINK/V2-1 requires a dedicated USB driver, which can be found on www.st.com for Windows 7, 8 and XP.

In case the STM32L476 discovery board is connected to the PC before the driver is installed, some interfaces may be declared as “Unknown” in the PC device manager. In this case the user must install the driver files, and update the driver of the connected device from the device manager.

Table 2. Jumper states

Jumper state Description

Both CN3 jumpers ON ST-LINK/V2-1 functions enabled for on board programming (default)

Both CN3 jumpers OFFST-LINK/V2-1 functions enabled for external board through external CN4 connector (SWD supported)

Page 14: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

Hardware layout and configuration UM1879

14/39 DocID027676 Rev 2

Figure 5. Updating the list of drivers in device manager

1. Prefer using the “USB Composite Device” handle for a full recovery.

7.1.2 ST-LINK/V2-1 firmware upgrade

The ST-LINK/V2-1 embeds a firmware upgrade mechanism for in-situ upgrade through the USB port. As the firmware may evolve during the life time of the ST-LINK/V2-1 product (for example a new functionality, bug fixes, support for new microcontroller families), it is recommended to visit www.st.com before starting to use the STM32L476 discovery board and periodically, in order to stay up-to-date with the latest firmware version.

7.1.3 Using ST-LINK/V2-1 to program/debug the STM32L476VGT6 on board

To program the STM32L476VGT6 on board, simply plug in the two jumpers on CN3, as shown in Figure 6 in red, and connect the STM32L476 discovery board to the PC through the Mini-B USB ST-LINK/V2-1 CN1 connector. Make sure the jumpers JP3, JP6.3V3, and JP5.ON are set.

Do not use the CN4 connector.

Figure 6. CN1, CN3 (ON), CN4 connections

Page 15: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

DocID027676 Rev 2 15/39

UM1879 Hardware layout and configuration

38

7.1.4 Using ST-LINK/V2-1 to program/debug an external STM32 applicationboard

To use the ST-LINK/V2-1 to program the STM32 on an external application board (out of the STM32L476VGT6 on board), remove the 2 jumpers from CN3 as shown in Figure 7 in red, and connect your board to the CN4 software debug connector according to Table 3.

Make sure the jumpers JP6.3V3, and JP5.OFF are set.

JP3, must be ON if you use CN4 pin 5 (NRST) in your external application board.

Figure 7. CN1, CN3 (OFF), CN4 connections

Table 3. Debug connector CN4

Pin CN4 Designation

1 Vapp VDD from application

2 SWLCK SWD clock

3 GND Ground

4 SWDIO SWD data input/output

5 NRST RESET of target MCU

6 SWO Reserved

Page 16: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

Hardware layout and configuration UM1879

16/39 DocID027676 Rev 2

7.2 Power supply

The power supply is provided with four options:

– ST-LINK/V2-1: CN1

– CR2032 battery (not provided): CR1

– External 5V: 5V_I

– USB FS connector: USB USER CN7

ST-LINK/V2-1:

JP6 needs to be placed in position 3V3. JP3 is closed. JP5 is in position ON. CN3 jumpers are ON.

The STM32L476G discovery board can be powered from the ST-LINK USB connector CN1 (5V_USB_ST_LINK). Only the ST-LINK circuit has the power before the USB enumeration as the host PC only provides 100mA to the board at that time.

Then during the USB enumeration, the STM32L476 discovery board requires 300 mA of current to the Host PC. If the host is able to provide the required power, the STM32L476 is powered and the red LED LD2 is turned ON, thus the STM32L476 discovery board and its extension board can consume a maximum of 300 mA current, no more. If the host is not able to provide the required current, the STM32L476 and the extension board are not power supplied. As a consequence the red LED LD2 remains turned OFF. In such case it is mandatory to use an external power supply as explained in the next section.

Warning: If the maximum current consumption of the STM32L476 discovery and its extension board exceeds 300 mA, it is mandatory to power STM32L476 discovery using an external power supply connected to 5V_I.

Note: In case this board is powered by an USB charger or an USB battery connected on CN1, there is no USB enumeration, the led LD2 remains OFF and the STM32L476 is not powered. In this specific case only, please fit the jumper JP2 to allow the STM32L476 to be powered anyway. Remove this jumper JP2 if then a Host PC is connected to the ST-LINK/V2-1 CN1 connector to supply the board.

CR2032 battery inserted in CR1 (bottom side):

The CR2032 battery is not provided.

JP6 needs to be placed in position BATT. JP3 is opened. JP5 is in position ON.

The battery supplies the 3V3 and 3V power domains on board. All the peripherals are powered, except the ST-LINK which can only be supplied through the USB connector CN1.

External 5V_I or USB USER CN7 (USB FS connector):

– External 5V_I: The pin 3 5V_I of P2 header can be used as input for an external power supply. In this case, the STM32L476 discovery board must be powered by a power supply unit or by an auxiliary equipment complying with standard EN-60950-1: 2006+A11/2009, and must be Safety Extra Low Voltage (SELV) with a limited power capability.

– To use the USB USER CN7 to power supply the board, a jumper needs to be placed between VUSB pin4 and the pin 3 5V_I of P2 Header (Figure 8).

Page 17: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

DocID027676 Rev 2 17/39

UM1879 Hardware layout and configuration

38

Figure 8. Board jumper location

In this condition it is still possible to use the USB ST-LINK for communication, for programming or debugging, but it is mandatory to power supply the board first using 5V_I or USB USER CN7 then connect the USB ST-LINK cable to the PC. Proceeding this way ensures that the enumeration occurs thanks to the external power source.

The following power sequence procedure must be respected:

1. Connect the external power source to 5V_I or USB USER CN7.

2. Power on the external power supply 5V_I or USB USER CN7.

3. Check that LD2 is turned ON.

4. Connect the PC to USB ST-LINK connector CN1.

If this order is not respected, the board may be supplied by 5V_USB_ST_LINK first then by 5V_I or USB USER CN7 and the following risks may be encountered:

1. If more than 300 mA current is needed by the board, the PC may be damaged or the current supply can be limited by the PC. As a consequence the board is not powered correctly.

2. 300 mA is requested at enumeration (since JP2 must be OFF) so there is risk that the request is rejected and the enumeration does not succeed if the PC cannot provide such current. Consequently the board is not power supplied (LED LD2 remains OFF).

Note: The headers pins 5V (except in battery mode), 3V3, 2V5, 3V can be used as output power supply when an extension board is connected to the P1 and P2 headers. The power consumption of the extension board must be lower than 100 mA.

Page 18: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

Hardware layout and configuration UM1879

18/39 DocID027676 Rev 2

7.3 Clock source

The STM32L476VGT6 MCU uses:

A 32.768 kHz low-speed source:

– By default, the X3 crystal on board

– From an external oscillator through P2 header (pin7 labeled ‘PC14’). The configuration needed is: SB19 opened, SB20 closed, R26 removed.

A system clock source:

– By default, generated by an internal STM32L476VGT6 oscillator.

The configuration needed is:

- SB18 opened, SB21 and SB22 closed.

– Or driven by an X2 Crystal on board (not fitted).

The configuration needed is:

- SB18, SB21 and SB22 opened.

- X2, R88, R89, C77, C78 fitted

– Or driven by a MCO signal (8MHz) from the ST-LINK MCU STM32F103CBT6 (U3).

The configuration needed is:

- SB18 closed, SB22 opened.

- R89 not fitted.

– Or driven externally from PH0 through the P2 header, pin9 labeled ‘PH0’

The configuration needed is:

- SB22 closed, SB18 opened.

- R89 not fitted.

Note: Please refer to oscillator design guide for STM32 microcontrollers (AN2867)

7.4 Reset source

The reset signal NRST of the STM32L476 discovery board is low active and the reset sources include: The reset button B1, connected by default to NRST (SB23 closed)

The embedded ST-LINK/V2-1

The external reset pin 11 of P2 header connector, labeled ‘NRST’

The external reset from SWD connector CN4, pin5

Table 4. Reset related jumper

Jumper Description

JP3

When JP3 is closed, the SWD connector CN4 pin5 and the embedded ST-LINK/V2-1 are connected to NRST.

Default Setting: closed

JP3 is opened, no connection between CN4 and ST-LINK/V2-1 to NRST. This must be used when the ST-LINK/V2-1 is not powered (i.e STM32L476 discovery board) is powered by the CR2032 battery

Page 19: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

DocID027676 Rev 2 19/39

UM1879 Hardware layout and configuration

38

7.5 User interface: LCD, joystick, LEDs

The STM32L476 discovery board features 7 LEDs with the following functionalities:

LD1 COM: LD1 default status is red. LD1 turns to green to indicate that communications are in progress between the PC and the ST-LINK/V2-1.

LD2 PWR: the red LED indicates that the board is powered.

LD3 OC: the red LED indicates a fault when the board is in current limit (510 mA).

LD4 user: The red LED is a user LED connected to the I/O PB2 of the STM32L476VGT6.

LD5 user: The green LED is a user LED connected to the I/O PE8 of the STM32L476VGT6.

LD6, LD7: USB OTG FS LEDs, see Section 7.8

Four direction joystick (B2) with selection and a reset pushbutton (B1) are available as input devices.

A LCD 4x24 segments, 4 commons, multiplexed 1/4 duty, 1/3 bias is mounted on the DIP28 connector U5.

7.6 Boot0 configuration

Boot0 is by default grounded through a pull-down R91.

It is possible to set Boot0 high, removing R91 and putting a jumper between P1 header pin 6 BOOT0 and pin5 3V.

7.7 Quad-SPI NOR Flash memory

128-Mbit Quad-SPI NOR Flash memory is connected to Quad-SPI interface of STM32L476VGT6.

7.8 USB OTG FS

The STM32L476 discovery board supports USB OTG Full Speed communication via an USB Micro-AB connector (CN7) and USB power switch (U14) connected to VBUS. The board can be powered by this USB connection as described in Section 7.2.

A green LED LD6 will be lit in one of these cases:

The power switch (U14) is ON and STM32L476 discovery board works as a USB host

VBUS is powered by another USB host when STM32L476 discovery board works as an USB device.

Red LED LD7 will be lit when an over-current occurs.

In order to connect the OTG_FS_VBUS and OTG_FS_ID signals from the connector CN7 to the OTG FS hardware IP of STM32L476VGT6, please remove the LCD from its socket U5, and close SB24 and SB25.

The default configuration is that the LCD is connected to U5, and SB24 and SB25 are opened. In this case the OTG_FS_VBUS and OTG_FS_ID signals from CN7 are connected to the OTG FS peripheral of the STM32L476VGT6 available on PC11 and PC12.

Page 20: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

Hardware layout and configuration UM1879

20/39 DocID027676 Rev 2

7.9 USART configuration

The USART interface available on PD5 and PD6 of the STM32L476VGT6 can be connected to ST-LINK MCU to use the Virtual Com Port function.

To use the Virtual Com Port function with:

The onboard STM32L476VGT6: set SB13 and SB16 ON. (SB15, SB17 must be OFF)

An external MCU: remove solder from SB13 and SB16, solder a 2 pins header on JP4, then you can connect RX and TX of the external MCU directly to RX and TX of JP4.

(For more details see Section 8: Schematics)

7.10 Audio DAC and MEMS microphone

An audio stereo DAC CS43L22 (U13) is connected to SAI interface of STM32L476VGT6.

The STM32L476VGT6 controls the audio DAC via the I2C1 bus which is shared with the I2C extension connector CN2.

I2C1 is also available on the connector P1, pins labeled ‘PB6’ (I2C1_SCL) and ‘PB7’ (I2C1_SDA).

The stereo output jack connector is CN6.

Note: I2C address of CS43L22 is 0x94.

A MEMS audio sensor omnidirectional digital microphone provides a digital signal in PDM format to the STM32L476VGT6.

7.11 9-axis motion sensors

STM32L476 discovery board supports some 9-axis motion sensors, composed of:

L3GD20 (U7): a three-axis digital output gyroscope,

LSM303C (U6): a 3D accelerometer and 3D magnetometer module,

which are connected to STM32L476VGT6 through SPI.

7.12 I2C extension connector CN2

Figure 9. Connector CN2

Page 21: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

DocID027676 Rev 2 21/39

UM1879 Hardware layout and configuration

38

7.13 MCU current ammeter

The jumper JP5, labeled Idd, allows the consumption of STM32L476VGT6 to be measured directly by a built-in current ammeter circuit able to measure from 60nA to 50mA or by removing the jumper and connecting an ammeter

Jumper on position OFF: STM32L476VGT6 is powered (default).

Jumper on position ON: a module onboard is designed to measure from 60nA to 50mA by using several MOSFETs and switching automatically depending on the read value.

No jumper on JP5: an ammeter must be connected to measure the STM32L476VGT6 current through pin 1 and 2 (if there is no ammeter, the STM32L476VGT6 is not powered).

Table 5. Connector CN2

Pin number Description Pin number Description

1 I2C1_SDA (PB7) 5 +3V3

2 NC 6 NC

3 I2C1_SCL (PB6) 7 GND

4 EXT_RST(PD0) 8 NC

Page 22: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

Hardware layout and configuration UM1879

22/39 DocID027676 Rev 2

7.14 Extension connector P1, P2

The P1 and P2 headers can connect the STM32L476 discovery board to a standard prototyping/wrapping board. STM32L476VGT6 GPIOs are available on these connectors.

P1 and P2 can also be probed by an oscilloscope, logical analyzer or voltmeter.

Table 6. Extension connector

P1 P2

Pin number function Pin number function

1 3V3 15V_U

(5V_USB_ST_LINK)

2 GND 2 GND

3 2V5 35V_I

(5V INPUT)

4 GND 4VUSB

(USB OTG FS VBUS)

5 3V 5 5V

6 BOOT0 6 GND

7 PB3 7 PC14

8 PB2 8 PC15

9 PE8 9 PH0

10 PA0 10 PH1

11 PA5 11 NRST

12 PA1 12 GND

13 PA2 13 PE11

14 PA3 14 PE10

15 PB6 15 PE12

16 PB7 16 PE13

17 PD0 17 PE14

18 NC 18 PE15

19 GND 19 GND

20 GND 20 GND

Page 23: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

DocID027676 Rev 2 23/39

UM1879 Hardware layout and configuration

38

7.15 Solder bridges

Table 7 describes each solder bridge. The default state is indicated in bold.

Table 7. Solder bridges

Bridge State Description

SB1 (ST-LINK PWR)ON ST-LINK module is powered

OFF ST-LINK module is not powered

SB2 (EXT/RF E2P)ON 5V connected to CN2.8

OFF 5V is not connected to CN2.8

SB3, SB4, SB7, SB8 (RESERVED)

OFF Reserved, do not modify

SB5, SB6, SB9, SB10 (DEFAULT) ON Reserved, do not modify

SB11 (STM_RST)

ON No incidence on NRST signal of STM32F103CBT6

OFFNRST signal of STM32F103CBT6 is connected to GND

SB12 OFF Reserved

SB16, SB13 (USART RX, TX)

ONPA2, PA3 of STM32F103CBT6 are connected to PD6, PD5 of STM32L476VGT6

OFFPA2, PA3 of STM32F103CBT6 are not connected to PD6, PD5 of STM32L476VGT6

SB17, SB15 (MFX USART RX,TX)

ONPA10 of STM32F103CBT6 are not connected to PB3 of STM32L476VGT6

OFFPA2, PA3 of STM32F103CBT6 are connected to MFX USART RX,TX

SB14 (T_SWO)

ONPA10 of STM32F103CBT6 is connected to PB3 of STM32L476VGT6

OFFPA10 of STM32F103CBT6 is not connected to PB3 of STM32L476VGT6

SB18 (MCO)ON If SB22 is also ON, MCO is connected to PH0

OFF MCO is not connected to PH0

SB19, SB20 (32.768kHz CLK)ON PC14, PC15 are connected to X3 crystal

OFF PC14, PC15 are not connected to X3 crystal

SB21, SB22 (8MHz CLK)ON PH0, PH1 are connected to X2 crystal. (X2 is not fitted)

OFF PH0, PH1 are not connected to X2 crystal

SB23 (B1-RESET)

ONB1 pushbutton is connected to NRST of STM32L476 discovery board

OFFB1 pushbutton is not connected to NRST of STM32L476 discovery board

Page 24: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

Hardware layout and configuration UM1879

24/39 DocID027676 Rev 2

SB24, SB25 (OTG FS)

ONOTG_FS_VBUS signal is connected to PA9

OTG_FS_ID signal is connected to PA10

OFFOTG_FS_VBUS signal is not connected to PA9

OTG_FS_ID signal is not connected to PA10

SB26 ON Reserved, do not modify

SB27 OFF Reserved, do not modify

SB28 (2.5V REG inhibit)ON U12 (2.5V regulator) input is inhibited

OFF U12 input is not inhibited

SB29 (2.5V REG input)ON 5V is connected to U12 input

OFF 5V is not connected to U12 input

Table 7. Solder bridges (continued)

Bridge State Description

Page 25: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

DocID027676 Rev 2 25/39

UM1879 Schematics

38

8 Schematics

Figure 10. STM32L476 discovery board design top sheet

110

STM32L476 Discovery

MB1184

C-01

6/15/2015

Title:

Size:

Reference:

Date:

Sheet:

of

A4

Revision:

STM32L476G-D

ISCO

Project:

SWDIO

SWCL

K

MCO

NRS

T

NRS

T

MCO

LD_R

SWCL

KSW

DIO

USA

RT_T

XUSA

RT_R

X

LD_G

MFX

_IRQ

_OUT

MFX

_WAKEU

P

QSP

I_D0

QSP

I_D3

QSP

I_D2

QSP

I_D1

QSP

I_CLK

QSP

I_CS

SAI1_F

SSA

I1_S

DSA

I1_S

CK

I2C1_SC

LI2C1_SD

A

AUDIO_R

ST

SAI1_M

CK

AUDIO_D

INAUDIO_C

LK

OTG

_FS_

PowerSw

itchO

n

OTG

_FS_

DM

OTG

_FS_

DP

OTG

_FS_

IDOTG

_FS_

VBU

S

OTG

_FS_

OverCurrent

SEG[0..23]

COM[0..3]

EXT_

RST

PH[0..1]

JOY_C

ENTE

RJO

Y_D

OWN

JOY_L

EFT

JOY_R

IGHT

JOY_U

P

MEM

S_SC

K

MEM

S_MISO

MEM

S_MOSI

GYRO

_CS

GYRO

_INT1

GYRO

_INT2

XL_

CS

XL_

INT

MAG_C

SMAG_D

RDY

MAG_INT

MFX

_USA

RT3_RX

MFX

_USA

RT3_

TX

MFX

_I2C

_SDA

MFX

_I2C

_SCL

BOOT0

SWO

3V3_REG

-ON

PC14

PC15

U_S

TM32

LxST

M32Lx

.SchDoc

Rev A-01 -->

PCB

label M

B1184 A-01

Rev B-01 --> PC

B label M

B1184 B-01, Rem

ove R9

1, Replace COM4..7 by CO

M0..3,

Add SB for U

SB_O

TG, add VBU

S on P2 for U

SB USE

R pow

er su

pply

Rev C-01 --> PC

B label M

B1184 C-01, Rem

ove SW

CLK an

d SW

O sh

orted,

Re

placed on P1

, PB8

..9 by PB

6..7.

-->

MP4

5DT0

2 replaced by MP3

4DT0

1 -->

Xtal 32.768kHz replaced by NX3215SA

-->

Change values of C

27, C

25 : C27=C

25=4

.7pF

-->

Change values of resistors : R40=R

47=6

.04k, R

49=1

5k,

USA

RT_T

XUSA

RT_R

X

3V

GND

GND

NRS

T

PC14

PC15

PH1

PH0

BOOT0

5V_IN

5V

SWDIO

SWCL

K

MCO

NRS

T

USA

RT_R

XUSA

RT_T

X

MFX

_USA

RT3_RX

MFX

_USA

RT3_

TX

SWO

3V3_REG

-ON

U_S

T_LINK_V

2-1

ST_L

INK_V

2-1.SC

HDOC

MFX

_WAKEU

PMFX

_IRQ

_OUT

MFX

_I2C

_SDA

MFX

_I2C

_SCL

MFX

_USA

RT3_RX

MFX

_USA

RT3_

TXNRS

T

U_IDD_m

easurement

IDD_m

easurement.S

chDoc

MFX

_I2C

_SCL

MFX

_I2C

_SDA

MFX

_IRQ

_OUT

MFX

_WAKEU

P

MFX

_USA

RT3_RX

MFX

_USA

RT3_

TX

MFX

_USA

RT3_RX

MFX

_USA

RT3_

TX

3V3

AUDIO_C

LKAUDIO_D

INAUDIO_R

ST

SAI1_F

SSA

I1_S

DSA

I1_S

CK

I2C1_SC

LI2C1_SD

A

SAI1_M

CK

U_A

UDIO

AUDIO.SchDoc

OTG

_FS_

PowerSw

itchO

nOTG

_FS_

OverCurrent

OTG

_FS_

DM

OTG

_FS_

DP

OTG

_FS_

IDOTG

_FS_

VBU

S

U_U

SB_O

TG_F

SUSB

_OTG

_FS.SchD

oc

NRS

TLD

_RLD

_G

EXT_

RST

JOY_C

ENTE

RJO

Y_D

OWN

JOY_L

EFT

JOY_R

IGHT

JOY_U

P

I2C1_SC

LI2C1_SD

A

U_P

eripherals

Perip

herals.SchD

ocSE

G[0..23]

COM[0..3]

U_L

CD_G

H08172

LCD_G

H08172.SchD

oc

I2C1_SC

LI2C1_SD

A

SAI1_M

CK

SAI1_S

CKSA

I1_S

DSA

I1_F

S

AUDIO_R

STAUDIO_D

INAUDIO_C

LK

SEG[0..23]

COM[0..3]

OTG

_FS_

PowerSw

itchO

nOTG

_FS_

OverCurrent

OTG

_FS_

DM

OTG

_FS_

DP

OTG

_FS_

IDOTG

_FS_

VBU

S

NRS

TLD

_RLD

_G

EXT_

RST

JOY_C

ENTE

RJO

Y_D

OWN

JOY_L

EFT

JOY_R

IGHT

JOY_U

P

I2C1_SC

LI2C1_SD

A

PH[0..1]

QSP

I_D0

QSP

I_D3

QSP

I_D2

QSP

I_D1

QSP

I_CLK

QSP

I_CS

U_Q

SPI

QSP

I.SchDoc

QSP

I_D0

QSP

I_D1

QSP

I_D2

QSP

I_D3

QSP

I_CS

QSP

I_CLK

GYRO

_CS

MAG_C

S

MAG_INT

XL_

INT

MAG_D

RDY

MEM

S_SC

K

MEM

S_MISO

MEM

S_MOSI

GYRO

_INT1

GYRO

_INT2

XL_

CS

U_M

EMS

MEM

S.SchD

oc

GYRO

_INT1

GYRO

_INT2

MEM

S_SC

K

GYRO

_CS

MEM

S_MISO

MEM

S_MOSI

MAG_C

S

XL_

CS

MAG_D

RDY

XL_

INT

MAG_INT

NRS

T

SEG[0..23]

COM[0..3]

LD_R

LD_G

EXT_

RST

JOY_C

ENTE

RJO

Y_D

OWN

JOY_L

EFT

JOY_R

IGHT

JOY_U

P

I2C1_SC

LI2C1_SD

A

GYRO

_INT1

GYRO

_INT2

MEM

S_SC

K

GYRO

_CS

MEM

S_MISO

MEM

S_MOSI

MAG_C

S

XL_

CS

MAG_D

RDY

XL_

INT

MAG_INT

OTG

_FS_

PowerSw

itchO

nOTG

_FS_

OverCurrent

OTG

_FS_

DM

OTG

_FS_

DP

OTG

_FS_

IDOTG

_FS_

VBU

S

SWDIO

SWCL

K

MCO

NRS

T

QSP

I_D0

QSP

I_D1

QSP

I_D2

QSP

I_D3

QSP

I_CS

QSP

I_CLK

SAI1_M

CK

SAI1_S

CKSA

I1_S

DSA

I1_F

S

AUDIO_R

STAUDIO_D

INAUDIO_C

LK

USA

RT_T

XUSA

RT_R

X

BOOT0

MFX

_I2C

_SCL

MFX

_I2C

_SDA

MFX

_IRQ

_OUT

MFX

_WAKEU

P

MFX

_USA

RT3_RX

MFX

_USA

RT3_

TX3V

3_REG

-ON

SWO

SWO

3V3_REG

-ON

2V5

GND

GND

Wired on So

lder Side

JP8

JP7

5V_U

SB_S

T_LINK

GND

GND

GND

GND

GND

NC

3V3_REG

-ON

QSP

I_CLK

QSP

I_CS

QSP

I_D0

QSP

I_D1

QSP

I_D2

QSP

I_D3

JOY_C

ENTE

R

JOY_L

EFT

JOY_R

IGHT

JOY_U

P

JOY_D

OWN

LD_R

LD_G

EXT_

RST

I2C1_SC

LI2C1_SD

A

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

P1 Header 2

0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

P2 Header 2

0

PB2

PE8

PA0

PA5

PA1

PA2

PA3

PB6

PB7

PD0

PE11

PB3

PE10

PE12

PE13

PE14

PE15

OTG

_FS_

VBU

S

PC14

PC15

Page 26: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

Schematics UM1879

26/39 DocID027676 Rev 2

Figure 11. ST-LINK/V2-1 with support of SWD only

210

ST-LIN

K/V2-1 with support of SWD only

MB1184

C-01

6/15/2015

Title:

Size:

Reference:

Date:

Sheet:

of

A4

Revision:

STM32L476G-D

ISCO

Project:

USB

_DM

USB

_DP

STM_R

ST

T_JTCK

T_JT

CK

T_JT

MS

STM_J

TMS

STM_J

TCK

OSC

_IN

OSC

_OUT

T_NRST

AIN_1

3V3_ST

_LIN

K

3V3_ST

_LIN

K

SWIM_IN

USB

_DM

USB

_DP

USB VCC

1D-

2D+

3ID

4

GND

5SH

ELL

6

CN1

USB

-MIN

I-typeB

COM

ST-LIN

K Pow

er

3V3_ST

_LIN

K

Jumpers O

N --> D

ISCOVERY S

elected

Jumpers O

FF -->

ST-L

INK S

elected

Boa

rd Id

ent: PC13

=0

T_JT

CK

T_JT

MS

SWD

3V3_ST

_LIN

K

1234

CN3

SB5

SB3

SB6

SB4

SB9

SB7

SB10

SB8

STM_J

TMS

STM_J

TCK

SWCL

K

SWDIO

SWD

RESERVED

DEFAULT

3V3_ST

_LIN

K

T_SWDIO

_IN

T_SW

OLE

D_S

TLINK

LED_S

TLINK

3V3_ST

_LIN

KRed

_Green

21

34

LD1

LD_B

ICOLO

R_CMS

SWDIO

SWCL

KTC

K/SWCL

KTM

S/SW

DIO

Not Fitted

MCO

MCO

T_JRST

1 2 3 4 5 6

CN4

5075BMR-05-SM

AIN_1 T_NRST

T_SW

O

NRS

TT_

NRST

SB11

RC M

ust b

e very close to

STM

32F1

03 pin 29

51

2

GND

3

4

BYPA

SSIN

H

Vin

Vou

t

U1

LD3985M33R

D1

BAT6

0JFILM

TX RX

SB16

SB13

USA

RT_R

X

USA

RT_T

X

Close to JP

Not Fitted

STLINK_TX

STLINK_R

X

Not Fitted

LD2

LED, red

C7 100nF

C71

100nF

C6 100nF

C8 100nF

C5 1uF

C1 1uF

C2 100nF

C4100nF

C3 10nF

C10

20pF

C11

20pF

C73

100nF

C72

20pF

12

X1

8MHz

3V3_ST

_LIN

K

USB

_REN

UMn

PWR_EXT

PWR_E

Nn

3V3_ST

_LIN

K

3

1

2

T1 9013-SOT2

3

3V3_ST

_LIN

K

USB

_REN

UMn

PA14

PA13

PWR_E

Nn

TP2

TP1

EN1

GND 2

VO

4

NC

5

GND 7

VI

6PG

3U4

LD39050P

U33R

C14

1uF

C15

100nF

C13

1uF

C12

100nF

3V3_ST

_LIN

K

5 Volts Outpu

t3 Volts Outpu

t

5 Volts From Externa

l5V

_IN

5V_IN

5 Volts From USB

ST-LINK

JP4

3V3_ST

_LIN

K

3V3_ST

_LIN

K

VBA

T1

PA7 17

PC13

2

PA12

33PC

143

PB0 18

PC15

4JTMS/SW

DIO

34

OSC

IN5

PB1 19

OSC

OUT

6

VSS

_235

NRS

T7

PB2/BOOT1 20

VSS

A8

VDD_2

36

VDDA

9

PB10 21

PA0

10

JTCK/SWCLK37

PA1

11

PB11 22

PA2

12

PA15/JTDI38

PA3 13

VSS_1 23

PA4 14

PB3/JTDO39

PA5 15

VDD_1 24

PA6 16

PB4/JNTRST40

PB12

25

PB541

PB13

26

PB642

PB14

27

PB743

PB15

28

BOOT044

PA8

29

PB845

PA9

30

PB946

PA10

31

VSS_347

PA11

32

VDD_348

U3

STM32F1

03CBT

6

5V

D3

STPS

1L30

A

D2

STPS

1L30

A

JP1

5V_U

SB_S

T_LINK

5V_U

SB_S

T_LINK

MFX

_USA

RT3_RX

MFX

_USA

RT3_

TX

SB17

SB15

D4

BAT6

0JFILM

Not Fitted

1 2

CR1

CR2032 Holder

IN1

IN2

ON

3GND

4

SET

5

OUT

6OUT

7

FAULT

8

U2

ST890C

DR

51

2

GND

3

4

BYPA

SSIN

H

Vin

Vou

t

U12

LD3985M25R C4

7

1uF

C48

100nF

C49

10nF

C54

100nF

C55

1uF

2V5

5V

R11

10K_1%_0402

C9

100nF

12

3

JP6

D6

STPS

1L30

A3V3V

3_REG

R18

4K7_1%

_0402

R82

10K_1%_0402

R83

[NA]

R14

100K

_1%_0402

R86

100K

_1%_0402

R85

4K7_1%

_0402

R84

4K7_1%

_0402

R1 0_5%

_0402

R79 10

0_1%

_0402

R10

10K_1%_0402

R80_5%

_0402

R90_5%

_0402

R71K

5_1%

_04025V

_USB

_ST_

LINK

R78

36K_1%_0402

R2 1K_1%_0402

R19

2K7_1%

_0402

R80

100_1%

_0402

R81

100_1%

_0402

R17

22_1%_0402

R20

22_1%_0402

R21

22_1%_0402

R22

22_1%_0402

R13

[NA]

R12

10K_1%_0402

JP2

SWO

SB14

T_SW

OPB

3

R33

4K7_1%

_0402

3V3

3V3

3V3_REG

R4 330_1%

_0402

R5 330_1%

_0402

3V3_

REG

-ON3V

3_REG

-ON

JP3

R15

[NA]

2.5 Volts Outpu

t

SB1

SB29

SB28

T_JTDIT_JTDOSWIM

SWIM_RSTSWIM_RST_IN

R6100K

_1%_0402

3V3_REG

SB12

R16

2K7_1%

_0402

Ilim = 510mA

Isc= 1.2Ilim to 1.5Ilim = 612mA to 765mA

LD3

LED, red

R31K

_1%_0402

Page 27: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

DocID027676 Rev 2 27/39

UM1879 Schematics

38

Figure 12. STM32L476VGT6 MCU

310

STM32L476VGT6 M

CU

MB11

84C-01

6/15/2015

Title:

Size:

Reference:

Date:

Sheet:

of

A4

Revision:

STM32L476G-D

ISCO

Project:

PA0

Must b

e close to th

e MCU

All this b

lock m

ust b

e very close to

the ST

M32L4

76

SWCL

KSW

DIO

SWDIO

SWCL

KPA

14PA

13

USA

RT_T

XUSA

RT_R

XPD

5USA

RT_T

XUSA

RT_R

X

PC14-O

SC32_IN

PC15-O

SC32_O

UT

SB19

SB20

Must b

e close to th

e Crystal

PE2

1

PE3

2PE

43

PE5

4PE

65

PC13

7

PC14

8PC

159

PH0

12PH

113

NRS

T14

PC0

15PC

116

PC2

17

PC3/VLC

D18

PA0

23PA

124

PA2

25

PA3

26PA

429

PA5

30PA

631

PA7

32

PC4

33PC

534

PB0

35

PB1

36

PB2

37

PE7

38PE

839

PE9

40

PE10

41

PE11

42PE

1243

PE13

44

PE14

45

PE15

46

PB10

47PB

1148

PB12

51

PB13

52PB

1453

PB15

54

PD8

55

PD9

56PD

1057

PD11

58

PD12

59

PD13

60PD

1461

PD15

62

PC6

63

PC7

64PC

865

PC9

66

PA8

67PA

968

PA10

69

PA11

70PA

1271

PA13

72

PA14

76

PA15

77

PC10

78

PC11

79PC

1280

PD0

81

PD1

82

PD2

83PD

384

PD4

85

PD5

86PD

687

PD7

88

PB3

89PB

490

PB5

91PB

692

PB7

93

BOOT0

94

PB8

95

PB9

96

PE0

97PE

198

U9A

STM32L4

76VGT6

VBA

T6

VSS

427

VSS

274

VRE

F-20

VRE

F+21

VDDA_A

DC

22

VSS

510

VDDUSB

73

VDD3

100

VSS

149

VDD2

75VDD1

50

VDD4

28

VSS

A_A

DC

19

VDD5

11

VSS

399

U9B

STM32L4

76VGT6

PA1

PA2

PA3

PA4

PA5

PA6

PA7

PA8

PA9

PA10

PA11

PA12

PA13

PA14

PA15

PB0

PB1

PB2

PB3

PB4

PB5

PB6

PB7

PB8

PB9

PB10

PB11

PB12

PB13

PB14

PB15

PC0

PC1

PC2

PC3

PC4

PC5

PC6

PC7

PC8

PC9

PC10

PC11

PC12

PC13

PD0

PD1

PD2

PD3

PD4

PD5

PD6

PD7

PD8

PD9

PD10

PD11

PD12

PD13

PD14

PD15

PE0

PE1

PE2

PE3

PE4

PE5

PE6

PE7

PE8

PE9

PE10

PE11

PE12

PE13

PE14

PE15

NRS

T

BOOT0

PC14

PH[0..1]

MCO

PH1-OSC

_OUT

SB21

SB22

MCO

12

X2

8MHz

SB18

PH0-OSC

_IN

PH0

PH1

QSP

I_D0

QSP

I_D3

QSP

I_D2

QSP

I_D1

QSP

I_CLK

QSP

I_CS

QSP

I_D0

QSP

I_D1

QSP

I_D2

QSP

I_D3

QSP

I_CS

QSP

I_CLK

SAI1_F

SSA

I1_S

DSA

I1_S

CK

I2C1_SC

LI2C1_SD

A

AUDIO_R

ST

SAI1_M

CK

AUDIO_D

INAUDIO_C

LK

OTG

_FS_

PowerSw

itchO

n

OTG

_FS_

DM

OTG

_FS_

DP

OTG

_FS_

ID

OTG

_FS_

VBU

S

OTG

_FS_

OverCurrent

SEG[0..23]

COM[0..3]

SEG[0..23]

COM[0..3]

EXT_

RST

EXT_

RST

LD_R

LD_G

LD_R

LD_G

NRS

TNRS

T

JOY_C

ENTE

RJO

Y_D

OWN

JOY_L

EFT

JOY_R

IGHT

JOY_U

P

JOY_C

ENTE

RJO

Y_D

OWN

JOY_L

EFT

JOY_R

IGHT

JOY_U

P

MFX

_USA

RT3_RX

MFX

_USA

RT3_

TXMFX

_USA

RT3_RX

MFX

_USA

RT3_

TX

MFX

_WAKEU

PMFX

_WAKEU

PMFX

_IRQ

_OUT

MFX

_IRQ

_OUT

MFX

_I2C

_SDA

MFX

_I2C

_SCL

MFX

_I2C

_SCL

MFX

_I2C

_SDA

PE10

PE11

PE12

PE13

PE14

PE15

PB6

PE2

PE3

PE4

PE5

PE6

PE7

PE9

PA0

PA1

PA2

PA3

PA4

PA5

PC13

PB10

PB11

PB2

PE8

PD0

PA11

PA12

PC9

SAI1_M

CK

AUDIO_R

ST

SAI1_F

S

SAI1_S

CKSA

I1_S

D

COM0

COM1

COM2

COM3

SEG0

SEG1

SEG2

SEG3

SEG4

SEG5

SEG6

SEG7

SEG8

SEG9

SEG10

SEG11

SEG12

SEG13

SEG14

SEG15

SEG16

SEG17

SEG18

SEG19

SEG20

SEG21

SEG22

SEG23

GYRO

_CS

GYRO

_INT1

GYRO

_INT2

MEM

S_SC

K

GYRO

_CS

MEM

S_MISO

MEM

S_MOSI

MEM

S_SC

K

MEM

S_MISO

MEM

S_MOSI

GYRO

_INT1

GYRO

_INT2

MAG_C

SMAG_C

S

XL_

CS

XL_

CS

XL_

INT

MAG_D

RDY

MAG_D

RDY

XL_

INT

MAG_INT

MAG_INT

PE0

PE1

PC0

PC1

PC2

PD1

PD3

PD4

PD7

PD6

PA6

PA7

PA15

PB0

PB1

PB4

PB5

PB12

PB13

PB14

PB15

PC3

PC4

PC5

PC6

PC7

PC8

PD8

PD9

PD10

PD11

PD12

PD13

PD14

PD15

VLC

D

AUDIO_D

INAUDIO_C

LK

I2C1_

SCL

I2C1_

SDA

OTG

_FS_

OverCurrent

OTG

_FS_

VBU

S

OTG

_FS_

ID

OTG

_FS_

DM

OTG

_FS_

DP

OTG

_FS_

PowerSw

itchO

n

VDD_M

CU

C76

1uF_

X5R

_10%

_0603

R91

510_1%

_0402

L1 Ferrite

C35

100nF_

X7R

_10%

_0402

C74

1uF_

POL_

10%_T

ANA

C23

1uF_

POL_

10%_T

ANA

C79

1uF_

X5R

_10%

_0603

C82

100nF_

X7R

_10%

_0402

C81

100nF_

X7R

_10%

_0402

C75

100nF_

X7R

_10%

_0402

C29

100nF_

X7R

_10%

_0402

C80

100nF_

X7R

_10%

_0402

VDDA

VDDA

R24

47_1%_0402

C24

100nF_

X7R

_10%

_0402

VRE

F+

VRE

F+

VDD_M

CU

C83

100nF_

X7R

_10%

_0402

R90

0_5%

_0402

VDD_M

CU

3V

C78

20pF

_NPO

_5%_0402

C77

20pF

_NPO

_5%_0402

R89

0_5%

_0402

R26

0_5%

_0402

R25

0_5%

_0402

R88

220_1%

_0402

PC14

PH[0..1]

R31

4K7_1%

_0402

R32

4K7_1%

_0402

3V

R92

2K2_1%

_0402

R93

2K2_1%

_0402

PC14

PC15

PH1-OSC

_OUT

PH0-OSC

_IN

PC14-O

SC32_IN

PC15-O

SC32_O

UT

BOOT0

SWO

3V3_REG

-ON

3V3_REG

-ON

SWO

PB3

PB3

Not Fitted

PA8

PA9

PA10

PB9

PD2

PB7

PB8

PC10

PC11

PC12

PA9

PA10

SB24

SB25

Layout priority

to PA9

, PA1

0

R87

[NA]

X3

NX3215SA

-32.768K

PC15

PC15

C27

4.7pF_

NPO

_-+0

.25pF_

0402

C25

4.7pF_

NPO

_-+0

.25pF_

0402

Page 28: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

Schematics UM1879

28/39 DocID027676 Rev 2

Figure 13. IDD measurement / MFX (Multi Function eXpander)

410

IDD m

easurement / MFX (Multi Function eXpander)

MB1184

C-01

6/15/2015

Title:

Size:

Reference:

Date:

Sheet:

of

A4

Revision:

STM32L476G-D

ISCO

Project:

VDD_M

CU

3V_M

FX

Current

direction

to M

CU

differential

amplifier

CAL

SH0

SH1

SH2

Shunts

3

4 5

G

S D

621

T3 STT7

P2UH7

3

4 5

G

S D

621

T7 STT7

P2UH7

3

4 5

G

S D

621

T9 STT7

P2UH7

3

4

5

G

SD

6

21

T5 STT7

P2UH7

3V3

decouplin

g capacitors

close to TSZ

122

MFX

_IRQ

_OUT

IDD_M

EAS

MFX

_SWCLK

CAL

SH2

SH1

MFX

_SWDIO

IDD_M

EAS

see n

ote *

SH1_

DSH

2_D

SH0_

D

CAL_

D

4

3 5

G

S D

6 7 821T2

STS9

P2UH7

3V_M

FX SH0_

D

SH0

4

3 5

G

S D

6 7 821T4

STS9

P2UH7

3V_M

FX CAL_

D

CAL

4

3 5

G

S D

6 7 821T6

STS9

P2UH7

SH1_

D

SH1

4

3 5

G

S D

6 7 821T8

STS9

P2UH7

SH2_

D

SH2

CAL_

D

CAL_

D

3V

3V_M

FX

one capacitor close to each MFX

pins:

VDD, V

DD

1, VDD

2, VDD

3

SH0

VDD_M

CU

MFX

_WAKEU

P

L2 Ferrite

MFX

_I2C

_SDA

MFX

_I2C

_SCL

12

3

JP5

bypass

R36

100K

_1%_0402

R37

100K

_1%_0

402

R39

1_1%

_0805

R43

24_1%_0805

R44

620_1%

_0805

R41

10K_1%_0

805

R34

100K

_1%_0402

R29

10K_1%_0

402

C33

100nF_

X7R

_10%

_0402

C34

1uF_

POL_

10%_T

ANA

C26

100nF_

X7R

_10%

_0402

R38

100K

_1%_0

402

R94

100K

_1%_0

402

MFX

_USA

RT3_RX

MFX

_USA

RT3_

TXMFX

_USA

RT3

_RX

MFX

_USA

RT3

_TX

3V_M

FX1 2 3 4

CN5

MFX

_SWCLK

MFX

_SWDIO

C30

100nF_

X7R

_10%

_0402

C31

100nF_

X7R

_10%

_0402

C28

100nF_

X7R

_10%

_0402

C37

100nF_

X7R

_10%

_0402

C40

1uF_

X5R

_10%

_0603

R51

100_1%

_0402

C39

100nF_

X7R

_10%

_0402

V+

V-

3 21

48

U11

ATS

Z122IST

5 67

U11B

TSZ1

22IST

V+

V-

3 21

48

U10

ATS

Z122IST

5 67

U10B

TSZ1

22IST

C36

100nF_

X7R

_10%

_0402

see n

ote *

see n

ote *

see n

ote *

Note *: tw

o footprints superim

posed allows to

also populate with SO-8 package.

(STS9P2UH7 P M

OS transistors)

LAYOUT PROPOSAL DRAW

ING

C38

100nF_

X7R

_10%

_0402

3V3

decouplin

g capacitors

close to TSZ

122

R27

0_5%

_0402

MFX

_I2C

_SCL

MFX

_I2C

_SDA

MFX

_WAK

EUP

MFX

_IRQ_O

UT

R28

510_1%

_0402

R35

[NA]

NRS

T

C32

[NA]

NRS

T

MFX

_I2C

_SCL

MFX

_I2C

_SDA

R30

0_5%

_0603

3V_M

FX

3V_M

FX3V

_MFX

3V_M

FX

PC13 PB10

PA4 PB11

SB27

SB26

D5

BAT6

0JFILM

VDD1

WAKEU

P2

IDD_C

AL/GPO

43

IDD_S

H0

4

IDD_S

H1/GPO

55

IDD_S

H2/GPO

66

NRS

T7

VSSA 8VDDA9

TSC_

XP/GPO

010

TSC_

XN/GPO

111

TSC_

YP/GPO

212

TSC_

YN/GPO

313

IDD_M

EAS

14

GPIO0

18GPIO1

19GPIO2

20

GPIO3

39GPIO4

40GPIO5

15

USA

RT_T

X21

USA

RT_R

X22

VSS_1 23

VDD_124

SPARE

25

GPIO6

16

GPIO7

17GPIO8

29GPIO9

30

GPIO10

31

GPIO11

32GPIO12

33GPIO13

26SW

DIO

34

VSS_2 35

VDD_236

SWCL

K37

IDD_S

H3/GPO

738

GPIO14

27

GPIO15

28

IDD_V

DD_M

CU

41

I2C_S

CL42

I2C_S

DA

43

BOOT0

44

I2C_A

DDR

45

IRQOUT

46

VSS_3 47

VDD_348

VDVVD

WA

WWK

AAEU

KKP

IDD_C

AL/GPO

4

IDD_S

H0

IDD_S

H1/GPO

5IDD_S

H2/GPO

6

NRS

T

VSSAVDDA

TSC_

XP/GPO

0TS

C_XN

XX/G

NNPO

1TS

C_YP/GPO

2TS

C_YN

YY/G

NNPO

3

IDD_M

EAS

GPIO0

GPIO1

GPIO2

GPIO3

GPIO4

GPIO5

USA

RAA

T_TX

USA

RAA

T_RX

RR

VSS_1

VDD_1

SPAR

AAERR

GPIO6

GPIO7

GPIO8

GPIO9

GPIO10

GPIO11

GPIO12

GPIO13

SWDIO

VSS_2

VDD_2

SWCL

K

IDD_S

H3/GPO

7

GPIO14

GPIO15

IDD_V

DD_M

CU

I2C_S

CLI2C_S

DA

BOOT0

I2C_A

DDR

IRQOUT

VSS_3

VDD_3

MFX_V2

U8

MFX

_V2

R47

6K04_1%_0402

R40

6K04_1%_0402

R49

15K_1%_0

402

R42

300K

_1%_0402

R50

300K

_1%_0402

R48

300K

_1%_0

402

Page 29: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

DocID027676 Rev 2 29/39

UM1879 Schematics

38

Figure 14. Joystick ACP, LEDs and pushbutton

510

Joystick, ACP, LEDs and Push Button

MB11

84C-01

6/15/2015

Title:

Size:

Reference:

Date:

Sheet:

of

A4

Revision:

STM32L476G-D

ISCO

Project:

USE

R &

WAKE-UP Button

NRS

TNRS

T RES

ET Button

3V

1 234

B1

SW-PUSH-CMS_BLACK

SB23 C4

5

100nF

LD_R

LD_G

LD_R

LD_G

LD4

LED, red

LD5

LED, green

PB2

PE8

3V

JOY_C

ENTE

R

JOY_D

OWN

JOY_L

EFT

JOY_R

IGHT

JOY_U

P

PA0

Inpu

t pins with

pull-d

own

C41

100nF_

X7R

_10%

_0402

R52

0_5%

_0402

R53

100_1%

_0402

COMMON

5

CENTE

R2

DOWN

3LE

FT1

RIGHT

6

UP

4

62

1

4 3

B2 MT-00

8A

C44

100nF_

X7R

_10%

_0402

C46

100nF_

X7R

_10%

_0402

C42

100nF_

X7R

_10%

_0402

R56

0_5%

_0402

R58

0_5%

_0402

R54

0_5%

_0402

12

34

56

78

CN2

SSM-104-L-D

H

3V

EXT/RF E2P

Con

nector

5V

EXT_

RST

I2C1_SD

AI2C1_SC

LEX

T_RST

I2C1_SC

LI2C1_SD

A

PA1

PA2

PA3

PA5

R55

10K_1%_0

402

R59

10K_1%_0

402

Joys

tick

JOY_C

ENTE

R

JOY_D

OWN

JOY_L

EFT

JOY_R

IGHT

JOY_U

P

C43

100nF_

X7R

_10%

_0402

PD0

PB6

R45

1K_1%_0

402

R57

10K_1%_0

402

R46

330_1%

_0402

Not Fitted

SB2

PB7

Page 30: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

Schematics UM1879

30/39 DocID027676 Rev 2

Figure 15. LCD display

610

LCD Display

MB1184

C-01

6/15/2015

Title:

Size:

Reference:

Date:

Sheet:

of

A4

Revision:

STM32L476G-D

ISCO

Project:

LCD

SEG[0..23]

COM[0..3]

SEG0 SE

G1 SE

G2 SE

G3 SE

G4 SE

G5 SE

G6

SEG7SE

G8SE

G9SE

G10SE

G11

SEG12

SEG13

SEG14

SEG15

SEG16

SEG17

SEG18

SEG19

SEG20

SEG21

SEG22

SEG23

COM0 COM1

COM2

COM3

SEG[0..23]

COM[0..3]

SEG0 1

SEG1 2

SEG2 3

SEG3 4

SEG4 5

SEG5 6

SEG6 7

SEG7 8

SEG8 9

SEG9 10

SEG10 11

SEG11 12

COM3 13

COM2 14COM115

COM016SEG1217

SEG1318SEG1419

SEG1520SEG1621

SEG1722SEG1823SEG1924SEG2025SEG2126

SEG2227SEG2328

U5

GH08

172T

U100

Socket DIP28

Page 31: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

DocID027676 Rev 2 31/39

UM1879 Schematics

38

Figure 16. OTG USB FS

710

OTG USB FS

MB1184

C-01

6/15/2015

Title:

Size:

Reference:

Date:

Sheet:

of

A4

Revision:

STM32L476G-D

ISCO

Project:

5VOTG

_FS_

PowerSw

itchO

n

OTG

_FS_

OverCurrent

3V3_REG

OTG

_FS_

DM

OTG

_FS_

DP

OTG

_FS_

ID

PC9

PC10

PC11

R67

22R68

22

3V3_REG

3V3_REG

Dz

A2

IDA3

Pd1

B1

Pup

B2

Vbus

B3

D+in

C1

Pd2

C2

D+o

utC3

D-in

D1

GND

D2

D-out

D3

U15

EMIF02-U

SB03F2

GND

2

IN5

EN4

OUT

1FA

ULT

3U14

STMPS

2141ST

R

OTG

_FS_

VBUS

C67

4.7uF

3

1

2

T10

9013-SOT2

3

R63

[NA]

R71

330_1%

_0603

R65

47K_1%_0402

LD6

LED, green

VBUS

1

DM

2

DP

3ID

4GND

5

Shield

6

USB_Micro-AB receptacle

CN7

USB

-MICRO-AB

R72

47K_1%_0402

R66

0_5%

_0402

LD7

LED, red

R61

0_5%

_0402

R64

0_5%

_0402

R62

10K_1%_0402

PC12

PA11

PA12

R73

620_1%

_0603

Page 32: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

Schematics UM1879

32/39 DocID027676 Rev 2

Figure 17. Audio DAC and microphone MEMS

810

Audio Codec and M

icrophone MEMS

MB1184

C-01

6/15/2015

Title:

Size:

Reference:

Date:

Sheet:

of

A4

Revision:

STM32L476G-D

ISCO

Project:

SAI1_F

SSA

I1_S

DSA

I1_S

CK

I2C1_SC

LI2C1_SD

A

AUDIO

_RST

SAI1_M

CK

3V

I2C address 0x94

2V5

3V

PE3

PB7

PB6

PE2

132CN6

ST-225-02

I2C1_SC

LI2C1_SD

A

SAI1_M

CK

SAI1_S

CK

SAI1_S

DSA

I1_F

SAUDIO_R

ST

SDA

1

SCL

2A0

3

SPKR_O

UTA

+4

VP

5

SPKR_O

UTA

-6

SPKR_O

UTB

+7

VP

8SP

KR_O

UTB

-9

-VHPF

ILT

10FL

YN

11

FLYP

12

+VHP

13

HP/LINE_

OUTB

14HP/LINE_

OUTA

15

VA

16

AGND

17FILT

+18

VQ

19TS

TO20

AIN4A

21AIN4B

22AIN3A

23AIN3B

24AIN2A

25AIN2B

26

AFILT

A27

AFILT

B28

AIN1A

29AIN1B

30

SPKR/HP

31

RES

ET32

VL

33

VD

34

DGND

35

TSTO

36

MCLK

37

SCLK

38SD

IN39

LRCK

40

GND/Therm

al Pad

41

U13

CS4

3L22

C68 1u

F_PO

L_10%_T

ANA

C65

100nF_

X7R

_10%

_0402

R60

10K_1%_0402

C56

1uF_

X5R

_10%

_0603

C66

1uF_

X5R

_10%

_0603

C59

150pF_

NPO

_5%_0603

C58

100nF_

X7R

_10%

_0402

C64

22nF

_X7R

_10%

_0603

PE4

PE5

PE6

C53

150pF_

NPO

_5%_0603

C60

1uF_

X5R

_10%

_0603

C50

100nF_

X7R

_10%

_0402

C62

100nF_

X7R

_10%

_0402

C51

100nF_

X7R

_10%

_0402

C57

1uF_

X5R

_10%

_0603

C52

100nF_

X7R

_10%

_0402

R70

51_1%_0402

C63

22nF

_X7R

_10%

_0603

R69

51_1%_0402

R76

0_5%

_0402

3V

PE9

PE7

3V

AUDIO_D

INAUDIO_C

LK

AUDIO_D

INAUDIO_C

LK

C70

100nF_

X7R

_10%

_0402

C69

100nF_

X7R

_10%

_0402

R77

0_5%

_0402

R75

[NA]

GND

5

LR2

CLK

3VDD

1

DOUT

4

U17

MP3

4DT0

1

GND

Page 33: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

DocID027676 Rev 2 33/39

UM1879 Schematics

38

Figure 18. Quad-SPI Flash memory

910

Quad SPI Flash M

emory

MB11

84C-01

6/15/2015

Title:

Size:

Reference:

Date:

Sheet:

of

A4

Revision:

STM32L476G-D

ISCO

Project:

3V

Qua

d SP

I Flash

Mem

ory

QSP

I_D0

QSP

I_D3

QSP

I_D2

QSP

I_D1

QSP

I_CLK

QSP

I_CS

PE10

R74

10K_1%_0

402

C61

100nF_

X7R

_10%

_0402

DQ3/HOLD

#7

VCC

8S#

1

DQ1

2

C6

DQ0

5

VSS

4DQ2/Vpp/W

#3

DQ3/HOLD

#

VCC

S# DQ1

C DQ0

VSS

DQ2/Vpp/W

VV#

U16

N25Q128A

13EF

840E

QSP

I_D0

QSP

I_D1

QSP

I_D2

QSP

I_D3

QSP

I_CS

QSP

I_CLK

PE11

PE12

PE13

PE14

PE15

Page 34: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

Schematics UM1879

34/39 DocID027676 Rev 2

Figure 19. Gyroscope, accelerometer, magnetometer MEMS

1010

Gyroscope, Accelerometer, Magnetometer M

EMS

MB1

184

C-01

6/15/2015

Title:

Size:

Reference:

Date:

Sheet:

of

A4

Revisio

n:

STM32L476G-D

ISCO

Project:

MEM

S

3V

GYRO

_CS

VDD_IO

1

GND

13C1

14

GND

8GND

9

VDD

16

CS_I2C

/SPI

5

INT1

7DRD

Y/IN

T26

GND

10GND

11

SA0/SD

O4

SDA/SDI/S

DO

3SC

L/SP

C2

VDD

15

GND

12

U7

L3GD20

C18

10uF

_X5R

_10%

_0603

C20

10nF

_X7R

_10%

_0603

C19

100nF_

X7R

_10%

_0402

SCL/SP

C1

INT_

XL

12

VDD

9VDD_IO

10DRD

Y_M

AG

11

GND

6C1

5SD

A/SDI/S

DO

4GND

8IN

T_MAG

7

CS_M

AG

3CS

_XL

2

U6

LSM303C

TR

C16

100nF_

X7R

_10%

_0402

C21

10uF

_X5R

_10%

_0603

C17

100nF_

X7R

_10%

_0402

C22

100nF_

X7R

_10%

_0402

MAG_C

S

MAG_INTXL_

INT

PC0

MAG_C

S

MAG_INT

GYRO

_INT1

MAG_D

RDY

MEM

S_SC

K

MAG_D

RDY

PC1

PC2

MEM

S_MOSI

GYRO

_INT2

XL_

CS

XL_

INT

PD1

PD4

PD7

PD2

PB8

PE0

PE1

MEM

S_SC

K

GYRO

_CS

MEM

S_MISO

MEM

S_MOSI

PD1

PD3

PD4

MEM

S_SC

K

MEM

S_MISO

MEM

S_MOSI

GYRO

_INT1

GYRO

_INT2

XL_

CS

3V

R23

1K_1%_0

402

Page 35: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

DocID027676 Rev 2 35/39

UM1879 Power consumption measurements

38

Appendix A Power consumption measurements

The power consumption measurements of the STM32L476 discovery board are reflected in Figure 20. Please note the GPIO configuration of the STM32L476VGT6 in Standby mode.

Figure 20. Power consumption tree

3V3_REG

JP6

Measured 287µA 3V3 287-115 => 172µA 172-92 => 80µA

Measured 115 µA

D6

3V

Measured 92µA

LDO

SB28

For IDDTSZ122 1st stage

V+ : ~11µA due to resistors bridgeV- : ~11µA due to resistors bridge

115-70 => 45µA

Measured 70µA

R30

Audio QuadSPIL3GD20

DACLSM303

CTR

3V_MFX 70-0.4 => 69.6µA

Measured 0.4µA

JP5

VDD_MCU

MFXSTM32L152

For IDDTSZ122

2nd stage

V+ : ~10µA due to resistors bridge

STM32L476VGT6

STM32L476VGT6 GPIOs are configured in ‘Analog input’ except: PWR->PUCRA = 0; // no PU on GPIOA PWR->PDCRA = 0x2F; // PD on GPIOA[0,1,2,3,5] PWR->PUCRB = 0; // no PU on GPIOB PWR->PDCRB = 0; // no PD on GPIOB PWR->PUCRC = 0x1; // PU on GPIOC[0] MAG_CS PWR->PDCRC = 0x800; // PD on GPIOC[11] PWR->PUCRD = 0x80; // PU on GPIOD[7] MEMS_SPI_CS PWR->PDCRD = 0x12; // no PD on GPIOD[1,4] MEMS_SPI_CLK, MEMS_SPI_MOSI PWR->PUCRE = 0x0001; // PU on GPIOE[0] XL_CS PWR->PDCRE = 0x0200; // PD on GPIOE[9] AUDIO_CLK for DMIC PWR->PDCRE|= 0x0074; // PD on GPIOE[2,4,5,6] SAI1 interface to CODEC PWR->PDCRE|= 0xF400; // PD on GPIOE[10,12,13,14,15] QuadSPI CLK, D0,D1,D2,D3 PWR->PUCRF = 0; // no PU on GPIOF PWR->PDCRF = 0; // no PD on GPIOF PWR->PUCRG = 0; // no PU on GPIOG PWR->PDCRG = 0; // no PD on GPIOG PWR->PUCRH = 0; // no PU on GPIOH PWR->PDCRH = 0; // no PD on GPIOH

Page 36: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

Power consumption measurements UM1879

36/39 DocID027676 Rev 2

The total power consumption of the STM32L476 discovery board measured is 287µA which is as expected:

Table 8 gives for each peripheral the theoretical power consumption value. It’s extracted from the vendor’s product datasheet. The typical values are given under the same conditions as used for the power consumption measurement above. Please refer to those product datasheets for more details about the conditions.

The theoretical total power consumption of the STM32L476 discovery board is ~295uA.

Table 8. Typical power consumption of the STM32L476 discovery board

MB1184-C01

component.

Typical theoretical

consumption (uA)

Conditions

LD3985M25R_U12 85 On mode: VINH=1.2V

TSZ122IST_U10 58 -

Differential + 11 Current in R40+R42

Differential - 11 Current in R47+R50

CS43L22_U13 0 Reset pin 32 and all clocks and lines are hold Low

MP34DT01_U17 33 IddPdn, input clock in static mode

N25Q128A13EF840E_U16 14 Standby current

L3GD20_U7 5 IddPdn, Supply current in power-down mode

LSM303CTR_U6 10 IddPdn, current consumption in power-down mode

TSZ122IST_U11 58 -

Bridge Op Amp 10 Current in R48+R49

MFX_U8 0.3Standby mode. All GPIOs in ‘Analog Input’ except WAKEUP input with external PD (R34)

STM32L476VGT6_U9 0.3Standby mode, GPIOs configuration described above

TOTAL STM32L476 discovery

295.6 -

Page 37: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

DocID027676 Rev 2 37/39

UM1879 Mechanical drawing

38

Appendix B Mechanical drawing

Figure 21. STM32L476 discovery board mechanical drawing

Page 38: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

Revision history UM1879

38/39 DocID027676 Rev 2

Revision history

Table 9. Document revision history

Date Revision Changes

17-Jul-2015 1 Initial release.

04-Aug-2015 2 Added Section 5: Bootloader limitations.

Page 39: Discovery kit with STM32L476VG MCU - RS Components · 2019-10-12 · Discovery kit with STM32L476VG MCU Introduction The STM32L476 discovery kit (32L476GDISCOVERY) helps the user

DocID027676 Rev 2 39/39

UM1879

39

IMPORTANT NOTICE – PLEASE READ CAREFULLY

STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and improvements to ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on ST products before placing orders. ST products are sold pursuant to ST’s terms and conditions of sale in place at the time of order acknowledgement.

Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of Purchasers’ products.

No license, express or implied, to any intellectual property right is granted by ST herein.

Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.

ST and the ST logo are trademarks of ST. All other product or service names are the property of their respective owners.

Information in this document supersedes and replaces information previously supplied in any prior versions of this document.

© 2015 STMicroelectronics – All rights reserved