Professional Documents
Culture Documents
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.
Contents
1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2 Demonstration software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3 Order code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
4 Delivery recommendations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
5 Bootloader limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
6 Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
8 Schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
List of tables
List of figures
1 Features
2 Demonstration software
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.
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
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.
JP6
9-axis motion
sensors power 128Mb
QuadSPI flash
digital
microphone
MEMS IO
IDD current
IO
STM32L476VGT6 measurement
Header P2
Header P1
User LEDs
LD5 (green)
LD4 (red)
Joystick with
4-direction
LCD segment IO reset control and
(4x24) selector
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
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
Both CN3 jumpers ON ST-LINK/V2-1 functions enabled for on board programming (default)
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.
1. Prefer using the “USB Composite Device” handle for a full recovery.
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).
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.
When JP3 is closed, the SWD connector CN4 pin5 and the embedded
ST-LINK/V2-1 are connected to NRST.
Default Setting: closed
JP3
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
069
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.
5V_U
1 3V3 1
(5V_USB_ST_LINK)
2 GND 2 GND
5V_I
3 2V5 3
(5V INPUT)
VUSB
4 GND 4
(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
U_LCD_GH08172
LCD_GH08172.SchDoc
U_Peripherals
SEG[0..23] U_STM32Lx Peripherals.SchDoc
SEG[0..23]
COM[0..3] STM32Lx.SchDoc
COM[0..3]
QSPI_CS PC14 NRST
QSPI_CS PC14 NRST
QSPI_CLK PC15 LD_R
QSPI_CLK PC15 LD_R
QSPI_D0 LD_G
QSPI_D0 LD_G
U_QSPI QSPI_D1 PH[0..1] JOY_CENTER
QSPI_D1 PH[0..1] JOY_CENTER
QSPI.SchDoc QSPI_D2 JOY_DOWN
QSPI_D2 JOY_DOWN
QSPI_CS QSPI_D3 JOY_LEFT
QSPI_CS QSPI_D3 JOY_LEFT
QSPI_CLK JOY_RIGHT
QSPI_CLK JOY_RIGHT
AUDIO_RST COM[0..3] JOY_UP
AUDIO_RST COM[0..3] JOY_UP
QSPI_D0 AUDIO_DIN SEG[0..23] EXT_RST
Schematics
DocID027676 Rev 2
SWO MFX_WAKEUP XL_CS GYRO_CS
SWO MFX_WAKEUP XL_CS GYRO_CS
MFX_USART3_RX MFX_IRQ_OUT XL_INT GYRO_INT2
MFX_USART3_RX MFX_IRQ_OUT XL_INT GYRO_INT2
MFX_USART3_TX NRST MFX_I2C_SDA GYRO_INT1
MFX_USART3_TX NRST MFX_I2C_SDA GYRO_INT1
MFX_I2C_SCL MAG_CS
MFX_I2C_SCL MAG_CS
3V3_REG-ON MCO MFX_USART3_RX MAG_DRDY XL_CS
3V3_REG-ON MCO MFX_USART3_RX MAG_DRDY XL_CS
MFX_USART3_TX MAG_INT XL_INT
MFX_USART3_TX MAG_INT XL_INT
MAG_CS
MAG_CS
MAG_DRDY
MAG_DRDY
MAG_INT
MAG_INT
P2 P1
U_IDD_measurement
1 5V_USB_ST_LINK 3V3 1
GND GND IDD_measurement.SchDoc
2 5V_IN 2
MFX_WAKEUP
3 2V5 3 MFX_WAKEUP
OTG_FS_VBUS GND MFX_IRQ_OUT
4 4 MFX_IRQ_OUT
MFX_I2C_SDA
5 5V 3V 5 MFX_I2C_SDA
GND BOOT0 MFX_I2C_SCL
6 6 MFX_I2C_SCL
PC14 PB3 3V3_REG-ON MFX_USART3_RX
7 7 MFX_USART3_RX
PC15 PB2 LD_R MFX_USART3_TX
8 8 MFX_USART3_TX
PH0 PE8 LD_G NRST
9 9 NRST
PH1 PA0 JOY_CENTER
10 10
NRST PA5 JOY_DOWN Rev A-01 --> PCB label MB1184 A-01
11 11
GND PA1 JOY_LEFT Rev B-01 --> PCB label MB1184 B-01, Remove R91, Replace COM4..7 by COM0..3,
12 12
QSPI_CS PE11 PA2 JOY_RIGHT Add SB for USB_OTG, add VBUS on P2 for USB USER power supply
13 13
QSPI_CLK PE10 PA3 JOY_UP Rev C-01 --> PCB label MB1184 C-01, Remove SWCLK and SWO shorted,
Figure 10. STM32L476 discovery board design top sheet
14 14
Wired on Solder Side
QSPI_D0 PE12 PB6 I2C1_SCL Replaced on P1, PB8..9 by PB6..7.
15 15
QSPI_D1 PE13 PB7 I2C1_SDA --> MP45DT02 replaced by MP34DT01
16 16
QSPI_D2 PE14 PD0 EXT_RST --> Xtal 32.768kHz replaced by NX3215SA
17 17
QSPI_D3 PE15 NC --> Change values of C27, C25 : C27=C25=4.7pF
18 18 JP8
GND GND --> Change values of resistors : R40=R47=6.04k, R49=15k,
19 19
GND GND Title: STM32L476 Discovery
20 20
Header 20 Header 20 Project: STM32L476G-DISCO
JP7
Size: A4 Reference: MB1184 Revision: C-01
Date: 6/15/2015 Sheet: 1 of 10
25/39
Schematics
38
26/39
Schematics
TCK/SWCLK PA14
SWCLK
TMS/SWDIO PA13
SWDIO
T_NRST SWD
NRST
JP3
R18 R19 D4 T_SWO PB3
5V_IN SWO
4K7_1%_0402 2K7_1%_0402 BAT60JFILM SB14
R82 R14
10K_1%_0402 100K_1%_0402 R12
3V3_ST_LINK 10K_1%_0402
Board Ident: PC13=0
R83 JP2 SWD R13 AIN_1
[NA] Not Fitted D1 [NA]
CN4 BAT60JFILM
DEFAULT
RESERVED
USB_RENUMn
R17
SWIM
SWIM_IN
SWIM_RST
SWIM_RST_IN
PWR_EXT
STM_JTCK T_JTCK
1 3V3_ST_LINK
22_1%_0402 SB5 SB3
3V3_ST_LINK 2
STM_JTCK SWCLK
48
47
46
45
44
43
42
41
40
39
38
37
3
U3 SB6 SB4
4 TP2
STM32F103CBT6 R20 T_JTMS
5
R21 22_1%_0402 T_NRST
PB9
PB8
PB7
PB6
PB5
6 SB9 SB7
C11 C10 R22 22_1%_0402 T_SWO STM_JTMS SWDIO
VSS_3
VDD_3
BOOT0
5075BMR-05-SM 22_1%_0402 SB10 SB8 TP1
PB3/JTDO
PA15/JTDI
20pFX1 20pF 1 36
VBAT VDD_2 3V3_ST_LINK
PB4/JNTRST
3V3_ST_LINK1 2 2 35
JTCK/SWCLK
PC13 VSS_2
3 34 STM_JTMS
1
2
3
4
PA3
PA4
PA5
PA6
PA7
PB0
PB1
PB2/BOOT1
PB10
PB11
VSS_1
VDD_1
STLINK_TX
3V3_REG 100nF
D2 1uF 10nF 1uF
MFX_USART3_RX 5V_USB_ST_LINK
DocID027676 Rev 2
13
14
15
16
17
18
19
20
21
22
23
24
SB17 STPS1L30A
USART_RX R2
SB16 5 Volts From USB ST-LINK
3V3_ST_LINK 1K_1%_0402
TX
RX JP4 Ilim = 510mA 5 Volts Output
STLINK_RX R3 Isc= 1.2Ilim to 1.5Ilim = 612mA to 765mA
T_JTCK
T_JTDO
T_JTDI
T_NRST
T_JRST
USART_TX LD2
SB13 1K_1%_0402 3 Volts Output
MFX_USART3_TX R15 LED, red
SB15 U2 SB12 5V U4 LD39050PU33R
3V3_ST_LINK
[NA] 1 6 6 3
JP1 IN OUT VI PG
LD3 2 7 C9 1 4
IN OUT EN VO 3V3_REG
LED, red
Not Fitted 8 5 R16 100nF 5
GND
GND
PWR_ENn 3 4 100nF
ON GND
C7 C71 C6 C8 1uF 1uF
5V_USB_ST_LINK ST890CDR
USB 3V3_ST_LINK 100nF 100nF 100nF 100nF
U12 LD3985M25R 2.5 Volts Output
R10 1 5
3
5V Vin Vout 2V5
T1 10K_1%_0402 SB29
9013-SOT23 1 3 C48
Figure 11. ST-LINK/V2-1 with support of SWD only
3V3 INH
5V_USB_ST_LINK 3V3_REG-ON SB28 GND BYPASS
R79 3V3_REG-ON 100nF
USB_RENUMn
2
2
4
VCC R78
2 R9 0_5%_0402 USB_DM LED_STLINK LD1 3V3_ST_LINK 1uF 10nF 1uF
D- 36K_1%_0402 3V3_REG CR1
3 R8 USB_DP Red
D+
3
1
5 R6 100K_1%_0402 330_1%_0402
2
GND
6 JP6
SHELL 3V3
Title: ST-LINK/V2-1 with support of SWD only
USB-MINI-typeB R4 3 4 R1 D6
3V Project: STM32L476G-DISCO
330_1%_0402 0_5%_0402 STPS1L30A
_Green Size: A4 Reference: MB1184 Revision: C-01
LD_BICOLOR_CMS
Date: 6/15/2015 Sheet: 2 of 10
UM1879
UM1879
QSPI_CS PE11
QSPI_CS
QSPI_CLK PE10
QSPI_CLK
PA8 COM0 PA7 SEG0 PC8 SEG13 QSPI_D0 PE12
QSPI_D0
PA9 COM1 PC5 SEG1 PC6 SEG14 QSPI_D1 PE13
QSPI_D1
PA10 COM2 PB1 SEG2 PD14 SEG15 PB3 3V3_REG-ON QSPI_D2 PE14
3V3_REG-ON QSPI_D2
PB9 COM3 PB13 SEG3 PD12 SEG16 QSPI_D3 PE15
R92 QSPI_D3
PB15 SEG4 PD10 SEG17 PD5 USART_TX
USART_TX
PD9 SEG5 PD8 SEG18 PD6 USART_RX 2K2_1%_0402 I2C1_SDA PB7
USART_RX R93 I2C1_SDA
PD11 SEG6 PB14 SEG19 I2C1_SCL PB6
3V I2C1_SCL
PD13 SEG7 PB12 SEG20 PA14 SWCLK 2K2_1%_0402
SWCLK
PC15 PD15 SEG8 PB0 SEG21 PA13 SWDIO SAI1_MCK PE2
PC15 SWDIO SAI1_MCK
PC14 PC7 SEG9 PC4 SEG22 PB3 SWO SAI1_SCK PE5
PC14 SWO SAI1_SCK
PA15 SEG10 PA6 SEG23 SAI1_SD PE6
SAI1_SD
PB4 SEG11 SAI1_FS PE4
R87 SAI1_FS
PH[0..1] PB5 SEG12 PC3 VLCD
PH[0..1] VDD_MCU
[NA] AUDIO_RST PE3
AUDIO_RST
AUDIO_DIN PE7
C76 AUDIO_DIN
Layout priority to PA9, PA10 AUDIO_CLK PE9
AUDIO_CLK
1uF_X5R_10%_0603 U9A
Must be close to the MCU PA0 23 97 PE0 OTG_FS_PowerSwitchOn PC9
PA0 PE0 OTG_FS_PowerSwitchOn
PA1 24 98 PE1 PA9 OTG_FS_VBUS PC11
PA1 PE1 OTG_FS_VBUS
PA2 25 1 PE2 SB24 OTG_FS_DM PA11
PA2 PE2 OTG_FS_DM
MCO PA3 26 2 PE3 OTG_FS_DP PA12
MCO PA3 PE3 OTG_FS_DP
SB18 PA4 29 3 PE4 PA10 OTG_FS_ID PC12
PA4 PE4 OTG_FS_ID
Not Fitted PA5 30 4 PE5 SB25 OTG_FS_OverCurrent PC10
R89 PA5 PE5 OTG_FS_OverCurrent
PH0 PH0-OSC_IN C78 PA6 31 5 PE6
PA6 PE6
SB22 0_5%_0402 PA7 32 38 PE7 SEG[0..23]
2
PA7 PE7 SEG[0..23]
20pF_NPO_5%_0402 PA8 67 39 PE8 COM[0..3]
X2 PA8 PE8 COM[0..3]
PA9 68 40 PE9
8MHz PA9 PE9
PA10 69 41 PE10 EXT_RST PD0
1
R88 PA10 PE10 EXT_RST
PH1 PH1-OSC_OUT C77 PA11 70 42 PE11
PA11 PE11
SB21 220_1%_0402 PA12 71 43 PE12 LD_R PB2
PA12 PE12 LD_R
20pF_NPO_5%_0402 PA13 72 44 PE13 LD_G PE8
PA13 PE13 LD_G
PA14 76 45 PE14
PA14 PE14
PA15 77 46 PE15 NRST
PA15 PE15 NRST
C27
DocID027676 Rev 2
PC14 PC14-OSC32_IN R26 PB0 35 81 PD0 JOY_CENTER PA0
PB0 PD0 JOY_CENTER
SB20 0_5%_0402 PB1 36 82 PD1 JOY_DOWN PA5
4.7pF_NPO_-+0.25pF_0402 PB1 PD1 JOY_DOWN
PB2 37 83 PD2 JOY_LEFT PA1
X3 PB2 PD2 JOY_LEFT
Must be close to the Crystal PB3 89 84 PD3 JOY_RIGHT PA2
NX3215SA-32.768K PB3 PD3 JOY_RIGHT
PB4 90 85 PD4 JOY_UP PA3
PB4 PD4 JOY_UP
C25 PB5 91 86 PD5
R25 PB5 PD5
PC15 PC15-OSC32_OUT PB6 92 87 PD6 MFX_USART3_TX
PB6 PD6 MFX_USART3_TX
SB19 0_5%_0402 PB7 93 88 PD7 MFX_USART3_RX
4.7pF_NPO_-+0.25pF_0402 PB7 PD7 MFX_USART3_RX
PB8 95 55 PD8
PB8 PD8
PB9 96 56 PD9 MFX_WAKEUP PA4
PB9 PD9 R31 MFX_WAKEUP
PB10 47 57 PD10 MFX_IRQ_OUT PC13
PB10 PD10 MFX_IRQ_OUT
PB11 48 58 PD11 4K7_1%_0402 MFX_I2C_SCL PB10
PB11 PD11 R32 MFX_I2C_SCL
All this block must be very close to the STM32L476 PB12 51 59 PD12 MFX_I2C_SDA PB11
PB12 PD12 3V MFX_I2C_SDA
Figure 12. STM32L476VGT6 MCU
27/39
Schematics
38
28/39
Schematics
3V
R30
L2 0_5%_0603
LAYOUT PROPOSAL DRAWING
3V_MFX Note *: two footprints superimposed allows to
Ferrite C33
3V_MFX also populate with SO-8 package.
100nF_X7R_10%_0402
9
24
36
48
1
1uF_POL_10%_TANA C34 U8 (STS9P2UH7 P MOS transistors)
18 MFX_V2
D
GPIO0
25 19
SPARE
SPAR
ARE GPIO1
VDD
V
VD
PC13 MFX_IRQ_OUT 20
VDDA
MFX_IRQ_OUT GPIO2
VDD_1
VDD_2
VDD_3
10 39
TSC_XP/GPO0 GPIO3
NRST D5 BAT60JFILM 11 40 3V_MFX
NRST TSC_XN/GPO1
TSC_XN
XN/GPO1 GPIO4
12 15 T2 1
TSC_YP/GPO2 GPIO5
13 16 2
S
R35 TSC_YN/GPO3
TSC_YN
YN/GPO3 GPIO6 STS9P2UH7
17 3
3V_MFX GPIO7
[NA] 510_1%_0402 44 29
BOOT0 GPIO8
C32 R28 46 30
IRQOUT GPIO9
[NA] 7 31 SH0 4 5
NRST GPIO10
G
D
PA4 MFX_WAKEUP 2 32 6
MFX_WAKEUP WAKEUP
W
WAAKEUP GPIO11
MFX_SWDIO 34 MFX_V2 33 7
SWDIO GPIO12
R34 MFX_SWCLK 37 26 8 SH0_D
SWCLK GPIO13
100K_1%_0402 27
GPIO14
MFX_I2C_SCL 42 28 3V_MFX
I2C_SCL GPIO15
MFX_I2C_SDA 43 T4 1
I2C_SDA
R29 45 4 SH0 2
S
14 IDD_MEAS MFX_SWCLK 6
IDD_MEAS 2
41 3V3 7
IDD_VDD_MCU VDD_MCU 3
PB10 MFX_I2C_SCL R27 MFX_SWDIO 8 CAL_D
VSS_1
VSS_2
VSS_3
VSSA
MFX_I2C_SCL 4
0_5%_0402
PB11 MFX_I2C_SDA T6 1 CAL_D
8
MFX_I2C_SDA
23
35
47
S
SB27 3V_MFX 2
STS9P2UH7
decoupling capacitors 3
SB26 close to TSZ122
R48 C39
CAL 300K_1%_0402 100nF_X7R_10%_0402 SH1 4 5
DocID027676 Rev 2
100nF_X7R_10%_0402 U11A 6
G
D
3
G STT7P2UH7 decoupling capacitors C36 15K_1%_0402 T8 1 CAL_D
4
S
4
1
2
5
6
T3 CAL_D 3 TSZ122IST
STT7P2UH7 V+ 1 R40 R42 SH2 4 5
S
S
S
G
D
G
D
G
D
G
D
2 2 2 5 TSZ122IST
5 5 5 7 R51 IDD_MEAS
R36 6 R38 6 R94 6 differential 6 100_1%_0402
SH0_D SH1_D SH2_D amplifier one capacitor close to each MFX pins:
100K_1%_0402 100K_1%_0402 100K_1%_0402 C40 VDD, VDD 1, VDD 2, VDD 3
R50 1uF_X5R_10%_0603 3V_MFX
R39 R43 R44 R41 300K_1%_0402 C26
1_1%_0805 24_1%_0805 620_1%_0805 10K_1%_0805 U10B 100nF_X7R_10%_0402
Current 5 TSZ122IST C30
direction 7 R47 C37 100nF_X7R_10%_0402
Shunts 6 6K04_1%_0402 100nF_X7R_10%_0402 C31
100nF_X7R_10%_0402
Figure 13. IDD measurement / MFX (Multi Function eXpander)
C28
3
1
bypass 100nF_X7R_10%_0402
2
to MCU JP5
Title: IDD measurement / MFX (Multi Function eXpander)
VDD_MCU Project: STM32L476G-DISCO
Size: A4 Reference: MB1184 Revision: C-01
Date: 6/15/2015 Sheet: 4 of 10
UM1879
UM1879
Not Fitted 3V
B2
R53 5
3V COMMON
USER & WAKE-UP Button 100_1%_0402
DocID027676 Rev 2
PA0 JOY_CENTER R55 10K_1%_0402 2 4
JOY_CENTER CENTER
R59
C43 10K_1%_0402
100nF_X7R_10%_0402 1 6
2
PA1 JOY_LEFT R54 1
JOY_LEFT LEFT
PA5 JOY_DOWN R58 0_5%_0402 3
JOY_DOWN DOWN
PA2 JOY_RIGHT R56 0_5%_0402 6
JOY_RIGHT RIGHT
PA3 JOY_UP R52 0_5%_0402 4 3
JOY_UP UP
0_5%_0402
MT-008A
C41
C44 100nF_X7R_10%_0402
C46 100nF_X7R_10%_0402
Input pins with pull-down C42 100nF_X7R_10%_0402
100nF_X7R_10%_0402
Joystick
Figure 14. Joystick ACP, LEDs and pushbutton
29/39
Schematics
38
30/39
Schematics
LCD
SEG17 SEG16
SEG18 SEG15
SEG19 SEG14
SEG20 SEG13
SEG21 SEG12
SEG22 COM0
SEG23 COM1
28
27
26
25
24
23
22
21
20
19
18
17
16
15
U100
U5
GH08172T
COM0
COM1
SEG23
SEG22
SEG21
SEG20
SEG19
SEG18
SEG17
SEG16
SEG15
SEG14
SEG13
SEG12
SEG[0..23]
SEG[0..23]
COM[0..3]
COM[0..3]
DocID027676 Rev 2
Socket DIP28
SEG0
SEG1
SEG2
SEG3
SEG4
SEG5
SEG6
SEG7
SEG8
SEG9
SEG10
SEG11
COM3
COM2
Figure 15. LCD display
1
2
3
4
5
6
7
8
9
10
11
12
13
14
SEG0 COM2
SEG1 COM3
SEG2 SEG11
SEG3 SEG10
SEG4 SEG9
SEG5 SEG8
SEG6 SEG7
3V3_REG
R73
620_1%_0603
R72
3V3_REG 47K_1%_0402
LD7
LED, red
R62 U14
10K_1%_0402 2 3 R66 PC10
GND FAULT OTG_FS_OverCurrent
5 1 0_5%_0402
R61 5V IN OUT
PC9 4 CN7
OTG_FS_PowerSwitchOn EN
0_5%_0402 1
C67 VBUS
STMPS2141STR 2
4.7uF DM
3
DP
4
ID
5
GND
USB_Micro-AB receptacle
6
Shield
PC11 USB-MICRO-AB
OTG_FS_VBUS
PA11 R67 22
OTG_FS_DM
PA12 R68 22
OTG_FS_DP R64
PC12
OTG_FS_ID
0_5%_0402
3V3_REG
DocID027676 Rev 2
U15 R71
B3 A3 330_1%_0603
Vbus ID
C3 C1
D+out D+in
D3 D1
D-out D-in LD6
A2 B1
Dz Pd1 LED, green
B2 C2
Pup Pd2
Figure 16. OTG USB FS
D2 R65
3
GND
47K_1%_0402
EMIF02-USB03F2 1 T10
9013-SOT23
2
R63
[NA]
31/39
Schematics
38
32/39
Schematics
R70 R69
51_1%_0402 51_1%_0402
C64 C63
22nF_X7R_10%_0603 22nF_X7R_10%_0603
U13 2 CN6
PB7 I2C1_SDA 1 15
I2C1_SDA SDA HP/LINE_OUTA
PB6 I2C1_SCL 2 14
I2C1_SCL SCL HP/LINE_OUTB
3 31 3
A0 SPKR/HP R76 1
PE2 SAI1_MCK 37 0_5%_0402 ST-225-02
SAI1_MCK MCLK
PE5 SAI1_SCK 38 4
SAI1_SCK SCLK SPKR_OUTA+
PE6 SAI1_SD 39 6
SAI1_SD SDIN SPKR_OUTA-
PE4 SAI1_FS 40 7
SAI1_FS LRCK SPKR_OUTB+
PE3 AUDIO_RST 32 9 3V
AUDIO_RST RESET SPKR_OUTB-
R60 8
VP
10K_1%_0402 10 5 C58
-VHPFILT VP
C56 11 100nF_X7R_10%_0402
FLYN
1uF_X5R_10%_0603 30 C50
C57 AIN1B
29 100nF_X7R_10%_0402
AIN1A
1uF_X5R_10%_0603 12 26
FLYP AIN2B
25
AIN2A
2V5 24
AIN3B
C68 13 23
+VHP AIN3A
1uF_POL_10%_TANA 16 22 C60
VA AIN4B
C65 34 21 1uF_X5R_10%_0603
VD AIN4A
100nF_X7R_10%_0402 C53
C62 20 19 150pF_NPO_5%_0603
TSTO VQ
100nF_X7R_10%_0402 36 28 C59
TSTO AFILTB
C51 33 27 150pF_NPO_5%_0603
3V VL AFILTA
100nF_X7R_10%_0402 35 18 C66
DGND FILT+
C52 41 17 1uF_X5R_10%_0603
DocID027676 Rev 2
GND/Thermal Pad AGND
100nF_X7R_10%_0402
CS43L22
I2C address 0x94
3V R75 R77
Figure 17. Audio DAC and microphone MEMS
3V GND
C70 [NA] 0_5%_0402
100nF_X7R_10%_0402
C69 U17
100nF_X7R_10%_0402 1 2
VDD LR
3 AUDIO_CLK PE9
CLK AUDIO_CLK
5 4 AUDIO_DIN PE7
GND DOUT AUDIO_DIN
MP34DT01
3V
R74
10K_1%_0402
U16
PE11 QSPI_CS 1 8
QSPI_CS S# VCC
PE10 QSPI_CLK 6
QSPI_CLK C
PE12 QSPI_D0 5 C61
QSPI_D0 DQ0 100nF_X7R_10%_0402
PE13 QSPI_D1 2
QSPI_D1 DQ1
PE14 QSPI_D2 3
QSPI_D2 DQ2/Vpp/W#
DQ2/Vpp/W
V #
PE15 QSPI_D3 7 4
QSPI_D3 DQ3/HOLD# VSS
N25Q128A13EF840E
DocID027676 Rev 2
Figure 18. Quad-SPI Flash memory
33/39
Schematics
38
34/39
Schematics
3V
C18
10uF_X5R_10%_0603
U7
1 16 C19
VDD_IO VDD
PD1 MEMS_SCK 2 15 100nF_X7R_10%_0402
MEMS_SCK SCL/SPC VDD
PD4 MEMS_MOSI 3 14
MEMS_MOSI SDA/SDI/SDO C1
PD3 MEMS_MISO 4 13 C20
MEMS_MISO SA0/SDO GND
PD7 GYRO_CS 5 12 10nF_X7R_10%_0603
GYRO_CS CS_I2C/SPI GND
PB8 GYRO_INT2 6 11
GYRO_INT2 DRDY/INT2 GND
PD2 GYRO_INT1 7 10
GYRO_INT1 INT1 GND
8 9
GND GND
L3GD20
MEMS
XL_INT PE1
DocID027676 Rev 2
XL_INT
MAG_DRDY PC2
MAG_DRDY
3V
PD1 MEMS_SCK U6 C21
PE0 XL_CS 1 12 10uF_X5R_10%_0603
XL_CS SCL/SPC INT_XL
PC0 MAG_CS 2 11 C16
MAG_CS CS_XL DRDY_MAG
3 10 100nF_X7R_10%_0402
CS_MAG VDD_IO
PD4 MEMS_MOSI R23 1K_1%_0402 4 9 C22
SDA/SDI/SDO VDD
5 8 100nF_X7R_10%_0402
C1 GND
6 7 MAG_INT
GND INT_MAG MAG_INT
C17
100nF_X7R_10%_0402 LSM303CTR PC1
Figure 19. Gyroscope, accelerometer, magnetometer MEMS
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.
3V3_REG
JP6
Measured 287µA
287-115 => 172µA 172-92 => 80µA
3V3
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.
Revision history
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.
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.