<<

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 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

2/39 DocID027676 Rev 3 UM1879 Contents

8 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 FCC Compliance Statement ...... 37 C.2 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. ON/OFF conventions ...... 7 Table 2. Jumper states ...... 12 Table 3. Debug connector CN4 ...... 14 Table 4. Reset related jumper ...... 17 Table 5. Connector CN2 ...... 20 Table 6. Extension connector ...... 21 Table 7. Solder bridges...... 22 Table 8. Typical power consumption of the STM32L476 Discovery board...... 35 Table 9. Document revision history ...... 38

4/39 DocID027676 Rev 3 UM1879 List of figures

List of figures

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

DocID027676 Rev 3 5/39

5 Features UM1879

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 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

6/39 DocID027676 Rev 3 UM1879 Demonstration software

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 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 UM1879

6 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

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 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 (3V CR2032 Battery) USB CR1 Embedded ST_LINK/V2-1 SWD

JP6 9-axis motion sensors power 128Mb QuadSPI flash digital microphone MEMS IO IO IDD current STM32L476VGT6 measurement User LEDs LD5 (green) LD4 (red) Joystick with 4-direction Header P2 Header P1 LCD segment IO reset control and (4x24) selector SAI Audio DAC Reset stereo 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 UM1879

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 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 Description

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

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

7.1.1 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 UM1879

7.1.4 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 6SWOReserved

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

14/39 DocID027676 Rev 3 UM1879 Hardware layout and configuration

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. 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: 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.

Note: 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 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 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: 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.

16/39 DocID027676 Rev 3 UM1879 Hardware layout and configuration

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 (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 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 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 UM1879

7.5 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 Hardware layout and configuration

7.9 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 Pin number Description Pin number Description

1 I2C1_SDA (PB7) 5 +3V3 2NC6NC 3 I2C1_SCL (PB6) 7 GND 4 EXT_RST(PD0) 8 NC

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: 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).

20/39 DocID027676 Rev 3 UM1879 Hardware layout and configuration

7.14 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

5V_U 13V31 (5V_USB_ST_LINK) 2 GND 2 GND 5V_I 32V53 (5V INPUT) VUSB 4GND4 (USB OTG FS VBUS) 53V5 5V 6BOOT06 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 UM1879

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

Table 7. Solder bridges Bridge State Description

ON ST-LINK module is powered SB1 (ST-LINK PWR) OFF ST-LINK module is not powered ON 5V connected to CN2.8 SB2 (EXT/RF E2P) OFF 5V is not connected to CN2.8 SB3, SB4, SB7, SB8 OFF Reserved, do not modify (RESERVED) SB5, SB6, SB9, SB10 (DEFAULT) ON Reserved, do not modify ON No incidence on NRST signal of STM32F103CBT6 SB11 (STM_RST) NRST signal of STM32F103CBT6 is connected to OFF GND SB12 OFF Reserved PA2, PA3 of STM32F103CBT6 are connected to PD6, ON PD5 of STM32L476VGT6 SB16, SB13 (USART RX, TX) PA2, PA3 of STM32F103CBT6 are not connected to OFF PD6, PD5 of STM32L476VGT6 PA10 of STM32F103CBT6 are not connected to PB3 of ON STM32L476VGT6 SB17, SB15 (MFX USART RX,TX) PA2, PA3 of STM32F103CBT6 are connected to MFX OFF USART RX,TX PA10 of STM32F103CBT6 is connected to PB3 of ON STM32L476VGT6 SB14 (T_SWO) PA10 of STM32F103CBT6 is not connected to PB3 of OFF STM32L476VGT6 ON If SB22 is also ON, MCO is connected to PH0 SB18 (MCO) OFF MCO is not connected to PH0 ON PC14, PC15 are connected to X3 crystal SB19, SB20 (32.768kHz CLK) OFF PC14, PC15 are not connected to X3 crystal ON PH0, PH1 are connected to X2 crystal (X2 is not fitted) SB21, SB22 (8MHz CLK) OFF PH0, PH1 are not connected to X2 crystal B1 push-button is connected to NRST of STM32L476 ON Discovery board SB23 (B1-RESET) B1 push-button is not connected to NRST of OFF STM32L476 Discovery board

22/39 DocID027676 Rev 3 UM1879 Hardware layout and configuration

Table 7. Solder bridges (continued) Bridge State Description

OTG_FS_VBUS signal is connected to PA9 ON OTG_FS_ID signal is connected to PA10 SB24, SB25 (OTG FS) OTG_FS_VBUS signal is not connected to PA9 OFF 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 SB28 (2.5V REG inhibit) OFF U12 input is not inhibited ON 5V is connected to U12 input SB29 (2.5V REG input) OFF 5V is not connected to U12 input

DocID027676 Rev 3 23/39

38 Schematics UM1879 supply

COM0..3,

by

power

shorted,

USER

COM4..7 SWO

USB and R49=15k,

for Replace

P2 110

R91, SWCLK on

