The 32L496GDISCOVERY Discovery kit is a complete demonstration and development
platform for the STMicroelectronics ARM
®
Cortex
®
-M4 core-based STM32L496AGI6
microcontroller. Thanks to the innovative ultra-low-power oriented features, extended RAM
and graphics performance (Chrom-ART Accelerator™) offered by the STM32L496AG, the
32L496GDISCOVERY kit is designed to enable easy prototyping for many applications,
including audio and graphics, with state-of-the-art energy efficiency. For even more userfriendliness, the on-board ST-LINK/V2-1 debugger provides out-of-the-box loading and
debugging capabilities. The microcontroller features the following interfaces: four I
2
Cs, three
SPIs, one SDIO, FMC and Quad-SPI. It also features five USARTs, one ULP UART, two
CAN buses, three 12-bit ADCs, two 12-bit DACs, two SAIs, two ULP analog comparators,
two Op Amps, LCD 8
× 40 or 4 × 44 with step-up converter, four digital filters for sigma delta
modulator and SWP, 8- to 14-bit camera interface, USB 2.0 OTG FS, JTAG and SWD
debugging support. This 32L496GDISCOVERY Discovery kit offers everything required for
users to get started quickly and develop applications easily.
The full range of hardware features on the board helps users to evaluate almost all
peripherals (USB OTG FS, microSD™card, 8-bit camera, 8-Mbit PSRAM, IDD
measurement, full-duplex I
2
S with an audio CODEC and stereo jack for headset including
analog microphone, DFSDM with a pair of MEMS digital microphones on board, Quad-SPI
Flash memory device, 1.54-inch TFT LCD using FMC interface with capacitive touch panel
and others) and develop applications. Arduino
™
Uno V3, PMOD and STMod+ connectors
allow easy connection of extension shields or daughterboards for specific applications.
The integrated ST-LINK/V2-1 provides an embedded in-circuit debugger and programmer for
the
STM32 MCU.
The 32L496GDISCOVERY Discovery kit comes with the STM32 comprehensive software
HAL library and LL APIs together with various packaged software examples.
• STM32L496AGI6 microcontroller featuring 1 Mbyte of Flash memory and 320 Kbytes of
RAM in an UFBGA169 package
• 1.54-inch 240 x 240 pixel-TFT color LCD with parallel interface
• SAI Audio CODEC, with a stereo headset jack, including analog microphone input
• Stereo digital MEMS microphones
• 8-Mbit PSRAM
• IDD measurement
• 64-Mbit Quad-SPI Flash
• 8 LEDs
• Reset push button
• 4-direction joystick with selection
• microSD™ card connector (card included)
• Camera 8-bit connector
• STMod+ and PMOD connectors
• USB OTG FS with Micro-AB connector
• Compatible Arduino™ Uno V3 connectors
• 5 source options for power supply
– ST-LINK/V2-1 USB connector
– User USB FS connector
– VIN from Arduino™ connector
– 5 V from Arduino™ connector
– USB charger
• 2 possible supply voltages for the MCU: 1.8 V and 3.3 V
• On-board ST-LINK/V2-1 debugger/programmer with USB re-enumeration capability:
mass storage, virtual COM port
• Comprehensive free software including a variety of examples, part of the STM32Cube
package
DocID030176 Rev 17/61
60
Page 8
Product marking UM2160
2 Product marking
Evaluation tools marked as "ES" or "E" are not yet qualified and therefore they are not ready
to be used as reference design or in production. Any consequences deriving from such
usage will not be at ST charge. In no event, ST will be liable for any customer usage of
these engineering sample tools as reference design or in production.
"E" or "ES" marking examples of location:
•On the targeted STM32 that is soldered on the board (for illustration of STM32 marking,
refer to the section "Package information" of the STM32 datasheet at www.st.com).
•Next to the evaluation tool ordering part number, that is stuck or silkscreen printed on
the board
3 System requirements
•Windows® OS (XP, 7, 8, 10), Linux or macOS™
•USB Type-A to Micro-B cable
4 Development toolchains
•Keil® MDK-ARM
•IAR™ EWARM
•GCC-based IDEs including free SW4STM32 from AC6
(a)
(a)
a. On Windows® only.
8/61DocID030176 Rev 1
Page 9
UM2160Demonstration software
5 Demonstration software
The demonstration software is preloaded in the STM32L496AGI6 Flash memory for easy
demonstration of the device peripherals. This demonstration software as well as a detailed
guide explaining how to reload it into the STM32L496AGI6 Flash memory are available. For
all the details refer to the dedicated board technical documentation from
www.st.com/stm32l4-discovery.
6 Ordering information
To order the 32L496GDISCOVERY Discovery kit, refer to Ta bl e 1.
Order CodeTarget STM32
STM32L496G-DISCOSTM32L496AGI6
Table 1. Ordering Information
7 Technology partners
MACRONIX:
•64-Mbit Quad-SPI NOR Flash memory device, part number MX25R6435FM2IL0
DocID030176 Rev 19/61
60
Page 10
Hardware layout and configuration UM2160
RTC
UART2FMC
SDMMC1
OTG1
GPIOs
DFSDM
QSPI
I2C2
SAI1
PWR
DCMI
STM32L496AG
32-kHz crystal
8-Mbit PSRAM
microSD™ card
USB connector
Joystick, reset button
Microphones
64-Mbit Quad-SPI Flash
MFX
Audio
Camera connector
ST-LINK/V2-1
3.3 V / 1.8 V power supply
1.5" LCD
UART1
PMOD connector
STMod+ connector
Arduino connector
LPUART1
SPI2
I2C1
CTP
SWD
GPIOs
SPI1
SWD connector
TAG connector
2 x user LEDs
8 Hardware layout and configuration
The 32L496GDISCOVERY Discovery kit is designed around the STM32L496AGI6 (169-ball
UFBGA package). The hardware block diagram (see
between STM32L496AGI6 and peripherals (PSRAM, Quad-SPI Flash memory, color LCD,
USB OTG FS connector, USART, audio, camera connector, IDD measurement, joystick,
microSD™ card, Arduino™ Uno V3, PMOD and STMod+ shields and embedded ST-LINK).
Figure 4 and Figure 5 help users to locate these features on the 32L496GDISCOVERY
board. The mechanical dimensions of the 32L496GDISCOVERY board are shown in
Figure 6.
Figure 3. Hardware block diagram
Figure 3) illustrates the connection
10/61DocID030176 Rev 1
Page 11
UM2160Hardware layout and configuration
U5
MCU
U4
PSRAM
U3
Quad
-
SPI
Flash
LD1, LD2
user LEDs
CN8
USB OTG FS
connector
CN4
TAG
connector
CN7
SWD connector
CN6
LCD connector
B2
Joystick
B1
Reset button
CN5
ST
LINK/V2-1
connector
CN1
Camera
connector
JP7
PWR connector
U1, U2
Microphones
CN2
STMod+
connector
CN3
PMOD
connector
8.1 The 32L496GDISCOVERY Discovery kit layout
Figure 4. 32L496GDISCOVERY top layout
DocID030176 Rev 111/61
60
Page 12
Hardware layout and configuration UM2160
CN13
CTP connector
CN15, CN16
Arduino connectors
CN17
microSD™ card connector
CN10, CN11
Arduino connectors
CN12
Audio jack
Figure 5. 32L496GDISCOVERY bottom layout
12/61DocID030176 Rev 1
Page 13
UM2160Hardware layout and configuration
24
8
5
8
5
6
5
2
28
8
7
7
2
2
10
9
A
21
D
1
A
21
D
1
106
5
9
12
48
13
8
16
9
17
37
36
24
25
4
4
32
25
67mm
26.56mm
12.1mm
28.34mm
4.38mm
4.45mm
41.99mm
41.99mm
4.06mm
130mm
5.08mm
4.95mm
52.45mm
43.31mm
10.16mm
19.3mm
19.06mm
5.21mm
7.26mm
3.05mm
4.32mm
4.06mm
10.1mm
14.67mm
48.26mm
8.2 The 32L496GDISCOVERY Discovery kit mechanical drawing
The ST-LINK/V2-1 programming and debugging tool is integrated on the
32L496GDISCOVERY 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 3V
For general information concerning the debugging and programming features that are
common to both versions V2 and V2-1, refer to ST-LINK/V2 in-circuit debugger/programmer for STM8 and STM32 User manual (UM1075).
8.3.1 Drivers
Before connecting the 32L496GDISCOVERY board to a Windows® 7, Windows® 8 or
Windows
downloaded from the www.st.com website.
In case the 32L496GDISCOVERY board is connected to the PC before installing the driver,
the PC device manager may report some 32L496GDISCOVERY board interfaces as
“Unknown”. To recover from this situation, after installing the dedicated driver, the
association of “Unknown” USB devices found on the 32L496GDISCOVERY board to this
dedicated driver, must be manually updated in the device manager.
Note:It is recommended to proceed using USB Composite Device, as shown in Figure 7.
®
XP PC via USB, a driver for ST-LINK/V2-1 must be installed. It can be
Figure 7. USB composite device
14/61DocID030176 Rev 1
Page 15
UM2160Hardware layout and configuration
8.3.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
32L496GDISCOVERY board and periodically, to stay up-to-date with the latest firmware
version.
8.4 Low power consumption state
The 32L496GDISCOVERY board can be set in a low-power state with a maximum current
kept below 20
The low-power mode is reached when the following conditions are satisfied:
1.The connections between the ST-LINK/V2-1 and the MCU are manually disconnected
by means of the micro switch SW1. This especially controls the for pull-up on RST, the
pull-up on SWDIO, the VDD detection circuit and the 5
2. The peripherals (including LCD, CTP and PSRAM) are unpowered by means of the
MOSFET that is controlled by the PH0 signal of STM32L496AGI6.
3. Jumper JP8 is disconnected so that the 5-V power LED is powered down.
4. Peripherals are setup by FW to reach the power down mode
a) Set QSPI to low-power mode
b) Set MFX to sleep mode
c) Remove the microSD™ card from the socket
d) Set all the audio lines to low
μA at 5 V.
V detection circuit.
8.5 TAG and SWD
One TAG interface footprint is reserved on the 32L496GDISCOVERY board. It can be used
to debug and program the on-board MCU.
One 6-pin header was added to the 32L496GDISCOVERY board. This header connects to
the on board ST-LINK SWD that can be used to debug and program an external MCU. In
such a configuration, the VDD power supply from the external board can be either 1.8
3.3
V thanks to the on-board voltage converter.
Tabl e 2 describes the use of jumper JP6 for selecting between on-board and external MCU.
V or
DocID030176 Rev 115/61
60
Page 16
Hardware layout and configuration UM2160
JumperDescription
Default setting:
VDD_STL gets power from the 32L496GDISCOVERY board. ST-LINK can be used
to program the on-board MCU.
The jumper connects pins 1 and 2.
JP6
VDD_STL
setting
VDD_STL gets externally supplied power through connector CN7. ST-LINK can be
used to program the external MCU.
The jumper connects pins 2 and 3.
8.6 Power supply
The 32L496GDISCOVERY board is designed to be powered by a selection of sources
according to the position of jumper JP7 as described in
Table 3. 32L496GDISCOVERY board power configuration
Table 2. JP6 (VDD_STL) jumper description
Tabl e 3.
JP7 configurationPower connectorPower source
STLKCN5STLINK/V2-1
E5VCN15 (VIN)Arduino™
U5VCN8USB OTG
ARDCN15 (5 V)Arduino™
CHGRCN5DC power charger
Note:The 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 limited power capability.
8.6.1 Supplying the board through ST-LINK/V2-1 USB connector CN5
In this mode, STLK from the CN5 ST-LINK/V2-1 USB connector is used. The corresponding
setting is described in
supply.
Note:This mode is limited to 500 mA.
Tabl e 4. The LD8 green LED is on to confirm the presence of 5 V
16/61DocID030176 Rev 1
Page 17
UM2160Hardware layout and configuration
67/.
&+*5
(9
89
$5'
67/.
&+*5
(9
89
$5'
67/.
&+*5
(9
89
$5'
Table 4. JP7 (STLK) jumper description
JumperDescription
Default setting
The 32L496GDISCOVERY board is supplied through the CN5 Micro-B
ST-LINK/V2-1 connector. The jumper connects STLK pins 1 and 2.
JP7
Power source
selector
8.6.2 Supplying the board through VIN from Arduino™ connector CN15
In this mode, 6 V to 9 V DC is supplied through the VIN pin of Arduino™ compatible
connector CN15. The corresponding setting is described in
lit to confirm the presence of 5 V supply.
Note:The voltage is limited to 9 V so that the temperature of regulator U10 is kept within the safe
thermal area.
JumperDescription
Table 5. JP7 (E5V) jumper description
Table 5. The LD8 green LED is
The 32L496GDISCOVERY board is supplied through the CN15 Arduino™
compatible connector (VIN). The jumper connects E5V pins 3 and 4.
JP7
Power source
selector
8.6.3 Supplying the board through USB OTG FS connector CN8
In this mode, 5 V DC is supplied through the user USB FS connector CN8. The
corresponding setting is described in
presence of 5 V supply.
JumperDescription
The 32L496GDISCOVERY board is supplied through the CN8 USB OTG connector.
The jumper connects U5V pins 5 and 6.
JP7
Power source
selector
Table 6. JP7 (U5V) jumper description
Tabl e 6. The LD8 green LED is lit to confirm the
DocID030176 Rev 117/61
60
Page 18
Hardware layout and configuration UM2160
67/.
&+*5
(9
89
$5'
$5'B287
$5'B,1
$5'B287
$5'B,1
8.6.4 Supplying the board through +5V of Arduino™ connector CN15
In this mode, 5 V DC is supplied through the +5V of Arduino™ compatible connector CN15.
The corresponding setting is described in
presence of 5 V supply.
Note:Jumper JP3 must connect pins 2 and 3 of the input/output voltage selection so that the
32L496GDISCOVERY board is supplied 5
JumperDescription
5 V is supplied through Arduino™ compatible connector CN15 (+5V). Jumper JP7
connects ARD pins 7 and 8.
JP7
Power source
selector
The 32L496GDISCOVERY board supplies 5 V through Arduino™ compatible
connector CN15 (+5V) to an external board.
Jumper JP3 connects ARD pins 1 and 2.
Table 7. JP7 (ARD) jumper description
Table 7. The LD8 green LED is lit to confirm the
V through connector CN15 (default setting).
JP3
ARD 5V
input/output
voltage
selection
Default setting
The 32L496GDISCOVERY board is supplied 5 V through Arduino™ compatible
connector CN15 (+5V).
Jumper JP3 connects ARD pins 2 and 3.
8.6.5 Supplying the board through a charger connected to ST-LINK
In this mode, a 5 V-DC power charger is connected to USB STLINK CN5 connector. The
corresponding setting is described in
presence of 5 V supply.
Note:Debug is not available if the 32L496GDISCOVERY board is supplied power by an external
USB charger. This limitation does not apply when power is supplied by a PC.
Warning:In this mode, the 32L496GDISCOVERY board is not
protecting a PC supplying power through connector CN15
against electrical damage.
Tabl e 8. The LD8 green LED is lit to confirm the
18/61DocID030176 Rev 1
Page 19
UM2160Hardware layout and configuration
67/.
&+*5
(9
89
$5'
JumperDescription
The 32L496GDISCOVERY board is supplied through the CN5 connector. The
jumper connects CHGR pins 9 and 10.
JP7
Power source
selector
Table 8. JP7 (CHGR) jumper description
8.6.6 MCU power supply options
The 32L496GDISCOVERY board offers the possibility to supply the MCU with 1.8 V or
3.3
V. A jumper must be placed at the 1V8 location of JP5 (connecting pins 2 and 3) to
supply the MCU with 1.8
(connecting pins 1 and 2) to supply the MCU with 3.3
V,. The jumper must be placed at the 3V3 location of JP5
V.
8.6.7 Supplying the board through ST-LINK/V2-1 USB
In this mode, the USB Host (a PC) is connected to the standard Micro-B USB receptacle of
the 32L496GDISCOVERY board by means of a USB cable. The connection event starts the
USB enumeration procedure.
In the initial phase of the enumeration procedure, the current supply capability of the USB
port of the host is limited to 100
mA. This value is high enough for normal operation since
only the ST-LINK/V2-1 part of 32L496GDISCOVERY draws power during that phase. If the
solder bridge SB11 is opened (default configuration), the ST890 U7 power switch is set to
the OFF position: this isolates the rest of 32L496GDISCOVERY from the power source.
In the next phase of the enumeration procedure, the host PC informs the ST-LINK/V2-1
facility of its capability to supply up to 500
mA. If this is accepted, the ST-LINK/V2-1 sets the
ST890 U7 switch to the ON position to supply power to the rest of the
32L496GDISCOVERY board. If the PC USB port is not capable of supplying up to 500
another power source should be used like the VIN pin of connector CN15.
Should a short-circuit occur on the board, the ST890 power switch protects the USB port of
the host against current demand exceeding 600
mA, In such an event, the FAULT LD4 red
LED lights on.
The 32L496GDISCOVERY board can also be supplied power by a USB power source that
is not supporting enumeration, such as a USB charger. In such a particular case, the SB11
solder bridge must be closed. ST-LINK/V2-1 turns the ST890 power switch ON regardless
of the enumeration procedure result and passes the power unconditionally to the board.
The LD8 green LED is lit whenever the whole board is powered.
8.6.8 Measurement of current consumption by the microcontroller
The JP2 jumper, labeled IDD, allows the consumption of the STM32L496AGI6 to be
measured directly by a built-in MCU current ammeter circuit capable of measuring from
60
nA to 50 mA or by removing the jumper and connecting an external ammeter.
mA,
It needs the MCU run SW to let this current test circuit get into low power mode.
DocID030176 Rev 119/61
60
Page 20
Hardware layout and configuration UM2160
9
9
9
9
9
9''B0&8
9
9''B0&8
,''
9''
,''
9''
Table 9. IDD measurement jumper settings
JumperDescription
Default setting
The STM32L496AGI6 is supplied with 3.3 V.
Jumper JP5 connects pins 1 and 2.
JP5
VDD_MCU
voltage
selection
The STM32L496AGI6 is supplied with 1.8 V.
Jumper JP5 connects pins 2 and 3.
Default setting
The VDD_USB power pin of the STM32L496AGI6 is supplied with 3.3 V.
Jumper JP4 connects pins 1 and 2.
JP4
VDD_USB
source
selection
The VDD_USB power pin of the STM32L496AGI6 is supplied with VDD_MCU.
Jumper JP4 connects pins 2 and 3.
Default setting
IDD measurement: use of an on-board module that is designed to measure from
60 nA to 50 mA by using several MOSFETs and that automatically switches
depending on the range of the measured value.
No jumper in this configuration: an ammeter must be connected to measure the
STM32L496AGI6 current through pins 1 and 2. If no ammeter is connected to pins 1
and 2, the STM32L496AGI6 is unpowered.
JP2
VDD_MCU
measure
The STM32L496AGI6 is powered by VDD.
Jumper JP2 connects pins 2 and 3.
20/61DocID030176 Rev 1
Page 21
UM2160Hardware layout and configuration
8.7 Programming/debugging when the power supply is not from
ST-LINK/V2-1
It is mandatory to power the board first using the user USB FS connector CN8 or the VIN pin
of the Arduino™ connector CN15 before connecting the USB cable from ST-LINK/V2-1 CN5
to the PC. Proceeding this way ensures that the enumeration succeeds thanks to the
external power source.
The following power sequence procedure must be respected:
1.Connect jumper JP7 on U5V pins to use power from user USB CN8 or on E5V pins to
use power from VIN of Arduino™ connector CN15.
2. Connect the corresponding external power source
3. Check that the LD8 green LED is turned ON
4. Connect the PC to ST-LINK/V2-1 USB connector CN5
If this order is not respected, the 32L496GDISCOVERY board may be powered by V
from ST-LINK and
1.If more than 500 mA current is needed by the board, the PC may be damaged or the
current can be limited by the PC. As a consequence the board is not powered correctly.
2. 500 mA is requested at enumeration: if the PC cannot provide such current, there is a
risk that the request is
the following risks may be encountered:
8.8 Clock source
One clock source is available as described below:
•X1, 32-kHz crystal for STM32L496AGI6 embedded RTC
8.9 Reset sources
The reset signal of the 32L496GDISCOVERY board is active low and the reset sources
include:
•Reset button B1
•Arduino™ Uno V3 shield board from CN15
•Embedded ST-LINK/V2-1
rejected and that the enumeration does not succeed.
BUS
first
8.10 Boot configuration
The boot configuration of the STM32L496AGI6 microcontroller is controlled by the BOOT0
signal on pin PH3.
BOOT0 is by default grounded through the R20 pull-down resistor.
It is possible to set BOOT0 high by removing resistor R20 and soldering resistor R21.
DocID030176 Rev 121/61
60
Page 22
Hardware layout and configuration UM2160
8.11 Audio codec
An audio codec CS42L51-CNZ from Cirrus (U18) is connected to the SAI1 interface of the
STM32L496AGI6. It communicates with STM32L496AGI6 via an I
possibility to connect a stereo headphone or a headset with a mono analog microphone.
The I2C-bus address of CS42L51-CNZ is 94h.
8.12 Stereo headset and headphone jack
A stereo headphone or a stereo headset with analog microphone can be plugged into the
3.5
mm standard jack socket CN12.
If a headset is plugged into CN12, the bias of the microphone is driven by the output
MICBIAS1 of the codec and the analog audio enters the codec by pin AIN3A.
8.13 DFSDM
Two STMicroelectronics MP34DT01TR MEMs digital microphones U1 and U2 are available
on the 32L496GDISCOVERY board. The two microphones are separated by a distance of
21
mm. The microphones are connected to the DFSDM of the STM32L496AGI6 by the port
PC2 generating the clock and by the port PC7 collecting the PDM interleaved data. Both are
powered by MIC_VDD (PH1 of STM32L496AGI6).
8.14 USB OTG FS
2
C bus and offers the
The 32L496GDISCOVERY board supports USB OTG full speed communication via a USB
Micro-AB connector (CN8) and USB power switch (U14) connected to V
The LD6 green LED is lit in one of these cases:
•Power switch (U14) is ON and the 32L496GDISCOVERY board works as a USB host
•V
The LD7 red LED is lit in case of overcurrent.
Note 1:When the 32L496GDISCOVERY board is powered by the ST-LINK then the OTG function
provides up to 100
Note 2:When the 32L496GDISCOVERY board is powered by an external power supply then the
OTG function provides more than 100
capability.
Note 3:When the 32L496GDISCOVERY board is powered by an external power supply through
USB FS connector (CN8), in device mode, do not use a PC as power source (refer to
Section 8.6.3).
is powered by another USB host when the 32L496GDISCOVERY board works as a
BUS
USB
device.
mA.
mA, according to the external power supply
BUS
.
8.14.1 32L496GDISCOVERY as an USB Device
When the 32L496GDISCOVERY board is used as a USB Device, the board can be
powered by the 5
6).
V DC of the USB OTG FS connection (jumper JP7 connecting pins 5 and
22/61DocID030176 Rev 1
Page 23
UM2160Hardware layout and configuration
The LD6 VBUS and LD8 PWR green LEDs are lit to confirm the 5 V presence.
8.14.2 32L496GDISCOVERY as an USB Host
When the 32L496GDISCOVERY board is used as a USB Host, it supplies the 5 V for the
USB peripheral using one of the following sources:
•ST-LINK/V2-1 USB Micro-B connector CN5 when a jumper connects the pins at the
STLK location of JP7.
•An external 5 V source connected to pin 5 of the extension connector CN15 when a
jumper connects the pins at the ARD location of JP7.
•An external source between 7 V and 11 V connected to the VIN pin of the Arduino™
connector CN15 when a jumper connects the pins at the E5V location of JP7.
The LD8 green LED is lit to confirm the presence of the 5 V source.
The STMPS2141STR power switch is controlled by port MFX_GPIO3 to deliver the 5 V
power to the USB Device connected to the USB connector CN8. When MFX_GPIO3 is
pulled down to ground, the power switch is closed, and the LD6 green LED confirms the 5
to the USB Device. The LD7 FAULT red LED is lit in case of over-current.
For more details refer to Section 8.6: Power supply on page 16.
V
8.15 PSRAM memory
An 8-Mbit PSRAM is connected to the NOR_RAM of the FMC interface of the
STM32L496AGI6. The data bus is shared with the LCD.
Note:The PSRAM is only working when the STM32L496AGI6 is supplied with 3.3 V.
8.16 Quad-SPI Flash memory
A 64-Mbit Quad-SPI Flash memory (MX25R6435FM2IL0 from MACRONIX) is connected to
the Quad-SPI interface of the STM32L496AGI6.
8.17 Virtual COM port
The serial interface USART2 is directly available as a virtual COM port of the PC connected
to the ST-LINK/V2-1 USB connector CN5. The virtual COM port settings are configured as:
115200 b/s, 8-bit data, no parity, 1 stop bit, no flow control.
8.18 Joystick and LEDs
The blue button B2 is a four-direction joystick with a selection mode when pressed in the
center. The logic state is high when one of the five-position switch (Left, Right, Up, Down,
Selection) is pressed. The center position is connected to a wake-up pin of the
microcontroller PC13. This offers the possibility to wake-up the microcontroller by pressing
the center of the joystick.
Two LEDs located near camera connectors CN1 are available for the user. Refer to
Figure 4: 32L496GDISCOVERY top layout on page 11 for details. The LEDs are LD1, LD2,
DocID030176 Rev 123/61
60
Page 24
Hardware layout and configuration UM2160
from left to right with colors orange and green respectively as presented in Tabl e 10. To light
a LED, a low logic state 0 must be written in the corresponding GPIO.
LEDControl MCU portColor
LD1MFX_GPIO4Orange
LD2PB13Green
Table 10. 32L496GDISCOVERY user LEDs
24/61DocID030176 Rev 1
Page 25
UM2160Connectors
9
9''B0&8
9
9''B0&8
9 Connectors
9.1 Arduino™ Uno V3 compatible connectors
CN10, CN11, CN15, and CN16 are female connectors compatible with Arduino™ Uno V3
standard. Most
32L496GDISCOVERY board.
The Arduino™ connectors on the 32L496GDISCOVERY board support the Arduino™ Uno V3.
There are three possible power sources for VREF+:
•From the 32L496GDISCOVERY board VDDA. The related jumper settings are detailed
in Table 11. In this case, a 0 Ω resistor must be mounted on R18.
JumperDescription
shields designed for Arduino™ Uno V3 are also supported by the
Table 11. JP4 (VDDA) jumper description
Default setting
VDDA is supplied from 3.3 V.
Jumper JP4 connects pins 1 and 2.
JP4
VDDA
source
selection
VDDA is supplied from VDD_MCU.
Jumper JP4 connects pins 2 and 3.
Warning:There is a high leakage and a risk of damage in the following
configuration: VDDA = VDD_MCU = 1.8 V and 3.3V connected
to ADC input IO.
•From an external shield through Arduino™ connector CN10.
In this case, a 0 Ω resistor must be mounted on SB2 and a 100 nF capacitor must be
mounted on C3.
•From the STM32L496AGI6 MCU (default).
Caution:The I/Os of STM32 microcontroller are 3.3 V compatible instead of 5 V for Arduino™ Uno
V3.
Arduino™ compatible connectors are detailed in Tab le 12.
DocID030176 Rev 125/61
60
Page 26
Connectors UM2160
LEFT ConnectorsRIGHT Connectors
CNPinPin name
1-- E5V testSPI1_SCKPA5D136
2IOREF-VDDSPI1_MISOPB4D125
3NRSTNRSTReset
CN15
Power
43V3 -
5+5V-5 V input/outputTIM4_CH3PH13D92
6GND-Ground-PG15D81
7GND-Ground-
8VIN -
Table 12. Arduino™ compatible connectors
MCU
pin
FunctionFunction
I2C1_SCLPB8D1510
-
I2C1_SDAPB7D149
AVD D-AV D D8
Ground-GND7
TIM3_CH2,
SPI1_MOSI
3.3 V output
(see note 1)
TIM2_CH1,
SPI1_NSS
+6 V to +9 V
power input
-PG6D78
(see note 2)
-TIM5_CH1PI6D67
MCU
pin
Pin
name
PinCN
-
PB5D114
PA1 5D103
CN10
Digital
CN16
Analog
1A0PC4ADC12_IN13TIM5_CH4PB9D56
2A1PC1ADC123_IN2-PI11D45
3A2PC3ADC123_IN4TIM5_CH2PH15D34
4A3PF10ADC3_IN13-PG13D23
ADC12_IN6
PA1 or
5A4
PB7
(note 3)
or
I2C1_SDA
LPUART1_TXPG7D12
(see note 3)
PC0 or
6A5
PB8
(note 3)
ADC12_IN13
or
I2C1_SCL
(note 3)
LPUART1_RXPG8D01
CN11
Digital
26/61DocID030176 Rev 1
Page 27
UM2160Connectors
Note1: the 3.3 V supply on ARD connector PIN4 is not a power input for
32L496GDISCOVERY board in order to keep the power architecture simple.
Note 2: The external voltage applied to pin VIN should be in the range of 6 V to 9 V at 25 °C
ambient temperature.The U10 regulator risks overheating and can be damaged if a higher
voltage is applied.
Note 3: By default pin 5 and pin 6 of connector CN16 are connected to MCU ports PC0 and
PA1 respectively. By default, they are enabled by the default configuration of solder bridges:
SB28 and SB26 closed, SB27 and SB25 opened. In case an I
2
C interface is needed on pins
5 and 6 of CN16 instead of ADC inputs, SB28 and SB26 must be opened and SB27 and
SB25 must be closed.
9.2 PMOD connector CN3
The standard PMOD connector is available on 32L496GDISCOVERY board to support
flexibility in small form factor applications. The PMOD connector is implementing PMOD
types 2A and 4A on 32L496GDISCOVERY board. PMOD connector is detailed in
Pin numberDescriptionPin numberDescription
Table 13. PMOD connector CN3
Table 13.
1SS/CTS (PG11)7INT (PH2)
2MOSI/TXD (PB15/PB6)8RESET (PB2)
3MISO/RXD (PI2/PG10)9NA
4SCK/RTS (PI1/PG12)10NA
5GND11GND
63V3123V3
Refer to Section Appendix C: PMOD and STMod+ schematic table to find more information
about PMOD pins.
9.3 STMod+ connector CN2
The STMod+ connector is available on 32L496GDISCOVERY board to support flexibility in
small form factor applications. The STMod+ connector extends SPI and spare I/Os for
different peripheral expansion. It is described in
Pin numberDescriptionPin numberDescription
1SS/CTS (PG11)11INT (PH2)
2MOSI/TXD (PB15/PB6)12RESET (PB2))
Table 14. STMod+ connector CN2
Tabl e 14.
3MISO/RXD (PI2/PG10)13ADC (PA4)
4SCK/RTS (PI1/PG12)14PWM (PA0)
5GND15+5V
6+5V16GND
DocID030176 Rev 127/61
60
Page 28
Connectors UM2160
Table 14. STMod+ connector CN2 (continued)
Pin numberDescriptionPin numberDescription
7I2C_SCL (PB8)17DFSDM-DATA3 (PC7)
8MOSIs (PI3)18DFSDM-CK (PC2)
9MISOs (PD3)19DFSDM-DATA1 (PB12)
10I2C_SDA (PB7)20DFSDM-CK (PC2)
Refer to Section Appendix C: PMOD and STMod+ schematic table to find more information
about STMod+ signals.
9.4 TAG connector CN4
TAG connector is a 10-pin footprint supporting SWD mode. It is used to connect to the
STM32L496AGI6 for programming or debugging purposes.
Figure 8. TAG connector top view (CN4)
Pin numberDescriptionPin numberDescription
1VDD10RESET#
2SWDIO (PA13)9NA
3GND8 NA
4SWCLK (PA14)7NA
5GND6SWO (PB3)
28/61DocID030176 Rev 1
Table 15. TAG connector CN4
Page 29
UM2160Connectors
9.5 SWD connector CN7
SWD can be used to program or debug on an MCU in an external application board using a
cable connected to SWD connector CN7. In such a case, jumper JP6 must connect pins 2
and 3 of the JP6 location.
When SWD is used to program or debug the STM32L496AGI6, jumper JP6 must connect
pins 1 and 2 of theJP6 location (default setting).
Pin numberDescriptionPin numberDescription
1VDD4SWDIO
2SWCLK5NRST
3GND6SWO
Table 16. SWD connector CN7
9.6 USB OTG FS Micro-AB connector CN8
USB OTG full speed interface is available on 32L496GDISCOVERYat USB Micro-AB
connector CN8.
Figure 9. USB OTG FS Micro-AB connector CN8 (front view)
Pin numberDescriptionPin numberDescription
1V
2DM (PA11)5GND
3DP (PA12)--
Table 17. USB OTG FS Micro-AB connector CN8
(PA9)4ID (PA10)
BUS
9.7 Camera module connector CN1
The 32L496GDISCOVERY offers the possibility to connect a camera module on connector
CN1 as detailed in
Figure 10 and Table 18.
Note:The camera is only working when the STM32L496AGI6 is supplied with 3.3 V.
DocID030176 Rev 129/61
60
Page 30
Connectors UM2160
Figure 10. Camera module connector CN1 (front view)
Pin numberDescriptionPin numberDescription
1GND16GND
2NC17DCMI_HSYNC (PH8)
3NC18NC
4DCMI_D0 (PH9)19DCMI_VSYNC (PI5)
5DCMI_D1 (PH10)20VDD
6DCMI_D2 (PH11)21Camera_CLK (MCU PA8)
7DCMI_D3 (PH12)22NC
8DCMI_D4 (PH14)23GND
9DCMI_D5 (PI4)24NC
10DCMI_D6 (PE5)25DCMI_PWR_EN (MFX_GP6)
11DCMI_D7 (PI7)26RESET#
12NC27DCMI_SDA (PB14)
13NC28DCMI_SCL (PH4)
14GND29GND
15DCMI_PIXCK (PH5)30VDD
Table 18. Camera module connector CN1
9.8 microSD™ card
microSD™ cards with 4GB or more capacity can be inserted in the receptacle CN17. 4 bits
of the SDIO interface including CLK and CMD signals of the STM32L496AG are used to
communicate with the Micro SD card. The card detection is read by the MFX_GPIO8: when
a microSD™ card is inserted, the logic level is 0, otherwise it is 1.The CN17 connector is
detailed in
Note:The microSD™ card is only working when the STM32L496AGI6 is supplied with 3.3 V.
The display is a 1.54-inch 240 x 240 pixels TFT color LCD with capacitive touch panel. It
can display up to 262
STM32L496AGI6 by the CN6 connector. By default, the solder bridge SB15 is opened and
the solder bridge SB14 is closed. It sets the IM of the LCD to high, enabling the LCD display
data bus in 16-bit mode. To use the LCD in 8-bit mode, SB15 must be closed and SB14
opened.
The selection of the LCD is performed by the FMC_NE1 (PD7) signal. The write enable
signal is FMC_NWE (PD5) and the read enable signal is FMC_NOE (PD4). The FMC
address A18 signal is used to select data/command access to the LCD.
Table 19. microSD™ card connector CN17
Kcolors. The LCD parallel interface is connected to the FMC of the
The PH7 port must be used as an input of the microcontroller connected to the LCD signal
TE (Tearing Effect). The TE signal is used to synchronize the refresh of the LCD memory by
the microcontroller with the LCD scan. Such a synchronization allows to avoid visible
artifacts on the display.
DocID030176 Rev 131/61
60
Page 32
Connectors UM2160
The LCD_RESET (MFX_GPIO2) signals gives the possibility to reset the LCD by the
microcontroller.
Tabl e 20 details the signals of LCD connector CN6.
Table 20. LCD connector CN6
CN6
pin
Signal
name
Description
MCU pin
involved
1GNDGroundGND
2LCD_TETearing Effect output pin to interrupt of MCUPH7
The LEDK and LEDA signals of the LCD module are the cathode and anode of the backlight
LEDs.
The backlight LEDs require a current source supply of typically 15 mA capable to deliver a
voltage up to 10
is a switching mode boost converter powered by the 5
V. This function is handled by the backlight driver circuit STLD40DPUR that
V rail of the board.
A high level of the LCD_BLCTRL (PI0) signal switches the backlight on. It is possible to dim
backlight intensity by applying a low frequency PWM signal to LCD_BLCTRL (from 1
10
kHz typically).
kHz to
9.11 Touch panel
The touch panel is a capacitive touch panel using an I2C interface. The CN13 10-pin
connector of the touch panel is located on th bottom side of the 32L496GDISCOVERY
board. The I
The CTP_INT interrupt output is connected to port PG14 as an interruption input of the
microcontroller. Port MFX_GPIO1 is the reset of the capacitive touch panel.
2
C SDA line is connected to PB14 and the I2C SCL line is connected to PH4.
Table 21. Touch panel connector CN13
Pin
number
1GND6GND
2INT (PG14)7RESET (MFX_GPIO1)
3GND8VDD
4SDA (PB14)9VDD
5SCL (PH4)10GND
Description
Pin
number
9.12 ST-LINK/V2-1 USB Micro-B connector CN5
USB connector CN5 is used to connect embedded ST-LINK/V2-1 to PC for
programming and the debugging of the STM32L496AGI6 microcontroller.
Rev A.01 --> MB1261 B.01
1: Updated back light name port from PA5 to PI0
2: Updated CN2 name from PMOD+ to STMOD
3: Pull-up EN pin of USB power swi tch (U14) to 5V instead of 3V3
4: Swap "MFX_IRQ_OUT" and "MFX_WAKEUP"
5: Connect 4 fix holes to GND
6: Replace PA0 (MFX_aGPIO0) with PA1 (MFX_aGPIO1)
7: Replace FMC_A0 (PF0) with FMC_A18 (PD13)
8: Replace load capacitors C9&C11 to 5.6pF
9: Removed MOSFET T1 and R9/R10/R11/R61/R39/R19/R38/R40/R108
10: Connect PG9 to CS1 of PSRAM via R12 & a two-pin jumper in parallel.Add
possibility to power PSRAM by either 3V3 or VDD_LCD
11: Updated R18 to N/A, SB2 to OPEN,SB23 to JP10, Connect VDDA to VDD_USB
instead of VDD_MCU
12: N-MOSFET BSN20 added to drive LD3
13: Added USBLC6-2SC6 for ST-LINK USB
support Grove- Barometer sensor (BMP180)
support Grove- LCD RGB Backlight
RXD
CH_PD
RST
VCC
MB1280A.1
VCC
PMOD#3
PMOD#2
support Grove- NFC
+3V3+5VVCC
JP1
3
2
1
closed pin2 and pin3 for default
Revision:
11
CN3
1
2
3
4
1125S-SMT-4P
CN2
1
2
3
4
1125S-SMT-4P
SCL
SDA
RX
TX
Electrical schematics UM2160
Page 55
UM2160PMOD and STMod+ schematic table
Appendix C PMOD and STMod+ schematic table
Tabl e 24 gives the description of the signals available on the STMod+ connector. It also
shows which signal is shared with other board connectors (such as PMOD or Arduino™
Uno V3 as listed in columns PMOD and ARD respectively). When the I
10) is shared with built-in discovery slave devices, it is recommended to check the device
slave address when adding it to the bus. Refer to the following list of acronyms before
reading
•NSS2 stands for SPI2_NSS
•LT2.O stands for LPTIM2_OUT
•LT1.2 stands for LPTIM1_IN2
•LT1.E stands for LPTIM1_ETR
•T15.2 stands for TIM15 CH2
•SCL4 stands for I2C4_SCL
•SDA1 stands for I2C1_SDA
•DFS1.D5 stands for DFSDM1_DATIN5
•DFS1.CI2 stands for DFSDM1_CKIN2
•DFS1.CO stands for DFSDM1_CKOUT
•RX1 stands for USART1_RX
•UCK3 stands for USART3_CK
•CTS2 stands for USART2_CTS
•LRTS1 stands for LPUART_RTS1
•CRX1 stands for CAN1_RX
Tabl e 24:
2
C bus (pins 7 and
DocID030176 Rev 155/61
60
Page 56
56/61DocID030176 Rev 1
Table 24. STMod+ connector signals
---STMod+---
ARDPMODSome other alternate functionsBasicSBPortPinPortSBBasicSome other alternate functionsPMOD ARD
The mikroBUS™ compatible connector is 2.54" pitch with a pair of 1x8-pin female
connectors.
Tabl e 25 below shows the definition of the pins.
DocID030176 Rev 157/61
60
Page 58
Fanout board UM2160
T
STMod+ connector
CN11 number
STMod+#13-ADC
Table 25. Description of the mikroBUS™ connector pins
(1)
Function of
mikroBUS
AN11PWMSTMod+#14-PWM
Pin
number
Pin
number
Function of
mikroBUS
STMod+ connector
CN10 number
STMod+#12-RSTRST22INTSTMod+#11-INT
STMod+#1-NSSCS33RXSTMod+#3-RX
STMod+#4-SCKSCK44TXSTMod+#2-TX
STMod+#9-MISOsMISO55SCLSTMod+#7-SCL
STMod+#8-MOSIsMOSI66SDASTMod+#10-SDA
-+3.3 V77+5 V-
-GND88GND -
1. Exclusive use: Arduino™ or STMod+.
2. Shared with Arduino™.
The mikroBUS™ pinout assignment is available at the: http://mikroe.com website.
(1)
(2)
(2)
58/61DocID030176 Rev 1
Page 59
UM2160Federal Communications Commission (FCC) and Industry Canada (IC) Compliance
Appendix E Federal Communications Commission (FCC)
and Industry Canada (IC) Compliance
This kit is designed to allow:
•(1) Product developers to evaluate electronic components, circuitry, or software
associated with the kit to determine whether to incorporate such items in a finished
product and
•(2) Software developers to write software applications for use with the end product.
This kit is not a finished product and when assembled may not be resold or otherwise
marketed unless all required FCC equipment authorizations are first obtained.
Operation is subject to the condition that this product not cause harmful interference to
licensed radio stations and that this product accept harmful interference. Unless the
assembled kit is designed to operate under part 15, part 18 or part 95 of 47 CFR,
Chapter I (“FCC Rules”), the operator of the kit must operate under the authority of an
FCC license holder or must secure an experimental authorization under part 5 of this
chapter.
DocID030176 Rev 159/61
60
Page 60
Revision history UM2160
Revision history
DateRevisionChanges
02-Mar-20171Initial release
Table 26. Document revision history
60/61DocID030176 Rev 1
Page 61
UM2160
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.