dm00172179

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 the 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, push-button, joystick, USB OTG FS, audio DAC,
MEMS (Microphone, 3 axis gyroscope, 6 axis compass), Quad-SPI Flash memory,
embedded ammeter measuring STM32 consumption in low-power mode.
External boards can be connected thanks to the extension and probing connectors.
Figure 1. STM32L476 Discovery board
1. Picture not contractual.
March 2016
DocID027676 Rev 3
1/39
www.st.com
1
Contents
UM1879
Contents
1
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2
Demonstration software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3
Ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
4
Delivery recommendations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
5
Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
6
Bootloader limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
7
Hardware layout and configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
7.1
2/39
Embedded ST-LINK/V2-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
7.1.1
Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
7.1.2
ST-LINK/V2-1 firmware upgrade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
7.1.3
Using ST-LINK/V2-1 to program/debug the STM32L476VGT6
on board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
7.1.4
Using ST-LINK/V2-1 to program/debug an external STM32 application
board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
7.2
Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
7.3
Clock source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
7.4
Reset source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
7.5
User interface: LCD, joystick, LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
7.6
Boot0 configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
7.7
Quad-SPI NOR Flash memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
7.8
USB OTG FS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
7.9
USART configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
7.10
Audio DAC and MEMS microphone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
7.11
9-axis motion sensors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
7.12
I2C extension connector CN2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
7.13
MCU current ammeter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
7.14
Extension connector P1 and P2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
7.15
Solder bridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
DocID027676 Rev 3
UM1879
8
Contents
Schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Appendix A Power consumption measurements . . . . . . . . . . . . . . . . . . . . . . . . 34
Appendix B Mechanical drawing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Appendix C Compliance statements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
C.1
Federal Communications Commission (FCC) and Industry Canada (IC)
Compliance Statement37
C.1.1
C.2
FCC Compliance Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
IC Compliance Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
C.2.1
Compliance Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
C.2.2
Déclaration de conformité. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
DocID027676 Rev 3
3/39
3
List of tables
UM1879
List of tables
Table 1.
Table 2.
Table 3.
Table 4.
Table 5.
Table 6.
Table 7.
Table 8.
Table 9.
4/39
ON/OFF conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Jumper states . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Debug connector CN4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Reset related jumper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Connector CN2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Extension connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Solder bridges. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Typical power consumption of the STM32L476 Discovery board. . . . . . . . . . . . . . . . . . . . 35
Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
DocID027676 Rev 3
UM1879
List of figures
List of figures
Figure 1.
Figure 2.
Figure 3.
Figure 4.
Figure 5.
Figure 6.
Figure 7.
Figure 8.
Figure 9.
Figure 10.
Figure 11.
Figure 12.
Figure 13.
Figure 14.
Figure 15.
Figure 16.
Figure 17.
Figure 18.
Figure 19.
Figure 20.
Figure 21.
STM32L476 Discovery board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Hardware block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
STM32L476 Discovery board top layout. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
STM32L476 Discovery board bottom layout. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Updating the list of drivers in device manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
CN1, CN3 (ON), CN4 connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
CN1, CN3 (OFF), CN4 connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Board jumper location . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Connector CN2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
STM32L476 Discovery board design top sheet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
ST-LINK/V2-1 with support of SWD only . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
STM32L476VGT6 MCU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
IDD measurement / MFX (Multi Function eXpander) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Joystick ACP, LEDs and push-button . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
LCD display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
OTG USB FS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Audio DAC and microphone MEMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Quad-SPI Flash memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Gyroscope, accelerometer, magnetometer MEMS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Power consumption tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
STM32L476 Discovery board mechanical drawing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
DocID027676 Rev 3
5/39
5
Features
1
6/39
UM1879
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 reenumeration capability
•
Three different interfaces supported on USB:
–
Virtual Com Port
–
Mass storage
–
Debug port
•
ARM® mbed™-enabled (see http: //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 overcurrent (red)
–
LD4 (red), LD5 (green) two user LEDs
–
LD6 (green), LD7 (red) USB OTG FS LEDs
•
Push-button (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
•
STM32 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
DocID027676 Rev 3
UM1879
2
Demonstration software
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
Ordering information
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 has been damaged during the shipment and that no components are unplugged or
lost. When the board is extracted from its plastic bag, check that no component remains in
the bag. In particularly, 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.
5
Conventions
Table 1 provides conventions used in the present document.
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
DocID027676 Rev 3
7/39
38
Bootloader limitations
6
UM1879
Bootloader limitations
Boot from system Flash memory results in executing bootloader code stored in the system
Flash memory protected against writing and erasing. This allows in-system programming
(ISP), that is, flashing the STM32 user Flash memory. It also allows writing data into RAM.
The data come in via one of communication interfaces such as USART, SPI, I2C bus, USB
or CAN.
Bootloader version can be identified by reading the Bootloader ID at the address
0x1FFF6FFE.
The STM32L476VGT6 part soldered on the 32L476GDISCOVERY main board is marked
with a date code corresponding to its date of manufacturing. 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 at 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, I2C bus or USB results in wrong
or no data written.
Workaround:
To correct the issue of wrong write into RAM, download the STSW-STM32158
bootloader V 9.0 patch package from the www.st.com website 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 the STSW-STM32158
bootloader V 0.9 patch package from the www.st.com website and load "Bootloader V9.0
CAN patch" to the MCU, following the information in readme.txt file available in the package.
8/39
DocID027676 Rev 3
UM1879
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
the STM32L476VGT6 and the 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, push-button, joystick)
and the Figure 3 will help to locate these features on the STM32L476 Discovery board.
Figure 2. Hardware block diagram
A to Mini-B
USB
(3V CR2032 Battery)
CR1
SWD
Embedded
ST_LINK/V2-1
JP6
power
128Mb
QuadSPI flash
LCD segment
(4x24)
IO
User LEDs
LD5 (green)
LD4 (red)
IO
digital
microphone
MEMS
STM32L476VGT6
IO
SAI Audio DAC
stereo
reset
IDD current
measurement
Joystick with
4-direction
control and
selector
Header P2
9-axis motion
sensors
Header P1
7
Hardware layout and configuration
Reset
pushbutton
USB OTG FS with
Micro-A-B
connector
DocID027676 Rev 3
9/39
38
Hardware layout and configuration
UM1879
Figure 3. STM32L476 Discovery board top layout
67/,1.9
&186%67/,1.
/'&20
/'3:5
/'2&
&15)((3520
-3-3QRWILWWHG
&167/,1.WR',6&2
ERDUGRU6:'
&16:'
-3567
88
D[LVPRWLRQVHQVRUV
-35;7;
8/&'VHJPHQW
&1QRWILWWHG
-3,GG212))
-3EDWWHU\RULQWHUQDO
9UHJXODWRUVHOHFWLRQ
80);
8670/9*7
3H[WHQVLRQ
FRQQHFWRU
/'/'8VHU/('V
%MR\VWLFN
%5HVHWSXVKEXWWRQ
3H[WHQVLRQ
FRQQHFWRU
8$XGLR'$&
84XDG63,)ODVK
PHPRU\
&1DXGLR
RXWSXWMDFN
80(06PLFURSKRQH
/'/'86%/('V
&186%86(5
069
10/39
DocID027676 Rev 3
UM1879
Hardware layout and configuration
Figure 4. STM32L476 Discovery board bottom layout
6%67/,1.3:5
6%6%6%6%
GHIDXOW
6%(;75)(3
6%6%6%6%
UHVHUYHG
6%
UHVHUYHG
6%7B6:2
6%670B567
6%6%
86$575;7;
6%7B6:2
6%6%
0);86$575;7;
6%6%
N+]&/.
6%6%
0+]&/.
6%%5(6(7
6%6%
27*)6
&5EDWWHU\FRQQHFWRU
6%6%
UHVHUYHG
6%
95(*LQKLELW
6%
95(*LQSXW
069
DocID027676 Rev 3
11/39
38
Hardware layout and configuration
7.1
UM1879
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 refer to ST-LINK/V2 in-circuit debugger/programmer for STM8 and
STM32 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)
.
Table 2. Jumper states
Jumper state
7.1.1
Description
Both CN3 jumpers ON
ST-LINK/V2-1 functions enabled for on-board programming (default)
Both CN3 jumpers OFF
ST-LINK/V2-1 functions enabled for external board through external
CN4 connector (SWD supported)
Drivers
The ST-LINK/V2-1 requires a dedicated USB driver, which can be found on the www.st.com
website 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.
12/39
DocID027676 Rev 3
UM1879
Hardware layout and configuration
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 the www.st.com website 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
DocID027676 Rev 3
13/39
38
Hardware layout and configuration
7.1.4
UM1879
Using ST-LINK/V2-1 to program/debug an external STM32 application
board
To use the ST-LINK/V2-1 to program the STM32 on an external application board (out of the
STM32L476VGT6 on board), remove the two jumpers from CN3 as shown in Figure 7 in
red, and connect the 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 CN4 pin 5 (NRST) is used in the external application board.
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
Figure 7. CN1, CN3 (OFF), CN4 connections
14/39
DocID027676 Rev 3
UM1879
7.2
Hardware layout and configuration
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.
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 no more than 300 mA current. 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:
Note:
If the maximum current consumption of the STM32L476
Discovery board and its extension board exceeds 300 mA, it
is mandatory to power the STM32L476 Discovery board using
an external power supply connected to 5V_I.
In case this board is powered by a USB charger or a 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, 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 the standard EN60950-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 pin 4 and the pin 3 5V_I of P2 header (see Figure 8).
DocID027676 Rev 3
15/39
38
Hardware layout and configuration
UM1879
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:
Note:
16/39
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).
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.
DocID027676 Rev 3
UM1879
7.3
Hardware layout and configuration
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 (pin 7 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, pin 9 labeled ‘PH0’.The
configuration needed is:
SB22 closed, SB18 opened
R89 not fitted
Note:
Refer to Oscillator design guide for STM8S, STM8A and STM32 microcontrollers
Application note (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, pin 5
Table 4. Reset related jumper
Jumper
JP3
Description
When JP3 is closed, the SWD connector CN4 pin 5 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
DocID027676 Rev 3
17/39
38
Hardware layout and configuration
7.5
UM1879
User interface: LCD, joystick, LEDs
The STM32L476 Discovery board features sept 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 push-button (B1) are available as
input devices.
An 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 pin 5 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 a USB
Micro-AB connector (CN7) and a 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 a
USB device
Red LED LD7 will be lit when an overcurrent 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, remove the LCD from its socket U5, and
close SB24 and SB25.
The default configuration is: 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.
18/39
DocID027676 Rev 3
UM1879
7.9
Hardware layout and configuration
USART configuration
The USART interface available on PD5 and PD6 of the STM32L476VGT6 can be
connected to the ST-LINK MCU to use the Virtual Com Port function.
To use the Virtual Com Port function with:
•
The on-board STM32L476VGT6: set SB13 and SB16 ON (SB15, SB17 must be OFF).
•
An external MCU: remove solder from SB13 and SB16, solder a two pins header on
JP4, then RX and TX of the external MCU can be connected 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
069
DocID027676 Rev 3
19/39
38
Hardware layout and configuration
UM1879
Table 5. Connector CN2
7.13
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
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:
20/39
•
Jumper on position OFF: STM32L476VGT6 is powered (default).
•
Jumper on position ON: an on-board module 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).
DocID027676 Rev 3
UM1879
7.14
Hardware layout and configuration
Extension connector P1 and 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
1
5V_U
(5V_USB_ST_LINK)
2
GND
2
GND
3
2V5
3
5V_I
(5V INPUT)
4
GND
4
VUSB
(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
DocID027676 Rev 3
21/39
38
Hardware layout and configuration
7.15
UM1879
Solder bridges
Table 7 describes each solder bridge. The default state is indicated in bold.
Table 7. Solder bridges
Bridge
State
ON
ST-LINK module is powered
OFF
ST-LINK module is not powered
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
ON
No incidence on NRST signal of STM32F103CBT6
OFF
NRST signal of STM32F103CBT6 is connected to
GND
OFF
Reserved
ON
PA2, PA3 of STM32F103CBT6 are connected to PD6,
PD5 of STM32L476VGT6
OFF
PA2, PA3 of STM32F103CBT6 are not connected to
PD6, PD5 of STM32L476VGT6
ON
PA10 of STM32F103CBT6 are not connected to PB3 of
STM32L476VGT6
OFF
PA2, PA3 of STM32F103CBT6 are connected to MFX
USART RX,TX
ON
PA10 of STM32F103CBT6 is connected to PB3 of
STM32L476VGT6
OFF
PA10 of STM32F103CBT6 is not connected to PB3 of
STM32L476VGT6
ON
If SB22 is also ON, MCO is connected to PH0
OFF
MCO is not connected to PH0
ON
PC14, PC15 are connected to X3 crystal
OFF
PC14, PC15 are not connected to X3 crystal
ON
PH0, PH1 are connected to X2 crystal (X2 is not fitted)
OFF
PH0, PH1 are not connected to X2 crystal
ON
B1 push-button is connected to NRST of STM32L476
Discovery board
OFF
B1 push-button is not connected to NRST of
STM32L476 Discovery board
SB1 (ST-LINK PWR)
SB2 (EXT/RF E2P)
SB11 (STM_RST)
SB12
SB16, SB13 (USART RX, TX)
SB17, SB15 (MFX USART RX,TX)
SB14 (T_SWO)
SB18 (MCO)
SB19, SB20 (32.768kHz CLK)
SB21, SB22 (8MHz CLK)
SB23 (B1-RESET)
22/39
Description
DocID027676 Rev 3
UM1879
Hardware layout and configuration
Table 7. Solder bridges (continued)
Bridge
State
Description
ON
OTG_FS_VBUS signal is connected to PA9
OTG_FS_ID signal is connected to PA10
OFF
OTG_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
ON
U12 (2.5V regulator) input is inhibited
OFF
U12 input is not inhibited
ON
5V is connected to U12 input
OFF
5V is not connected to U12 input
SB24, SB25 (OTG FS)
SB28 (2.5V REG inhibit)
SB29 (2.5V REG input)
DocID027676 Rev 3
23/39
38
Schematics
Schematics
24/39
8
Figure 10. STM32L476 Discovery board design top sheet
U_LCD_GH08172
LCD_GH08172.SchDoc
SEG[0..23]
COM[0..3]
QSPI_CS
QSPI_CLK
QSPI_D0
QSPI_D1
QSPI_D2
QSPI_D3
U_QSPI
QSPI.SchDoc
QSPI_CS
QSPI_CLK
QSPI_CS
QSPI_CLK
QSPI_D0
QSPI_D1
QSPI_D2
QSPI_D3
AUDIO_RST
AUDIO_DIN
AUDIO_CLK
SAI1_MCK
SAI1_SCK
SAI1_SD
SAI1_FS
QSPI_D0
QSPI_D1
QSPI_D2
QSPI_D3
I2C1_SDA
I2C1_SCL
EXT_RST
U_AUDIO
AUDIO.SchDoc
DocID027676 Rev 3
AUDIO_RST
AUDIO_DIN
AUDIO_CLK
SAI1_MCK
SAI1_SCK
SAI1_SD
SAI1_FS
I2C1_SDA
I2C1_SCL
AUDIO_RST
AUDIO_DIN
AUDIO_CLK
SAI1_MCK
SAI1_SCK
SAI1_SD
SAI1_FS
I2C1_SDA
I2C1_SCL
MCO
SWCLK
SWDIO
SWO
NRST
BOOT0
3V3_REG-ON
U_ST_LINK_V2-1
ST_LINK_V2-1.SCHDOC
USART_RX
USART_TX
USART_RX
USART_TX
MFX_USART3_RX
MFX_USART3_TX
SWCLK
SWDIO
SWO
SWCLK
SWDIO
SWO
MFX_USART3_RX
MFX_USART3_TX
3V3_REG-ON
U_Peripherals
Peripherals.SchDoc
U_STM32Lx
STM32Lx.SchDoc
SEG[0..23]
COM[0..3]
NRST
NRST
3V3_REG-ON
MCO
MCO
USART_RX
USART_TX
MFX_WAKEUP
MFX_IRQ_OUT
MFX_I2C_SDA
MFX_I2C_SCL
MFX_USART3_RX
MFX_USART3_TX
QSPI_CS
QSPI_CLK
QSPI_D0
QSPI_D1
QSPI_D2
QSPI_D3
PC14
PC15
PH[0..1]
AUDIO_RST
AUDIO_DIN
AUDIO_CLK
SAI1_MCK
SAI1_SCK
SAI1_SD
SAI1_FS
COM[0..3]
SEG[0..23]
JOY_CENTER
JOY_DOWN
JOY_LEFT
JOY_RIGHT
JOY_UP
I2C1_SDA
I2C1_SCL
EXT_RST
MCO
SWCLK
SWDIO
SWO
LD_R
LD_G
OTG_FS_PowerSwitchOn
OTG_FS_OverCurrent
OTG_FS_DM
OTG_FS_DP
OTG_FS_ID
OTG_FS_VBUS
NRST
MEMS_SCK
MEMS_MOSI
MEMS_MISO
BOOT0
3V3_REG-ON
GYRO_CS
GYRO_INT2
GYRO_INT1
USART_RX
USART_TX
MFX_WAKEUP
MFX_IRQ_OUT
MFX_I2C_SDA
MFX_I2C_SCL
MFX_USART3_RX
MFX_USART3_TX
XL_CS
XL_INT
MAG_CS
MAG_DRDY
MAG_INT
PC14
PC15
NRST
LD_R
LD_G
JOY_CENTER
JOY_DOWN
JOY_LEFT
JOY_RIGHT
JOY_UP
EXT_RST
I2C1_SCL
I2C1_SDA
PH[0..1]
COM[0..3]
SEG[0..23]
JOY_CENTER
JOY_DOWN
JOY_LEFT
JOY_RIGHT
JOY_UP
U_USB_OTG_FS
USB_OTG_FS.SchDoc
LD_R
LD_G
OTG_FS_PowerSwitchOn
OTG_FS_OverCurrent
OTG_FS_DM
OTG_FS_DP
OTG_FS_ID
OTG_FS_VBUS
OTG_FS_PowerSwitchOn
OTG_FS_OverCurrent
OTG_FS_DM
OTG_FS_DP
OTG_FS_ID
OTG_FS_VBUS
MEMS_SCK
MEMS_MOSI
MEMS_MISO
OTG_FS_PowerSwitchOn
OTG_FS_OverCurrent
OTG_FS_DM
OTG_FS_DP
OTG_FS_ID
OTG_FS_VBUS
U_MEMS
MEMS.SchDoc
GYRO_CS
GYRO_INT2
GYRO_INT1
MEMS_SCK
MEMS_MOSI
MEMS_MISO
XL_CS
XL_INT
GYRO_CS
GYRO_INT2
GYRO_INT1
MAG_CS
MAG_DRDY
MAG_INT
NRST
LD_R
LD_G
JOY_CENTER
JOY_DOWN
JOY_LEFT
JOY_RIGHT
JOY_UP
EXT_RST
I2C1_SCL
I2C1_SDA
XL_CS
XL_INT
MAG_CS
MAG_DRDY
MAG_INT
P2
P1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
5V_USB_ST_LINK
5V_IN
OTG_FS_VBUS
5V
GND
GND
GND
GND
PE11
PE10
PE12
PE13
PE14
PE15
1
2
3
4
5
BOOT0
6
3V3_REG-ON
7
LD_R
8
LD_G
9
JOY_CENTER
10
JOY_DOWN
11
JOY_LEFT
12
JOY_RIGHT
13
JOY_UP
14
I2C1_SCL
15
I2C1_SDA
16
EXT_RST
17
NC
18
GND
19
GND
20
GND
PB3
PB2
PE8
PA0
PA5
PA1
PA2
PA3
PB6
PB7
PD0
Header 20
XL_CS
XL_INT
MAG_CS
MAG_DRDY
MAG_INT
U_IDD_measurement
IDD_measurement.SchDoc
GND
2V5
3V
PC14
PC15
PH0
PH1
NRST
QSPI_CS
QSPI_CLK
QSPI_D0
QSPI_D1
QSPI_D2
QSPI_D3
3V3
GYRO_CS
GYRO_INT2
GYRO_INT1
MFX_WAKEUP
MFX_IRQ_OUT
MFX_I2C_SDA
MFX_I2C_SCL
MFX_USART3_RX
MFX_USART3_TX
NRST
MFX_WAKEUP
MFX_IRQ_OUT
MFX_I2C_SDA
MFX_I2C_SCL
MFX_USART3_RX
MFX_USART3_TX
NRST
Wired on Solder Side
JP8
Rev A-01 --> PCB label MB1184 A-01
Rev B-01 --> PCB label MB1184 B-01, Remove R91, Replace COM4..7 by COM0..3,
Add SB for USB_OTG, add VBUS on P2 for USB USER power supply
Rev C-01 --> PCB label MB1184 C-01, Remove SWCLK and SWO shorted,
Replaced on P1, PB8..9 by PB6..7.
--> MP45DT02 replaced by MP34DT01
--> Xtal 32.768kHz replaced by NX3215SA
--> Change values of C27, C25 : C27=C25=4.7pF
--> Change values of resistors : R40=R47=6.04k, R49=15k,
Title: STM32L476 Discovery
Project: STM32L476G-DISCO
JP7
Size: A4
Reference: MB1184
Date: 6/15/2015
Revision: C-01
Sheet: 1 of 10
UM1879
Header 20
GND
MEMS_SCK
MEMS_MOSI
MEMS_MISO
TCK/SWCLK
TMS/SWDIO
PA14
PA13
SWCLK
SWDIO
NRST
T_NRST
SWD
Not Fitted
D1
CN4
USB_RENUMn
STM_JTCK
1
2
3
4
5
6
JP4
STLINK_RX
JP1
MCO
100_1%_0402
Not Fitted
SB1
C5
C4
100nF
R11
10K_1%_0402
3
PWR_ENn
C6
OUT
OUT
FAULT
SET
ON
C8
GND
6
7
3 Volts Output
5
U4
5V
SB12
IN
IN
1uF
5 Volts Output
U2
1
2
100nF
C1
10nF
Ilim = 510mA
Isc= 1.2Ilim to 1.5Ilim = 612mA to 765mA
R3
1K_1%_0402
3V3_ST_LINK
C2
BYPASS
C3
1uF
D2
STPS1L30A
5
Vout
INH
GND
D3
STPS1L30A
5 Volts From USB ST-LINK
LD3
LED, red
C71
Vin
3
8
C7
ST-LINK Power
U1 LD3985M33R
1
5V_IN
LD2
LED, red
3V3_ST_LINK
Jumpers ON --> DISCOVERY Selected
Jumpers OFF --> ST-LINK Selected
MCO
C72
20pF
R80
100_1%_0402
R2
1K_1%_0402
3V3_ST_LINK
5V_USB_ST_LINK
3V3_ST_LINK
TP1
RC Must be very close to STM32F103 pin 29
5V_USB_ST_LINK
[NA]
SWDIO
STM_JTMS
CN3
R81
5 Volts From External
Not Fitted
USB
SB8
3V3_REG
R15
SB15
SB7
SB10
SWCLK
TP2
4
PWR_ENn
T_JTMS
T_JTCK
3V3_ST_LINK
SB13
SB9
3V3_ST_LINK
STM_JTCK
2
VDD_3
VSS_3
PB9
PB8
BOOT0
PB7
PB6
PB5
PB4/JNTRST
PB3/JTDO
PA15/JTDI
JTCK/SWCLK
STM_JTMS
USB_DP
USB_DM
T_SWO
LED_STLINK
T_SWDIO_IN
T_JRST
SB16
TX
RX
T_NRST
USART_TX
MFX_USART3_TX
SB17
T_JTDO
T_JTDI
MFX_USART3_RX
USART_RX
22_1%_0402
SB4
3V3_ST_LINK
13
14
15
16
17
18
19
20
21
22
23
24
DocID027676 Rev 3
Close to JP
Not Fitted
AIN_1
VDD_2
VSS_2
JTMS/SWDIO
PA12
PA11
PA10
PA9
PA8
PB15
PB14
PB13
PB12
T_JTCK
SB11
STLINK_TX
3V3_ST_LINK
C73
R85
100nF
4K7_1%_0402
R84
4K7_1%_0402
5075BMR-05-SM
36
35
34
33
32
31
30
29
28
27
26
25
T_JTMS
22_1%_0402 T_NRST
22_1%_0402 T_SWO
SB3
SB6
6
1
C9
LD39050PU33R
VI
EN
R16
100nF
2K7_1%_0402
C13
C12
100nF
4
3
4
PG
VO
GND
OSC_IN
OSC_OUT
STM_RST
VBAT
PC13
PC14
PC15
OSCIN
OSCOUT
NRST
VSSA
VDDA
PA0
PA1
PA2
R20
R21
R22
SB5
1
2
3
4
8MHz
R86
100K_1%_0402
1
2
3
4
5
6
7
8
9
10
11
12
PA3
PA4
PA5
PA6
PA7
PB0
PB1
PB2/BOOT1
PB10
PB11
VSS_1
VDD_1
C10
20pFX1
20pF
3V3_ST_LINK1
2
U3
STM32F103CBT6
R13
AIN_1
[NA]
BAT60JFILM
R17
T_JTCK
22_1%_0402
GND
48
47
46
45
44
43
42
41
40
39
38
37
3V3_ST_LINK
C11
R12
10K_1%_0402
3V3_ST_LINK
RESERVED
SB14
JP2
C14
1uF
USB-MINI-typeB
1uF
Red
R5
2
330_1%_0402
1
R4
3
330_1%_0402
4 R1
0_5%_0402
1
C55
3V3_REG
3V3
_Green
LD_BICOLOR_CMS
3V
INH
GND
C54
100nF
1uF
5
Vout
2.5 Volts Output
2V5
C48
BYPASS
100nF
C49
C47
10nF
1uF
CR1
CR2032 Holder
1
3V3_ST_LINK
LD1
SB28
4K7_1%_0402 R33
COM
LED_STLINK
3V3_REG-ON
3
Vin
JP6
2
R78
36K_1%_0402
3V3
SB29
4
3V3_REG-ON
R79
USB_RENUMn
100_1%_0402
3
1K5_1%_0402
R9 0_5%_0402 USB_DM
R8
USB_DP
0_5%_0402
R6
100K_1%_0402
1
5V
2
3
R10
10K_1%_0402
2
VCC
DD+
ID
GND
SHELL
R7
1
2
3
4
5
6
C15
100nF
ST890CDR
100nF 100nF 100nF 100nF
1
2
CN1
3V3_REG
5
NC
U12 LD3985M25R
T1
9013-SOT23
5V_USB_ST_LINK
SWD
SWO
7
SWIM
[NA]
BAT60JFILM
T_SWO
5V_IN
2
100K_1%_0402
R83
D4
2K7_1%_0402
DEFAULT
10K_1%_0402
R19
PWR_EXT
R14
SWIM_RST
SWIM_RST_IN
Board Ident: PC13=0
R82
SWIM_IN
R18
4K7_1%_0402
JP3
PB3
UM1879
Figure 11. ST-LINK/V2-1 with support of SWD only
Title: ST-LINK/V2-1 with support of SWD only
D6
STPS1L30A
Project: STM32L476G-DISCO
Size: A4
Reference: MB1184
Date: 6/15/2015
Revision: C-01
Sheet: 2 of 10
Schematics
25/39
PA8
PA9
PA10
PB9
COM0
COM1
COM2
COM3
PC15
PC14
PC15
PC14
PH[0..1]
PH[0..1]
SEG0
SEG1
SEG2
SEG3
SEG4
SEG5
SEG6
SEG7
SEG8
SEG9
SEG10
SEG11
SEG12
PA7
PC5
PB1
PB13
PB15
PD9
PD11
PD13
PD15
PC7
PA15
PB4
PB5
PC8
PC6
PD14
PD12
PD10
PD8
PB14
PB12
PB0
PC4
PA6
SEG13
SEG14
SEG15
SEG16
SEG17
SEG18
SEG19
SEG20
SEG21
SEG22
SEG23
PC3
VLCD
R87
[NA]
PB3
3V3_REG-ON
PD5
PD6
USART_TX
USART_RX
PA14
PA13
PB3
SWCLK
SWDIO
SWO
MCO
MCO
SB18
SB22
DocID027676 Rev 3
PH1
PH1-OSC_OUT
SB21
Not Fitted
R89
0_5%_0402
C78
2
PH0-OSC_IN
R88
220_1%_0402
1
PH0
20pF_NPO_5%_0402
X2
8MHz
C77
20pF_NPO_5%_0402
PC14
PC14-OSC32_IN
SB20
4.7pF_NPO_-+0.25pF_0402
X3
NX3215SA-32.768K
C25
Must be close to the Crystal
PC15
PC15-OSC32_OUT
SB19
R25
0_5%_0402
4.7pF_NPO_-+0.25pF_0402
All this block must be very close to the STM32L476
VDD_MCU
L1
Ferrite
VDDA
R24
47_1%_0402
VREF+
C80
100nF_X7R_10%_0402
C29
100nF_X7R_10%_0402
C35
100nF_X7R_10%_0402
C82
100nF_X7R_10%_0402
C81
100nF_X7R_10%_0402
C83
100nF_X7R_10%_0402
C75
100nF_X7R_10%_0402
C74
1uF_POL_10%_TANA
C24
100nF_X7R_10%_0402
C23
1uF_POL_10%_TANA
VDD_MCU
R90
0_5%_0402
VREF+
VDDA
U9B
11
28
100
75
50
73
21
22
6
VDD5
VDD4
VDD3
VDD2
VDD1
VDDUSB
VSS5
VSS4
VSS3
VSS2
VSS1
VREF+
VDDA_ADC
VBAT
VREFVSSA_ADC
C79
STM32L476VGT6
1uF_X5R_10%_0603
10
27
99
74
49
20
19
QSPI_D0
QSPI_D1
QSPI_D2
QSPI_D3
PE12
PE13
PE14
PE15
I2C1_SDA
I2C1_SCL
PB7
PB6
SAI1_MCK
SAI1_SCK
SAI1_SD
SAI1_FS
PE2
PE5
PE6
PE4
AUDIO_RST
AUDIO_DIN
AUDIO_CLK
PE3
PE7
PE9
OTG_FS_PowerSwitchOn
OTG_FS_VBUS
OTG_FS_DM
OTG_FS_DP
OTG_FS_ID
OTG_FS_OverCurrent
PC9
PC11
PA11
PA12
PC12
PC10
R92
USART_TX
USART_RX
R93
3V
2K2_1%_0402
2K2_1%_0402
VDD_MCU
Layout priority to PA9, PA10
U9A
PA0
PA1
PA2
PA3
PA4
PA5
PA6
PA7
PA8
PA9
PA10
PA11
PA12
PA13
PA14
PA15
23
24
25
26
29
30
31
32
67
68
69
70
71
72
76
77
PB0
PB1
PB2
PB3
PB4
PB5
PB6
PB7
PB8
PB9
PB10
PB11
PB12
PB13
PB14
PB15
35
36
37
89
90
91
92
93
95
96
47
48
51
52
53
54
PC0
PC1
PC2
PC3
PC4
PC5
PC6
PC7
PC8
PC9
PC10
PC11
PC12
PC13
15
16
17
18
33
34
63
64
65
66
78
79
80
7
C27
R26
0_5%_0402
PE11
PE10
3V3_REG-ON
SWCLK
SWDIO
SWO
C76
1uF_X5R_10%_0603
Must be close to the MCU
QSPI_CS
QSPI_CLK
PA0
PA1
PA2
PA3
PA4
PA5
PA6
PA7
PA8
PA9
PA10
PA11
PA12
PA13
PA14
PA15
PE0
PE1
PE2
PE3
PE4
PE5
PE6
PE7
PE8
PE9
PE10
PE11
PE12
PE13
PE14
PE15
PB0
PB1
PB2
PB3
PB4
PB5
PB6
PB7
PB8
PB9
PB10
PB11
PB12
PB13
PB14
PB15
PD0
PD1
PD2
PD3
PD4
PD5
PD6
PD7
PD8
PD9
PD10
PD11
PD12
PD13
PD14
PD15
PC0
PC1
PC2
PC3/VLCD PH0
PC4
PH1
PC5
PC6
PC7
PC14
PC8
PC15
PC9
PC10
PC11
NRST
PC12
PC13
BOOT0
STM32L476VGT6
97
98
1
2
3
4
5
38
39
40
41
42
43
44
45
46
PE0
PE1
PE2
PE3
PE4
PE5
PE6
PE7
PE8
PE9
PE10
PE11
PE12
PE13
PE14
PE15
81
82
83
84
85
86
87
88
55
56
57
58
59
60
61
62
PD0
PD1
PD2
PD3
PD4
PD5
PD6
PD7
PD8
PD9
PD10
PD11
PD12
PD13
PD14
PD15
12
13
PH0-OSC_IN
PH1-OSC_OUT
8
9
PC14-OSC32_IN
PC15-OSC32_OUT
14
NRST
94
BOOT0
R91
510_1%_0402
PA9
SB24
PA10
SB25
SEG[0..23]
COM[0..3]
PD0
LD_R
LD_G
PB2
PE8
NRST
3V
R32
BOOT0
4K7_1%_0402
I2C1_SDA
I2C1_SCL
SAI1_MCK
SAI1_SCK
SAI1_SD
SAI1_FS
AUDIO_RST
AUDIO_DIN
AUDIO_CLK
OTG_FS_PowerSwitchOn
OTG_FS_VBUS
OTG_FS_DM
OTG_FS_DP
OTG_FS_ID
OTG_FS_OverCurrent
EXT_RST
LD_R
LD_G
NRST
PA0
PA5
PA1
PA2
PA3
MFX_USART3_TX
MFX_USART3_RX
R31
QSPI_D0
QSPI_D1
QSPI_D2
QSPI_D3
SEG[0..23]
COM[0..3]
EXT_RST
JOY_CENTER
JOY_DOWN
JOY_LEFT
JOY_RIGHT
JOY_UP
QSPI_CS
QSPI_CLK
Schematics
26/39
Figure 12. STM32L476VGT6 MCU
JOY_CENTER
JOY_DOWN
JOY_LEFT
JOY_RIGHT
JOY_UP
MFX_USART3_TX
MFX_USART3_RX
MFX_WAKEUP
MFX_IRQ_OUT
MFX_I2C_SCL
MFX_I2C_SDA
PA4
PC13
PB10
PB11
MEMS_SCK
MEMS_MOSI
MEMS_MISO
PD1
PD4
PD3
GYRO_CS
GYRO_INT2
GYRO_INT1
PD7
PB8
PD2
XL_CS
XL_INT
PE0
PE1
MAG_CS
MAG_DRDY
MAG_INT
PC0
PC2
PC1
4K7_1%_0402
MFX_WAKEUP
MFX_IRQ_OUT
MFX_I2C_SCL
MFX_I2C_SDA
MEMS_SCK
MEMS_MOSI
MEMS_MISO
GYRO_CS
GYRO_INT2
GYRO_INT1
XL_CS
XL_INT
MAG_CS
MAG_DRDY
MAG_INT
Title: STM32L476VGT6 MCU
Project: STM32L476G-DISCO
Size: A4
Reference: MB1184
Date: 6/15/2015
Revision: C-01
Sheet: 3 of 10
UM1879
UM1879
Figure 13. IDD measurement / MFX (Multi Function eXpander)
3V
R30
0_5%_0603
MFX_SWDIO
MFX_SWCLK
R34
100K_1%_0402
MFX_I2C_SCL 42
MFX_I2C_SDA 43
USAR
USART_TX
A T_TX
USART_RX
USAR
A T_RX
R
MFX_USART3_RX
VSS_1
VSS_2
VSS_3
VSSA
MFX_I2C_SDA
IDD_SH0
IDD_SH1/GPO5
IDD_SH2/GPO6
IDD_SH3/GPO7
IDD_CAL/GPO4
IDD_MEAS
IDD_VDD_MCU
MFX_I2C_SCL
MFX_I2C_SDA
SH0
SH0
SH1
SH2
STS9P2UH7
CN5
CAL
VDD_MCU
R27
0_5%_0402
3V3
3
CAL_D
R36
1
2
5
6
3
R38
SH1_D
100K_1%_0402
4
T9
STT7P2UH7
see note *
2
V+
2
R39
1_1%_0805
R43
24_1%_0805
1
2
5
6
R94
SH2_D
100K_1%_0402
V-
U10A
TSZ122IST
R40
1
SH2
300K_1%_0402
U11B
TSZ122IST
R51
7
IDD_MEAS
100_1%_0402
6
C40
1uF_X5R_10%_0603
S
1
2
3
5
6
7
8
R44
R41
620_1%_0805 10K_1%_0805
6
U10B
TSZ122IST
R47
7
6K04_1%_0402
CAL_D
CAL_D
SH1_D
4
CAL_D
SH2_D
one capacitor close to each MFX pins:
VDD, VDD 1, VDD 2, VDD 3
3V_MFX
C26
100nF_X7R_10%_0402
C30
100nF_X7R_10%_0402
C31
100nF_X7R_10%_0402
C28
100nF_X7R_10%_0402
300K_1%_0402
C37
100nF_X7R_10%_0402
1
2
5
6
7
8
4
T8
R42
6K04_1%_0402
differential
amplifier
5
3
SH1
STS9P2UH7
5
Shunts
bypass
to MCU
1
2
3
V-
R50
Current
direction
5
6
7
8
4
S
T7
STT7P2UH7
see note *
SH2
D
G
SH0_D
100K_1%_0402
3
D
SH1
1
2
5
6
4
G
S
4
C38
R49
15K_1%_0402
STS9P2UH7
4
3V3
decoupling capacitors
C36
close to TSZ122
100nF_X7R_10%_0402
D
1
2
5
6
4
3
G
T5
STT7P2UH7
see note *
8
3
SH0
3
V+
S
T3
STT7P2UH7
see note *
4
MFX_SWDIO
decoupling capacitors
close to TSZ122
C39
100nF_X7R_10%_0402
U11A
TSZ122IST
1
SB26
R48
300K_1%_0402
R37
100K_1%_0402
S
CAL
MFX_SWCLK
3V_MFX
SB27
SH0_D
3V_MFX
1
2
3
T6
100nF_X7R_10%_0402
G
5
6
7
8
3V_MFX
1
2
3
4
IDD_MEAS
CAL
3V_MFX
4
T4
4
5
6
38
3
14
41
23
35
47
8
MFX_I2C_SCL
PB11
D
DocID027676 Rev 3
PB10
I2C_SCL
I2C_SDA
I2C_ADDR
R29
45
10K_1%_0402
21
22
MFX_USART3_TX
MFX_USART3_TX
MFX_USART3_RX
MFX_V2
D
BOOT0
IRQOUT
NRST
WAKEUP
W
WA
AKEUP
SWDIO
SWCLK
G
MFX_WAKEUP
MFX_WAKEUP
S
PA4
44
46
7
2
34
37
D
510_1%_0402
R28
C32
[NA]
G
[NA]
3V_MFX
1
2
3
S
3V_MFX
T2
STS9P2UH7
D
R35
TSC_XP/GPO0
TSC_XN/GPO1
TSC_XN
XN/GPO1
TSC_YP/GPO2
TSC_YN/GPO3
TSC_YN
YN/GPO3
G
10
11
12
13
BAT60JFILM
U8
18 MFX_V2
19
20
39
40
15
16
17
29
30
31
32
33
26
27
28
S
NRST D5
NRST
Note *: two footprints superimposed allows to
also populate with SO-8 package.
(STS9P2UH7 P MOS transistors)
D
MFX_IRQ_OUT
MFX_IRQ_OUT
GPIO0
GPIO1
GPIO2
GPIO3
GPIO4
GPIO5
GPIO6
GPIO7
GPIO8
GPIO9
GPIO10
GPIO11
GPIO12
GPIO13
GPIO14
GPIO15
8
PC13
SPARE
SPAR
ARE
LAYOUT PROPOSAL DRAWING
3V_MFX
G
25
VDDA
1uF_POL_10%_TANA C34
9
C33
100nF_X7R_10%_0402
Ferrite
VDD_1
VDD_2
VDD_3
VDD
V
VD
D
3V_MFX
24
36
48
1
L2
JP5
Title: IDD measurement / MFX (Multi Function eXpander)
VDD_MCU
Project: STM32L476G-DISCO
Size: A4
Reference: MB1184
Date: 6/15/2015
Revision: C-01
Sheet: 4 of 10
Schematics
27/39
Not Fitted
EXT/RF E2P Connector
3V
1
3
5
7
PB2
2
4
6
8
EXT_RST
SSM-104-L-DH
SB2
EXT_RST
PD0
5V
PE8
LD_R
LD_G
LD_R
R45
LD_G
1K_1%_0402
LED, red
LD5
R46
NRST
NRST
B1
C45
330_1%_0402
LED, green
100nF
DocID027676 Rev 3
3V
PA0
JOY_CENTER
R55 10K_1%_0402
JOY_CENTER
C43
100nF_X7R_10%_0402
PA1
PA5
PA2
PA3
JOY_LEFT
JOY_DOWN
JOY_RIGHT
JOY_UP
JOY_LEFT
JOY_DOWN
JOY_RIGHT
JOY_UP
R54
R58
R56
R52
0_5%_0402
0_5%_0402
0_5%_0402
0_5%_0402
R53
3
2
RESET Button
USER & WAKE-UP Button
SW-PUSH-CMS_BLACK
I2C1_SDA
I2C1_SCL
SB23
LD4
4
1
I2C1_SDA
I2C1_SCL
3V
R57
10K_1%_0402
CN2
PB7
PB6
Schematics
28/39
Figure 14. Joystick ACP, LEDs and push-button
B2
5
100_1%_0402
2
COMMON
CENTER
4
R59
10K_1%_0402
1
3
6
4
1
2
LEFT
DOWN
RIGHT
UP
3
6
MT-008A
Input pins with pull-down
C41
100nF_X7R_10%_0402
C44
100nF_X7R_10%_0402
C46
100nF_X7R_10%_0402
C42
100nF_X7R_10%_0402
Joystick
Title: Joystick, ACP, LEDs and Push Button
Project: STM32L476G-DISCO
Size: A4
Reference: MB1184
Date: 6/15/2015
Revision: C-01
Sheet: 5 of 10
UM1879
UM1879
Figure 15. LCD display
LCD
COM1
COM2
15
COM0
COM3
16
SEG12
SEG11
17
SEG13
SEG10
18
SEG14
SEG9
19
SEG15
SEG8
20
SEG16
SEG7
21
SEG17
SEG6
22
SEG18
SEG5
23
SEG19
SEG4
24
SEG20
SEG3
25
SEG21
SEG2
26
SEG22
27
SEG23
SEG1
U100
U5
GH08172T
SEG0
SEG1
SEG2
SEG3
SEG4
SEG5
SEG6
Socket DIP28
14
13
12
11
10
9
8
7
6
5
4
3
2
SEG[0..23]
COM[0..3]
1
DocID027676 Rev 3
SEG[0..23]
COM[0..3]
SEG16
SEG15
SEG14
SEG13
SEG12
COM0
COM1
SEG0
28
SEG17
SEG18
SEG19
SEG20
SEG21
SEG22
SEG23
COM2
COM3
SEG11
SEG10
SEG9
SEG8
SEG7
Title: LCD Display
Project: STM32L476G-DISCO
Size: A4
Reference: MB1184
Revision: C-01
Sheet: 6 of 10
29/39
Schematics
Date: 6/15/2015
Schematics
30/39
Figure 16. OTG USB FS
3V3_REG
R73
620_1%_0603
R72
47K_1%_0402
3V3_REG
LD7
LED, red
U14
2
5
4
10K_1%_0402
PC9
OTG_FS_PowerSwitchOn
R61
5V
0_5%_0402
GND FAULT
IN
OUT
EN
STMPS2141STR
R66
3
1
OTG_FS_OverCurrent
0_5%_0402
1
2
3
4
5
C67
4.7uF
VBUS
DM
DP
ID
GND
6
Shield
USB-MICRO-AB
R67
R68
R64
22
22
0_5%_0402
3V3_REG
R71
330_1%_0603
U15
B3
C3
D3
A2
B2
Vbus
D+out
D-out
Dz
Pup
ID
D+in
D-in
Pd1
Pd2
GND
EMIF02-USB03F2
A3
C1
D1
B1
C2
LD6
LED, green
R65
D2
47K_1%_0402
3
OTG_FS_VBUS
OTG_FS_DM
OTG_FS_DP
OTG_FS_ID
T10
9013-SOT23
1
R63
2
DocID027676 Rev 3
PC11
PA11
PA12
PC12
PC10
CN7
USB_Micro-AB receptacle
R62
[NA]
Title: OTG USB FS
Project: STM32L476G-DISCO
Size: A4
Reference: MB1184
Date: 6/15/2015
Revision: C-01
Sheet: 7 of 10
UM1879
UM1879
Figure 17. Audio DAC and microphone MEMS
R70
51_1%_0402
R69
51_1%_0402
C64
C63
22nF_X7R_10%_0603 22nF_X7R_10%_0603
U13
PB7
PB6
PE2
PE5
PE6
PE4
PE3
I2C1_SDA
I2C1_SCL
SAI1_MCK
SAI1_SCK
SAI1_SD
SAI1_FS
AUDIO_RST
I2C1_SDA
I2C1_SCL
1
2
3
37
38
39
40
32
SAI1_MCK
SAI1_SCK
SAI1_SD
SAI1_FS
AUDIO_RST
R60
10K_1%_0402
C56
1uF_X5R_10%_0603
10
11
SDA
SCL
A0
HP/LINE_OUTA
HP/LINE_OUTB
SPKR/HP
MCLK
SCLK
SDIN
LRCK
RESET
-VHPFILT
FLYN
C57
1uF_X5R_10%_0603
DocID027676 Rev 3
C68
1uF_POL_10%_TANA
C65
100nF_X7R_10%_0402
C62
100nF_X7R_10%_0402
C51
3V
100nF_X7R_10%_0402
C52
100nF_X7R_10%_0402
12
2V5
13
16
34
20
36
33
35
41
FLYP
+VHP
VA
VD
TSTO
TSTO
VL
DGND
GND/Thermal Pad
SPKR_OUTA+
SPKR_OUTASPKR_OUTB+
SPKR_OUTBVP
VP
AIN1B
AIN1A
AIN2B
AIN2A
AIN3B
AIN3A
AIN4B
AIN4A
VQ
AFILTB
AFILTA
FILT+
AGND
15
14
31
R76
0_5%_0402
4
6
7
9
8
5
2 CN6
3
1
ST-225-02
3V
30
29
26
25
24
23
22
21
19
28
27
18
17
C58
100nF_X7R_10%_0402
C50
100nF_X7R_10%_0402
C60
1uF_X5R_10%_0603
C53
150pF_NPO_5%_0603
C59
150pF_NPO_5%_0603
C66
1uF_X5R_10%_0603
CS43L22
I2C address 0x94
3V
C70
100nF_X7R_10%_0402
C69
100nF_X7R_10%_0402
3V
R75
R77
[NA]
0_5%_0402
GND
U17
1
5
VDD
GND
LR
CLK
DOUT
2
3
4
AUDIO_CLK
AUDIO_DIN
PE9
AUDIO_CLK
PE7
AUDIO_DIN
MP34DT01
Title: Audio Codec and Microphone MEMS
Project: STM32L476G-DISCO
Size: A4
Reference: MB1184
Revision: C-01
Sheet: 8 of 10
31/39
Schematics
Date: 6/15/2015
Schematics
32/39
Figure 18. Quad-SPI Flash memory
Quad SPI Flash Memory
3V
R74
10K_1%_0402
U16
PE11
PE10
QSPI_CS
QSPI_CLK
PE12
PE13
PE14
PE15
QSPI_D0
QSPI_D1
QSPI_D2
QSPI_D3
QSPI_CS
QSPI_CLK
1
6
QSPI_D0
QSPI_D1
QSPI_D2
QSPI_D3
5
2
3
7
S#
C
VCC
DQ0
DQ1
DQ2/Vpp/W#
DQ2/Vpp/W
V
#
DQ3/HOLD# VSS
8
C61
100nF_X7R_10%_0402
4
N25Q128A13EF840E
DocID027676 Rev 3
Title: Quad SPI Flash Memory
Project: STM32L476G-DISCO
Size: A4
Reference: MB1184
Date: 6/15/2015
Revision: C-01
Sheet: 9 of 10
UM1879
UM1879
Figure 19. Gyroscope, accelerometer, magnetometer MEMS
3V
C18
10uF_X5R_10%_0603
U7
PD1
PD4
PD3
PD7
PB8
PD2
MEMS_SCK
MEMS_MOSI
MEMS_MISO
GYRO_CS
GYRO_INT2
GYRO_INT1
MEMS_SCK
MEMS_MOSI
MEMS_MISO
GYRO_CS
GYRO_INT2
GYRO_INT1
1
2
3
4
5
6
7
8
VDD_IO
SCL/SPC
SDA/SDI/SDO
SA0/SDO
CS_I2C/SPI
DRDY/INT2
INT1
GND
VDD
VDD
C1
GND
GND
GND
GND
GND
16
15
14
13
12
11
10
9
C19
100nF_X7R_10%_0402
C20
10nF_X7R_10%_0603
L3GD20
DocID027676 Rev 3
MEMS
PD1
PE0
PC0
PD4
XL_CS
MAG_CS
MEMS_MOSI
R23
MEMS_SCK
XL_CS
MAG_CS
1K_1%_0402
C17
100nF_X7R_10%_0402
U6
1
2
3
4
5
6
SCL/SPC
INT_XL
CS_XL
DRDY_MAG
CS_MAG
VDD_IO
SDA/SDI/SDO
VDD
C1
GND
GND
INT_MAG
LSM303CTR
12
11
10
9
8
7
XL_INT
XL_INT
MAG_DRDY
MAG_DRDY
3V
C21
10uF_X5R_10%_0603
C16
100nF_X7R_10%_0402
C22
100nF_X7R_10%_0402
MAG_INT
MAG_INT
PE1
PC2
PC1
Title: Gyroscope, Accelerometer, Magnetometer MEMS
Project: STM32L476G-DISCO
Size: A4
Reference: MB1184
Date: 6/15/2015
Revision: C-01
Sheet: 10 of 10
Schematics
33/39
Power consumption measurements
Appendix A
UM1879
Power consumption measurements
The power consumption measurements of the STM32L476 Discovery board are reflected in
Figure 20. Note the GPIO configuration of the STM32L476VGT6 in standby mode.
Figure 20. Power consumption tree
3V3_REG
JP6
Measured 287µA
287-115 => 172µA
3V3
172-92 => 80µA
Measured 92µA
Measured 115 µA
D6
For IDD
TSZ122
1st stage
SB28
V+ : ~11µA due to resistors bridge
V- : ~11µA due to resistors bridge
3V
LDO
/'
115-70 => 45µA
Measured 70µA
Audio
DAC&6
03
QuadSPI
14
L3GD20
LSM303
CTR
R30
3V_MFX
70-0.4 => 69.6µA
MFX
STM32L152
For IDD
TSZ122
2nd stage
Measured 0.4µA
V+ : ~10µA due to resistors bridge
JP5
VDD_MCU
STM32L476VGT6
34/39
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
DocID027676 Rev 3
UM1879
Power consumption measurements
The total measured power consumption of the STM32L476 Discovery board is 287µA,
which is as expected.
Table 8 gives for each peripheral the theoretical power consumption value. It is extracted
from the vendor’s product datasheet. The typical values are given under the same
conditions as used for the power consumption measurement (see Figure 20: Power
consumption tree). 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.3
Standby mode. All GPIOs in ‘Analog Input’ except
WAKEUP input with external PD (R34)
STM32L476VGT6_U9
0.3
Standby mode, GPIOs configuration described
above
TOTAL STM32L476
Discovery board
295.6
-
-
DocID027676 Rev 3
-
35/39
38
Mechanical drawing
Appendix B
UM1879
Mechanical drawing
Figure 21. STM32L476 Discovery board mechanical drawing
36/39
DocID027676 Rev 3
UM1879
Compliance statements
Appendix C
Compliance statements
C.1
Federal Communications Commission (FCC) and Industry
Canada (IC) Compliance Statement
C.1.1
FCC Compliance Statement
Part 15.19
This device complies with Part 15 of the FCC Rules. Operation is subject to the following
two conditions: (1) this device may not cause harmful interference, and (2) this device must
accept any interference received, including interference that may cause undesired
operation.
Part 15.105
This equipment has been tested and found to comply with the limits for a Class B digital
device, pursuant to part 15 of the FCC Rules. These limits are designed to provide
reasonable protection against harmful interference in a residential installation. This
equipment generates uses and can radiate radio frequency energy and, if not installed and
used in accordance with the instructions, may cause harmful interference to radio
communications. However, there is no guarantee that interference will not occur in a
particular installation. If this equipment does cause harmful interference to radio or
television reception, which can be determined by turning the equipment off and on, the user
is encouraged to try to correct the interference's by one or more of the following measures:
•
Reorient or relocate the receiving antenna.
•
Increase the separation between the equipment and the receiver.
•
Connect the equipment into an outlet on a circuit different from that to which the
receiver is connected.
•
Consult the dealer or an experienced radio/TV technician for help.
Part 15.21
Any changes or modifications to this equipment not expressly approved by
STMicroelectronics may cause harmful interference and void the user’s authority to operate
this equipment.
C.2
IC Compliance Statement
C.2.1
Compliance Statement
Industry Canada ICES-003 Compliance Label: CAN ICES-3 (B)/NMB-3(B)
C.2.2
Déclaration de conformité
Étiquette de conformité à la NMB-003 d’Industrie Canada : CAN ICES-3 (B)/NMB-3(B)
DocID027676 Rev 3
37/39
38
Revision history
UM1879
Revision history
Table 9. Document revision history
38/39
Date
Revision
Changes
17-Jul-2015
1
Initial release.
04-Aug-2015
2
Added Section 6: Bootloader limitations.
24-Mar-2016
3
Added Section Appendix C: Compliance statements.
DocID027676 Rev 3
UM1879
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.
© 2016 STMicroelectronics – All rights reserved
DocID027676 Rev 3
39/39
39