Revision: C27=C25=4.7pF NRST LD_R LD_G JOY_CENTER JOY_DOWN JOY_LEFT JOY_RIGHT JOY_UP EXT_RST I2C1_SCL I2C1_SDA OTG_FS_PowerSwitchOn OTG_FS_OverCurrent OTG_FS_DM OTG_FS_DP OTG_FS_ID OTG_FS_VBUS MEMS_SCK MEMS_MOSI MEMS_MISO GYRO_CS GYRO_INT2 GYRO_INT1 XL_CS XL_INT MAG_CS MAG_DRDY MAG_INT VBUS

NX3215SA

: R40=R47=6.04k,

Remove Remove

PB6..7.

:

by add

MP34DT01

by

U_Peripherals Peripherals.SchDoc U_USB_OTG_FS USB_OTG_FS.SchDoc U_MEMS MEMS.SchDoc

C25

A-01 C-01, B-01, by

C27, resistors

PB8..9 replaced

of of MB1184 C-01

P1, replaced USB_OTG,

MB1184 MB1184 MB1184

on

for Discovery

values values

NRST LD_R LD_G JOY_CENTER JOY_DOWN JOY_LEFT JOY_RIGHT JOY_UP EXT_RST I2C1_SCL I2C1_SDA label label label e

SB g

32.768kHz

PCB PCB PCB

Add Xtal MP45DT02

Replaced Chan Change

--> --> -->

STM32L476G-DISCO --> -->

-->

--> XL_INT MAG_DRDY MAG_INT MEMS_SCK MEMS_MOSI MEMS_MISO GYRO_CS GYRO_INT2 GYRO_INT1 XL_CS MAG_CS

STM32L476

A4 6/15/2015

OTG_FS_PowerSwitchOn OTG_FS_OverCurrent OTG_FS_DM OTG_FS_DP OTG_FS_ID OTG_FS_VBUS

C-01 A-01 B-01

Title: Size:Date: Reference: Sheet: of Project:

Rev

Rev Rev

JOY_CENTER JOY_DOWN JOY_LEFT JOY_RIGHT JOY_UP PC14 PC15 PH[0..1] COM[0..3] SEG[0..23] LD_R LD_G OTG_FS_PowerSwitchOn OTG_FS_OverCurrent OTG_FS_DM OTG_FS_DP OTG_FS_ID OTG_FS_VBUS MEMS_SCK MEMS_MOSI MEMS_MISO GYRO_CS GYRO_INT2 GYRO_INT1 XL_CS XL_INT MAG_CS MAG_DRDY MAG_INT PC14 PC15 LD_R LD_G XL_CS PH[0..1] XL_INT JOY_UP MAG_CS COM[0..3] MAG_INT Side SEG[0..23] GYRO_CS JOY_LEFT

OTG_FS_ID JOY_RIGHT MEMS_SCK JOY_DOWN OTG_FS_DP GYRO_INT2 GYRO_INT1 MAG_DRDY OTG_FS_DM MEMS_MOSI MEMS_MISO JOY_CENTER OTG_FS_VBUS Solder

OTG_FS_OverCurrent JP8 JP7 on OTG_FS_PowerSwitchOn

Wired 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 I2C1_SDA I2C1_SCL EXT_RST MCO SWCLK SWDIO SWO NRST BOOT0 3V3_REG-ON USART_RX USART_TX MFX_WAKEUP MFX_IRQ_OUT MFX_I2C_SDA MFX_I2C_SCL MFX_USART3_RX MFX_USART3_TX MFX_WAKEUP MFX_IRQ_OUT MFX_I2C_SDA MFX_I2C_SCL MFX_USART3_RX MFX_USART3_TX NRST U_IDD_measurement IDD_measurement.SchDoc U_STM32Lx STM32Lx.SchDoc 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 MCO SWCLK SWDIO SWO NRST BOOT0 3V3_REG-ON USART_RX USART_TX I2C1_SDA I2C1_SCL EXT_RST MFX_WAKEUP MFX_IRQ_OUT MFX_I2C_SDA MFX_I2C_SCL MFX_USART3_RX MFX_USART3_TX MFX_WAKEUP MFX_IRQ_OUT MFX_I2C_SDA MFX_I2C_SCL MFX_USART3_RX MFX_USART3_TX NRST 20

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 P1 Header Figure 10. STM32L476 Discovery board design top top sheet design board Discovery Figure 10. STM32L476 SWO SWCLK SWDIO NRST MCO GND GND NC GND GND BOOT0 3V3_REG-ON LD_R LD_G JOY_CENTER JOY_DOWN JOY_LEFT JOY_RIGHT JOY_UP I2C1_SCL I2C1_SDA EXT_RST SWO MCO NRST SWDIO SWCLK PB3 PB2 PE8 PA0 PA5 PA1 PA2 PA3 PB6 PB7 PD0 3V 3V3 2V5 SEG[0..23] COM[0..3] 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 I2C1_SDA I2C1_SCL USART_RX USART_TX MFX_USART3_RX MFX_USART3_TX 3V3_REG-ON PE11 PE10 PE12 PE13 PE14 PE15 U_LCD_GH08172 LCD_GH08172.SchDoc U_QSPI QSPI.SchDoc U_AUDIO AUDIO.SchDoc U_ST_LINK_V2-1 ST_LINK_V2-1.SCHDOC 5V_IN 5V OTG_FS_VBUS 5V_USB_ST_LINK PC14 PC15 PH0 PH1 NRST 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 I2C1_SDA I2C1_SCL SEG[0..23] COM[0..3] QSPI_CS QSPI_CLK QSPI_D0 QSPI_D1 QSPI_D2 QSPI_D3 GND GND GND GND GND USART_RX USART_TX MFX_USART3_RX MFX_USART3_TX 3V3_REG-ON 20

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

24/39 DocID027676 Rev 3 UM1879 Schematics Output

Power

Selected

SWD Output Volts

3V3_REG C15 100nF Selected

3V3_ST_LINK 2V5 C2 2.5 C48 100nF 100nF ST-LINK Volts

3 ST-LINK DISCOVERY SWCLK SWDIO NRST SWO SWCLK SWDIO C14 1uF 4 5 5 5 3

210 3V3_ST_LINK C1 1uF C47 1uF TP2 TP1 --> --> only

PG NC 4 4 VO Revision:

PA14 PA13 PB3 BYPASS BYPASS

ON OFF SWD GND

JP3 C3 10nF C49 10nF

7 of

2 STM_JTCK STM_JTMS 2 Output

GND GND GND 2 RESERVED INH INH Vin Vout Vin Vout U1 LD3985M33R U12 LD3985M25R support

SB3 SB4 SB7 SB8 SB14 Jumpers C4 C54 Jumpers Volts

MB1184 C-01 1 3 1 3 VI EN

4

5 U4 LD39050PU33R 100nF 100nF

with 3

6 1

2

C12 100nF 1 5V T_NRST T_SWO CN3 C5 1uF C55 1uF

SB1 SB29 DEFAULT STM32L476G-DISCO C13 1uF TMS/SWDIO ST-LINK/V2-1 A4 6/15/2015 SB5 SB6 SB9 SB10 SB28 SB12 100nF TCK/SWCLK 5V Title: Size:Date: Reference: Sheet: of Project: C9 3V3 R16 2K7_1%_0402 765mA T_JTMS D3 STPS1L30A D2 STPS1L30A T_NRST T_SWO

to 29 AIN_1

5 6 7 4 [NA] pin

T_JTCK 612mA

R13 SET = OUT OUT Holder

GND

22_1%_0402 22_1%_0402 22_1%_0402 22_1%_0402 ST-LINK

External BAT60JFILM

1.5Ilim

5V_IN 3V3_REG-ON CR1 CR2032 R17 R20 R21 R22

to

STM32F103

USB

2 1 to

D1 From IN IN FAULT ON

510mA R12 10K_1%_0402

U2 ST890CDR 1.2Ilim

=

JP6 From 1 Fitted close 1 2 8 3

5V_USB_ST_LINK

Isc= Ilim 3V3_REG-ON MCO 2 Volts

R33 Not 3 5 1 2 3 4 5 6 very

STPS1L30A Volts

R3 be

MCO 5 CN4 5075BMR-05-SM C72 20pF SWD red

PWR_ENn D6 Must

3V3 1K_1%_0402 R11 10K_1%_0402 RC LD3 LED, 4K7_1%_0402 3V3_REG 3V R81 100_1%_0402 R80 100_1%_0402 5V_IN red

LD2 LED, R2 1K_1%_0402 3V3_ST_LINK 3V3_REG T_SWDIO_IN Fitted

U3 STM32F103CBT6 BAT60JFILM STM_JTMS USB_DP USB_DM T_SWO LED_STLINK PWR_ENn T_JTMS T_JTCK C8 100nF Not 3V3_ST_LINK R1 0_5%_0402 30 29 34 33 32 31 36 28 27 26 25 35 3V3_ST_LINK D4 C6 100nF 1 4 PA9 PA8 PB15 PB14 PB13 PB12 PA12 PA11 PA10 3V3_ST_LINK 3V3_ST_LINK C71 100nF COM VSS_2 Red _Green

VDD_2

STM_JTCK JP2 LD1 LD_BICOLOR_CMS

JTCK/SWCLK VDD_1

USB_RENUMn 24 R19 2K7_1%_0402 37

2 3

PA15/JTDI VSS_1

C7 100nF 23 38 JTMS/SWDIO

PB3/JTDO PB11

39 22 R15 [NA] PWR_EXT

PB4/JNTRST PB10

40 21

PB5

PB2/BOOT1 3V3_ST_LINK

41 20 SWIM_RST_IN

PB6 PB1

LED_STLINK R5 330_1%_0402 R4 330_1%_0402 42 19 SWIM_RST T_JRST

PB7 PB0

43 R18 18 JP1

SWIM_IN T_NRST

BOOT0 PA7

44 17 T_JTDI

PB8 PA6

4K7_1%_0402 45 16 SWIM T_JTDO

PB9 PA5

46 15

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

_0402 VSS_3 PA4

47 14

VDD_3 PA3

48 13 R14 100K_1% USB_RENUMn Fitted

VBAT PC13 PC14 PC15 OSCIN OSCOUT NRST VSSA VDDA PA0 PA1 PA2 100_1%_0402 Not 3V3_ST_LINK STLINK_RX R79 1 2 3 4 5 6 7 8 9 R10 10K_1%_0402 R78 36K_1%_0402 10 11 12

1 JP4 STLINK_TX AIN_1

5V_USB_ST_LINK 2 TX RX 3 OSC_IN OSC_OUT STM_RST USB_DM USB_DP SB16 SB13 3V3_ST_LINK _1%_0402 C10 20pF R82 10K_1%_0402 R83 [NA] R85 R84 JP

1K5_1%_0402 2 to

0_5%_0402 SB17 SB15 T1 9013-SOT23 4K7_1%_0402 4K7_1%_0402 Fitted

R7 X1 8MHz Close Not R9 0_5%_0402 R8 R6 100K 1 3V3_ST_LINK C11 20pF C73 100nF PC13=0

2 4 6 5 1 3 5V_USB_ST_LINK _0402 Ident:

D- ID SB11 3V3_ST_LINK D+ VCC GND R86 USB SHELL USART_TX USART_RX MFX_USART3_TX MFX_USART3_RX Board CN1 USB-MINI-typeB 100K_1%

DocID027676 Rev 3 25/39 Schematics UM1879 QSPI_CS QSPI_CLK QSPI_D0 QSPI_D1 QSPI_D2 QSPI_D3 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 SEG[0..23] COM[0..3] EXT_RST LD_R LD_G NRST JOY_CENTER JOY_DOWN JOY_LEFT JOY_RIGHT JOY_UP MFX_USART3_TX MFX_USART3_RX MFX_WAKEUP MFX_IRQ_OUT MEMS_SCK MEMS_MOSI MEMS_MISO GYRO_CS GYRO_INT2 GYRO_INT1 XL_CS XL_INT MAG_CS MAG_DRDY MAG_INT MFX_I2C_SCL MFX_I2C_SDA 310 PE11 PE10 PE12 PE13 PE14 PE15 PB6 PE2 PE5 PE6 PE4 PE3 PE7 PE9 PC9 PA11 PA12 PD0 PB2 PE8 PA0 PA5 PA1 PA2 PA3 PA4 PC13 PB10 PB11 PD1 PD4 PD3 PD7 PE0 PE1 PC0 PC2 PC1 Revision: PB7 PC11 PC12 PC10 PB8 PD2 MCU

MB1184 C-01 MFX_I2C_SCL MFX_I2C_SDA QSPI_CS QSPI_CLK QSPI_D0 QSPI_D1 QSPI_D2 QSPI_D3 NRST JOY_CENTER JOY_DOWN JOY_LEFT JOY_RIGHT JOY_UP MFX_USART3_TX MFX_USART3_RX MFX_WAKEUP MFX_IRQ_OUT MEMS_SCK MEMS_MOSI MEMS_MISO GYRO_CS GYRO_INT2 GYRO_INT1 XL_CS XL_INT MAG_CS MAG_DRDY MAG_INT I2C1_SDA I2C1_SCL SAI1_MCK SAI1_SCK SAI1_SD SAI1_FS AUDIO_RST SEG[0..23] COM[0..3] EXT_RST LD_R LD_G AUDIO_DIN AUDIO_CLK OTG_FS_PowerSwitchOn OTG_FS_VBUS OTG_FS_DM OTG_FS_DP OTG_FS_ID OTG_FS_OverCurrent PA10 STM32L476G-DISCO

STM32L476VGT6 6/15/2015 A4 SB24 SB25 PA9,

Project: Title: Size:Date: Reference: Sheet: of to

4K7_1%_0402 4K7_1%_0402 PA9 PA10 2K2_1%_0402 2K2_1%_0402 R31 R32 priority

R92 R93 BOOT0 3V Layout 3V R91 PE0 PE1 PE2 PE3 PE4 PE5 PE6 PE7 PE8 PE9 PE10 PE11 PE12 PE13 PE14 PE15 PD0 PD1 PD2 PD3 PD4 PD5 PD6 PD7 PD8 PD9 PD10 PD11 PD12 PD13 PD14 PD15 NRST BOOT0 PH0-OSC_IN PH1-OSC_OUT PC14-OSC32_IN PC15-OSC32_OUT 510_1%_0402 81 82 83 84 85 86 87 88 55 56 12 13 97 98 1 2 3 4 5 38 39 40 57 58 59 60 61 62 8 9 14 94 41 42 43 44 45 46 PE0 PE1 PE2 PE3 PE4 PE5 PE6 PE7 PE8 PE9 PD0 PD1 PD2 PD3 PD4 PD5 PD6 PD7 PD8 PD9 PH0 PH1 PE10 PE11 PE12 PE13 PE14 PE15 PC14 PC15 PD10 PD11 PD12 PD13 PD14 PD15 NRST BOOT0 3V3_REG-ON USART_TX USART_RX SWCLK SWDIO SWO PA0 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/VLCD PC4 PC5 PC6 PC7 PC8 PC9 PC10 PC11 PC12 PC13 U9A STM32L476VGT6 7 23 24 25 26 29 30 31 32 67 68 69 70 71 72 76 77 35 36 37 89 90 91 92 93 95 96 47 48 51 52 53 54 15 16 17 18 33 34 63 64 65 66 78 79 80 3V3_REG-ON SWCLK SWDIO SWO USART_TX USART_RX PA0 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 PB3 PA14 PA13 PB3 PD5 PD6 VDD_MCU R87 [NA] C76 10 27 99 74 49 19 20 1uF_X5R_10%_0603 VSS5 VSS4 VSS3 VSS2 VSS1 VREF- Figure 12. STM32L476VGT6 MCU STM32L476VGT6 12. Figure SEG13 SEG14 SEG15 SEG16 SEG17 SEG18 SEG19 SEG20 SEG21 SEG22 SEG23 VLCD VSSA_ADC PC8 PD14 PD12 PD10 PD8 PB14 PB12 PB0 PC4 PA6 PC3 VDD5 VDD4 VDD3 VDD2 VDD1 VDDUSB VREF+ VDDA_ADC VBAT C78 20pF_NPO_5%_0402 C77 20pF_NPO_5%_0402 U9B STM32L476VGT6 C27 4.7pF_NPO_-+0.25pF_0402 C25 4.7pF_NPO_-+0.25pF_0402 6 11 28 75 50 73 21 22 100 _10%_0603 SEG0 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 SEG12 X3 NX3215SA-32.768K Fitted

X2 8MHz

VDDA 2 1 VREF+ Not C79 R90 0_5%_0402 1uF_X5R PA7 PC5PB1 PB13 PB15 PD9 PD11 PD13 PD15 PC7 PA15 PB4 PC6 PB5 VDD_MCU R89 R88 R26 R25 0_5%_0402 220_1%_0402 0_5%_0402 0_5%_0402 STM32L476

the

to

MCU

COM0 COM1 COM2 COM3 Crystal

the

close

the to

to

very PA8 PA9 PA10 PB9 SB18 PH0-OSC_IN PC14-OSC32_IN PC15-OSC32_OUT 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 PH1-OSC_OUT

close be

close

be

PC14 PH[0..1] PC15 be

must

Must MCO SB22 SB21 SB20 SB19 Must R24 block

PC15 PC14 L1 Ferrite this PH[0..1]

VDDA 47_1%_0402 PH0 PH1 PC14 PC15 MCO VREF+ All VDD_MCU

26/39 DocID027676 Rev 3 UM1879 Schematics

to

pins:

allows

MFX

SH0_D CAL_D CAL_D SH1_D CAL_D SH2_D VDD 3

, each

to

1 2 3 5 6 7 8 1 2 3 5 6 7 8 1 2 3 5 6 7 8 1 2 3 5 6 7 8

3V_MFX 3V_MFX

D S D S D S D S VDD 2

, close

package.

G G G G eXpander) 410

transistors) superimposed

4 4 4 4 VDD 1

, capacitor

SO-8 C26 100nF_X7R_10%_0402 C31 100nF_X7R_10%_0402 Revision:

T2 T4 T6 T8 Function MOS one VDD SH0 CAL SH1 SH2

STS9P2UH7 STS9P2UH7 STS9P2UH7 STS9P2UH7 C30 100nF_X7R_10%_0402 C28 100nF_X7R_10%_0402 P

with

footprints (Multi

MFX two 3V_MFX

/ MB1184 C-01

*:

populate

Note also (STS9P2UH7 measurement

STM32L476G-DISCO IDD A4 6/15/2015 Title: Size:Date: Reference: Sheet: of Project: C40 1uF_X5R_10%_0603 MFX_SWCLK MFX_SWDIO IDD_MEAS capacitors 3V_MFX

TSZ122 R51 100_1%_0402 1 2 3 4

to

DRAWING

CN5 _0402 U11A TSZ122IST decoupling close C39 100nF_X7R_10%_0402 1 7

_0402

U11B TSZ122IST

8 4 C37 100nF_X7R_10%_0402 R42 300K_1% V+ V- 3V_MFX R50 300K_1% PROPOSAL _0402

3 2 5 6 SB26 SB27 R48 300K_1% R49 3V3 R40 6K04_1%_0402 R47 6K04_1%_0402 LAYOUT C38 15K_1%_0402 1 7 U10A TSZ122IST U10B TSZ122IST differential amplifier

VDD_MCU 8 V+ V- 4 3V3 100nF_X7R_10%_0402 3 2 5 6 SH0 SH1 SH2 CAL IDD_MEAS R27 0_5%_0402 C36 U8 MFX_V2 3 4 31 32 33 26 27 28 14 41 18 19 20 39 40 15 16 17 29 30 5 6 38 0 1 0 1 2 3 4 5 6 7 8 9 4 5 6 7 S U 10 1 12 13 14 15 H O O O O O O O O O O O O O O A 100nF_X7R_10%_0402 C I I I I I I I I I I O O O O O O S P P P P I I I I I I P P P P P P P P P P _ M G G G G P P P P P P GPIO0G GPIO1G GPIO2G GPIO3G GPIO4G GPIO5G GPIO6G GPIO7G GPIO8G GPIO9G / _ D 1/ 2 3/ _ME GPIO10G GPIO11G GPIO12G GPIO13G GPIO14G GPIO15G 3V_MFX L/

D D

H H H D IDD_SH0I

A D D V V VDD D

R30 0_5%_0603 R41 10K_1%_0805 capacitors

D

1 C

IDD_MEAS I _S _S _S

3 _ D D V VDD_3 _

_V

D D D

48 TSZ122 D

D

2 _ D D V VDD_2 D D D

D * IDD_SH1/GPO5 I IDD_SH2/GPO6 I IDD_SH3/GPO7 I

to D

36 IDD_CAL/GPO4 I

IDD_VDD_MCU I 3V 1 _ D D VDD_1 V 24

note

decoupling close

A D D VDDA V A S S V

1 3 VSSA

MFX_V2 T9 STT7P2UH7 see 9 0 2 8

3 _ S S V O O VSS_3 O O

R44 620_1%_0805

P P 47 P P

X

2 _ S S V R VSS_2

/G /G

R

P /G /G 35

D 4 1 2 5 6 A

L

T 1 _ S S V P N P N VSS_1

D 0 T_TX T_R C D Shunts S D O 23 E U EU X X Y Y _0402 I LK T S A R R T _ _X _ _Y R O K D C _S _ _ O S A A

C C C C A Q A

R S S O P W W R 2C 2C 2C G SPARE S TSC_XP/GPO0 TS TSC_XN/GPO1TS TSC_YP/GPO2 TS TSC_YN/GPO3TS BOOT0 B IRQOUTI NRSTN WAKEUP W SWDIO S SWCLKS I2C_SCL I I2C_SDA I I2C_ADDR I USART_TX U USART_RX U 3 R94 100K_1% 7 2 25 10 11 12 13 44 46 34 37 42 43 45 21 22 *

_0402 C33 100nF_X7R_10%_0402 note

R29 T7 STT7P2UH7 see R43 24_1%_0805 SH1_D SH2_D CAL R37 100K_1% MFX_SWCLK 510_1%_0402 R28 MFX_SWDIO MFX_I2C_SCL MFX_I2C_SDA 10K_1%_0402 4 1 2 5 6

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

C34 D S _0402

*

CAL_D G MFX_USART3_TX MFX_USART3_RX

note

6 3

R38 see T5 STT7P2UH7 100K_1% 5 2

G

1 L2 Ferrite C32 [NA] R34 3

_0402 MFX_WAKEUP 4 [NA] 1uF_POL_10%_TANA JP5 100K_1% SD

R39 1_1%_0805

MFX_USART3_TX MFX_USART3_RX

SH0_D D5 BAT60JFILM MFX_I2C_SCL MFX_I2C_SDA MFX_IRQ_OUT R35 1

4 1 2 5 6 2

3V_MFX 3V_MFX 3 S D

NRST

VDD_MCU _0402 G *

3 3V_MFX note

R36

100K_1% MFX_I2C_SCL MFX_I2C_SDA see NRST MFX_WAKEUP T3 STT7P2UH7 MFX_IRQ_OUT SH0 SH1 SH2 MCU

Current direction PB10 PB11 to bypass PC13 PA4

DocID027676 Rev 3 27/39 Schematics UM1879

B1 SW-PUSH-CMS_BLACK

1 2

R57 10K_1%_0402

4 3 510 3V Revision: C45 Button

100nF SB23 Fitted

Push

Not and

NRST MB1184 C-01 Button

LEDs

ACP, RESET

NRST STM32L476G-DISCO Joystick, 6/15/2015 A4 Project: Title: Size:Date: Reference: Sheet: of 6 Joystick 4 2 3 1 red green

LD4 LED, LD5 LED, COMMON CENTER LEFT DOWN RIGHT UP B2 MT-008A 5 2 1 3 6 4 C41 100nF_X7R_10%_0402 R45 1K_1%_0402 R46 330_1%_0402 LD_R LD_G R53 100_1%_0402 C44 100nF_X7R_10%_0402 3V LD_R LD_G PB2 PE8 R59 10K_1%_0402 C46 100nF_X7R_10%_0402 PD0 10K_1%_0402 C42 100nF_X7R_10%_0402 R55 C43 100nF_X7R_10%_0402 EXT_RST 5V SB2 EXT_RST 0_5%_0402 0_5%_0402 0_5%_0402 0_5%_0402 Figure 14. Joystick ACP, LEDs and LEDs and push-button ACP, 14. Joystick Figure R54 R58 R56 R52 pull-down

2 4 6 8 Button

with 1 3 5 7

CN2 SSM-104-L-DH Connector

pins

WAKE-UP

JOY_CENTER JOY_LEFT JOY_DOWN JOY_RIGHT JOY_UP &

E2P

3V Input USER EXT/RF JOY_CENTER JOY_LEFT JOY_DOWN JOY_RIGHT JOY_UP I2C1_SDA I2C1_SCL PA0 PA1 PA5 PA2 PA3 I2C1_SDA I2C1_SCL PB7 PB6

28/39 DocID027676 Rev 3 UM1879 Schematics 610 Revision: MB1184 C-01 Display

STM32L476G-DISCO LCD A4 6/15/2015 Title: Size:Date: Reference: Sheet: of Project: DIP28

U100 Socket U5 GH08172T

COM1 COM2

COM1 COM2

15 14

COM0 COM3

COM0 COM3

16 13

SEG12 SEG11

SEG12 SEG11

17 12

SEG13 SEG10

SEG13 SEG10

18 11

SEG14 SEG9

SEG14 SEG9

19 10

SEG15 SEG8

SEG15 SEG8

20 9

SEG16

SEG16 SEG7

21 8

SEG17 SEG6

LCD 22 7

SEG18 SEG5

23 6

SEG19 SEG4

24 SEG17 5 SEG6 SEG7

SEG20 SEG3

SEG18 SEG5 25 Figure 15. LCD display 4

SEG21 SEG2

26 SEG19 3 SEG4

SEG22 SEG1

SEG20 SEG3 27 2

SEG23 SEG0

28 SEG21 1 SEG2 SEG22 SEG1 SEG23 SEG0 SEG[0..23] COM[0..3] SEG[0..23] COM[0..3]

DocID027676 Rev 3 29/39 Schematics UM1879 710 Revision: MB1184 C-01 FS

PC10 USB

STM32L476G-DISCO

OTG A4 6/15/2015

receptacle USB_Micro-AB Title: Size:Date: Reference: Sheet: of Project: VBUS DM DP ID GND Shield OTG_FS_OverCurrent CN7 USB-MICRO-AB 1 2 3 4 5 6 green

T10 9013-SOT23

LD6 LED,

R71 330_1%_0603 3 2 3V3_REG R63 [NA] 1 R65 47K_1%_0402 R66 0_5%_0402 red

LD7 LED, R73 620_1%_0603 C67 4.7uF R72 3V3_REG 1 3 C1 A3 B1 C2 D1 D2 OUT 47K_1%_0402 FAULT ID Pd1 Pd2 D-in D+in GND GND IN EN U14 STMPS2141STR R67R68 22 22 Figure 16. OTG USB FS Figure 2 5 4 Vbus D+out D-out Dz Pup U15 EMIF02-USB03F2 B3 C3 B2 D3 A2 5V R62 3V3_REG R61 0_5%_0402 R64 0_5%_0402 10K_1%_0402 OTG_FS_VBUS OTG_FS_DM OTG_FS_DP OTG_FS_ID OTG_FS_PowerSwitchOn PC11 PA11 PA12 PC12 PC9

30/39 DocID027676 Rev 3 UM1879 Schematics CN6 ST-225-02 2 3 1 810 R76 0_5%_0402 Revision: MEMS

C63 R69 51_1%_0402 22nF_X7R_10%_0603 MB1184 C-01 _10%_0603 _10%_0603 Microphone

C53 150pF_NPO_5%_0603 C59 150pF_NPO_5%_0603 C58 100nF_X7R_10%_0402 and

C50 100nF_X7R_10%_0402 C60 1uF_X5R C66 1uF_X5R Codec

3V STM32L476G-DISCO C64 Audio 6/15/2015 A4 R70 51_1%_0402 22nF_X7R_10%_0603 Title: Size:Date: Reference: Sheet: of Project: 17 15 14 19 9 6 31 7 29 25 23 21 8 5 4 18 30 26 24 22 27 28 VP VP VQ FILT+ AGND AIN1B AIN2B AIN3B AIN4B AIN1A AIN2A AIN3A AIN4A AFILTB AFILTA SPKR/HP SPKR_OUTB- SPKR_OUTA- SPKR_OUTB+ SPKR_OUTA+ HP/LINE_OUTB HP/LINE_OUTA Pad

0x94

address

SDA SCL A0 MCLK SCLK SDIN LRCK RESET -VHPFILT FLYN FLYP +VHP VA VD TSTO TSTO VL DGND GND/Thermal U13 CS43L22 I2C 1 2 3 41 37 38 39 40 32 10 11 12 13 16 34 20 36 33 35 2V5 C57 3V _10%_0603 R60 10K_1%_0402 C52 100nF_X7R_10%_0402 1uF_X5R_10%_0603 1uF_POL_10%_TANA C56 1uF_X5R C68 C65 100nF_X7R_10%_0402 C62 100nF_X7R_10%_0402 C51 100nF_X7R_10%_0402 I2C1_SDA I2C1_SCL SAI1_MCK SAI1_SCK SAI1_SD SAI1_FS AUDIO_RST I2C1_SDA I2C1_SCL SAI1_MCK SAI1_SCK SAI1_SD SAI1_FS AUDIO_RST PE9 PE7 PB7 PB6 PE2 PE3 PE5 PE6 PE4 AUDIO_CLK AUDIO_DIN GND Figure 17. Audio DAC and microphone MEMS microphone Figure DAC and 17. Audio AUDIO_CLK AUDIO_DIN R77 0_5%_0402 4 3 2 R75 [NA] LR CLK DOUT 3V VDD GND U17 MP34DT01 1 5 3V C69 100nF_X7R_10%_0402 C70 100nF_X7R_10%_0402

DocID027676 Rev 3 31/39 Schematics UM1879 910 Revision: MB1184 C-01 Memory

Flash

SPI

STM32L476G-DISCO Quad 6/15/2015 A4 Project: Title: Size:Date: Reference: Sheet: of C61 100nF_X7R_10%_0402 3V 4 8 Memory

S C S C VSSV VCCV Flash # # 10K_1%_0402

LD pp/W O R74 V H / SPI 0 1 2/V 3

Q Q Q Q # S# S C DQ0 D DQ1 D DQ2/Vpp/W# D DQ3/HOLD#D U16 N25Q128A13EF840E 1 6 5 2 3 7 Quad QSPI_CS QSPI_CLK QSPI_D0 QSPI_D1 QSPI_D2 QSPI_D3 FigureQuad-SPI 18. Flashmemory QSPI_CS QSPI_CLK QSPI_D0 QSPI_D1 QSPI_D2 QSPI_D3 PE11 PE10 PE12 PE13 PE14 PE15

32/39 DocID027676 Rev 3 UM1879 Schematics MEMS

10 10 Revision: Magnetometer

MB1184 C-01 Accelerometer,

STM32L476G-DISCO Gyroscope, A4 6/15/2015 Title: Size:Date: Reference: Sheet: of Project: PE1 PC2 XL_INT MAG_DRDY PC1 MAG_INT C21 10uF_X5R_10%_0603 C16 100nF_X7R_10%_0402 C22 100nF_X7R_10%_0402 C18 10uF_X5R_10%_0603 C19 100nF_X7R_10%_0402 C20 10nF_X7R_10%_0603 XL_INT MAG_DRDY 3V MAG_INT 3V 12 10 11 16 15 13 12 11 10 9 9 8 14 7 C1 VDD VDD GND GND GND GND GND VDD GND INT_XL VDD_IO INT_MAG DRDY_MAG MEMS VDD_IO SCL/SPC SDA/SDI/SDO SA0/SDO CS_I2C/SPI DRDY/INT2 INT1 GND SCL/SPC CS_XL CS_MAG SDA/SDI/SDO C1 GND U7 L3GD20 U6 LSM303CTR 1 2 3 4 5 6 7 8 1 2 3 4 5 6 MEMS_SCK XL_CS MAG_CS MEMS_SCK MEMS_MOSI MEMS_MISO GYRO_CS GYRO_INT2 GYRO_INT1 C17 100nF_X7R_10%_0402 R23 1K_1%_0402 XL_CS MAG_CS MEMS_SCK MEMS_MOSI MEMS_MISO GYRO_CS GYRO_INT2 GYRO_INT1 PD1 PD4 PD3 PD7 PB8 PD2 PD1 PE0 PC0 MEMS_MOSI PD4 Figure 19. Gyroscope, accelerometer, magnetometer MEMS magnetometer accelerometer, Gyroscope, Figure 19.

DocID027676 Rev 3 33/39 Power consumption measurements UM1879

Appendix A 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 3V3 287-115 => 172µA 172-92 => 80µA

Measured 115 µA Measured 92µA For IDD TSZ122 D6 SB28 1st stage V+ : ~11µA due to resistors bridge V- : ~11µA due to resistors bridge 3V LDO /' 115-70 => 45µA

Measured 70µA Audio QuadSPI LSM303 03 14 L3GD20 DAC&6 CTR R30

3V_MFX 70-0.4 => 69.6µA

MFX For IDD STM32L152 TSZ122 2nd stage Measured 0.4µA V+ : ~10µA due to resistors bridge JP5 VDD_MCU 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 STM32L476VGT6 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

34/39 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 Typical MB1184-C01 theoretical Conditions component consumption (uA)

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 Standby mode. All GPIOs in ‘Analog Input’ except MFX_U8 0.3 WAKEUP input with external PD (R34) Standby mode, GPIOs configuration described STM32L476VGT6_U9 0.3 above TOTAL STM32L476 295.6 - Discovery board

DocID027676 Rev 3 35/39

38 Mechanical drawing UM1879

Appendix B 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 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.

38/39 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