The 32L4R9IDISCOVERY kit is a complete demonstration and development platform for the
STMicroelectronics Arm
Leveraging the innovative ultra-low power oriented features, 640
graphics performance (Chrom-ART Accelerator™) and DSI controller offered by the
STM32L4R9AI, the 32L4R9IDISCOVERY kit enables users to easily prototype applications
with state-of-the-art energy efficiency, as well as providing stunning audio and graphics
rendering with direct support for an AMOLED DSI round display. For even more userfriendliness, the on-board ST-LINK/V2-1 debugger provides out-of-the-box programming
and debugging capabilities.
The STM32L4R9AI microcontroller features four I2Cs, five USARTs, one ULP UART, three
SPIs, two SAIs, one SDIO, one USB 2.0 full-speed OTG, two CANs, one FMC parallel
synchronous interface, one 12-bit ADC, one 12-bit DAC, two ULP analog comparators, two
op amps, one 2 data-lane DSI display, one digital filter for sigma delta modulator and SWP
interface, two Octo-SPI interfaces, 8- to 14-bit camera interface, one touch sensing
controller interface, JTAG and SWD debugging support.
This Discovery board offers everything required for users to get started quickly and develop
applications easily.The hardware features on the board help to evaluate the following
peripherals: USB OTG FS, microSD™ card, 8-bit camera interface, 16-Mbit PSRAM, PMOD
and STMod+ connectors, IDD measurement, full-duplex I2S with an audio codec and stereo
headset jack including an analog microphone, DFSDM with a pair of MEMS digital
microphones on board, 512-Mbit Octo-SPI Flash memory device, I2C extension connector,
1.2" AMOLED display using a one data-lane DSI interface with a capacitive touch panel.
The Arduino™ compatible connectors expand the functionality with a wide choice of
specialized shields. The integrated ST-LINK/V2-1 provides an embedded in-circuit
debugger and programmer for the STM32 MCU.
Figure 1. 32L4R9IDISCOVERY top viewFigure 2. 32L4R9IDISCOVERY bottom view
•On-board ST-LINK/V2-1 debugger/programmer with USB
re-enumeration capability: mass storage, virtual COM port and debug port
•Comprehensive free software libraries and examples available with the STM32Cube
package
•Support of a wide choice of integrated development environments (IDEs), including
IAR™, Keil
®
and GCC-based IDEs
or external sources
BUS
®
DSI
2 Product marking
Evaluation tools marked as “ES” or “E” are not yet qualified and are therefore not ready to
be used as reference design or in production. Any consequences arising from such usage
DocID030906 Rev 27/78
77
Page 8
System requirementsUM2271
will not be at ST’s charge. In no event will ST be liable for any customer usage of these
engineering sample tools as reference designs 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
This board features a specific STM32 device version which allows the operation of any
stack or library. This STM32 device shows a "U" marking option at the end of the standard
part number and is not available for sales.
3 System requirements
•Windows® OS (7, 8 and 10), Linux® 64-bit 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)
5 Demonstration software
The demonstration software, included in the STM32Cube package corresponding to the onboard MCU, is preloaded in the STM32 Flash memory for easy demonstration of the device
peripherals in standalone mode. The latest versions of the demonstration source code and
associated documentation can be downloaded from the www.st.com/stm32l4-discovery web
page.
®
6 Ordering information
To order the 32L4R9IDISCOVERY kit, refer to Table 1.
a. On Windows only
8/78DocID030906 Rev 2
Page 9
UM2271Technology partners
Order codeTarget STM32
STM32L4R9I-DISCOSTM32L4R9AII6
Table 1. Ordering information
7 Technology partners
MACRONIX:
512-Mbit Octo-SPI NOR Flash memory device, part number MX25LM51245GXDI00
GOVISIONOX OPTOELECTRONICS:
1.2 inch 390x390 AMOLED display, part number G1120TB103GF-001
DocID030906 Rev 29/78
77
Page 10
Bootloader limitationsUM2271
8 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 is identified by reading the bootloader ID at the address 0x1FFF6FFE.
Its value is 0x91 for bootloader V9.1 and 0x92 for V9.2.
The STM32L4R9AII6 part soldered on the 32L4R9IDISCOVERY main board is marked with
a date code corresponding to its date of manufacturing. STM32L4R9AII6 parts with a date
code prior or equal to week 37 of 2017 are fitted with bootloader V9.1 affected by the
limitations to be worked around, as described hereunder. Parts with the date code starting
from week 38 of 2017 contain bootloader V9.2 in which the limitations no longer exist.
To locate the visual date code information on the STM32L4R9II6 package, refer to its
datasheet (DS12023) 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 38 of 2017 bares the
date code 7 38.
There is also another mean to identify the need for workaround: before opening the blister of
the Discovery Kit, just check the back side of the blister. At the bottom left side, if the
reference number is equal or higher than 32L4R9IDISCO/ 02-0, it means the bootloader
version is V9.2 and there is no need to apply workaround. Any other inferior number like 010 will need the workaround.
Bootloader ID for the bootloader V9.1 is 0x91.
The following limitation exists in the bootloader V9.1:
Some user Flash memory data get corrupted when written via SPI interface
Description:
During bootloader SPI Write Flash operation, some random 64-bits (2 double-words) may
be left blank at 0xFF
Workarounds:
WA1: add a delay between sending Write command and its ACK request. Its duration
should be the duration of the 256-Byte Flash write time.
WA2: read back after each write operation (256 bytes or at end of user code flashing) and in
case of error start write again.
WA3: Using bootloader, load a patch code in RAM to write in Flash memory through same
Write Memory write protocol as bootloader (code provided by ST). The patch code is
available for download from www.st.com website with a readme.txt file containing usage
instructions.
10/78DocID030906 Rev 2
Page 11
UM2271AMOLED display limitation
9 AMOLED display limitation
Warning:Permanent image sticking may occur if AMOLED displays
same image for an extended period of time.
10 Hardware layout and configuration
32L4R9IDISCOVERY board is designed around the STM32L4R9AI (169 ball UFBGA
package DSI version). The hardware block diagram
between STM32L4R9AI and peripherals (PSRAM, Octo-SPI Flash, DSI color display, USB
OTG connector, USART, audio, camera connector, STMod+ and PMOD connectors, IDD
measurement, joystick, microSD card, I
embedded ST-LINK).
board. Mechanical drawing for 32L4R9IDISCOVERY and round DSI display boards is
described in
Figure 6.
Figure 4 and Figure 5 help the user to locate these features on the
Figure 6. 32L4R9IDISCOVERY mechanical drawing (top view, in mm)
Legend:
= Indicates the mounting hole between the 32L4R9IDISCOVERY board (at the top of Figure 6) and
the round DSI display board (at the bottom of Figure 6)
DocID030906 Rev 215/78
77
Page 16
Hardware layout and configurationUM2271
Figure 7. 32L4R9IDISCOVERY mechanical drawing (bottom view, in mm)
Plastic spacer height = 13 mm, overall height = 26 mm ± 1 mm
10.3 Embedded ST_LINK/V2-1
The ST-LINK/V2-1 programming and debugging tool is integrated on the
32L4R9IDISCOVERY board. Compared to ST-LINK/V2, the changes are listed below:
•new features supported on ST-LINK/V2-1:
–USB software re-enumeration
–Virtual Com port interface on USB
–Mass storage interface on USB
–USB power management request for more than 100 mA power on USB
•features no more supported on ST-LINK/V2-1:
–SWIM interface
–Application voltage lower than 3 V
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.
16/78DocID030906 Rev 2
Page 17
UM2271Hardware layout and configuration
10.3.1 Drivers
Before connecting the 32L4R9IDISCOVERY to a Windows (7, 8, 10) PC via USB, a driver
for ST-LINK/V2-1 must be installed. It is available on the www.st.com website.
If 32L4R9IDISCOVERY is connected to the PC before the driver is installed, some
interfaces of the board 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 as shown on
Note:Prefer using the ‘USB Composite Device’ handle for a full recovery.
Figure 8. How to update driver software
Figure 8: How to update driver software
10.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
(such as new functionality, bug fixes or support for new microcontroller families), it is
recommended to visit www.st.com before starting to use the 32L4R9IDISCOVERY and
periodically, in order to stay up-to-date with the latest firmware version.
10.4 Low-power consumption status
There is a way to make the board get into very low power consumption status in which the
current on +5
1.The connections between ST-LINK/V2-1 and MCU must be disconnected by micro
switch SW1 manually (see
ARD-5V IN position. Remove JP10. Then, connect an external 5 V power supply on
CN16 pin 5 5V and on GND.
2. Peripherals (including display, CTP and PSRAM) are powered off by MOSFET which is
controlled by MFX_GPIO8 / MFX_aGPIO2 (put them as input floating), and by setting
V can be below 20 uA. How to get into the low power mode:
Tabl e 3 below). Set JP4 on (7) ARD position, and put JP5 in
DocID030906 Rev 217/78
77
Page 18
Hardware layout and configurationUM2271
21
21
all peripherals related I/Os to inactive level (input pull-down or input is good option
according to I/Os).
3. Disconnect JP9 to remove +5 V from LD8 power LED, disconnect JP10 (or put it in 2-3
position), power off OCTOSPI (remove SB23/SB24) and configure related I/Os as input
pull down.
4. Peripherals can be setup by FW to reach power down mode. All I/Os must be
configured in non-consuming states. Set MFX_V3 to sleep mode, get SD card out of its
socket slot. Set the Audio Codec in power down.
10.5 TAG and SWD
One TAG interface footprint CN8 is reserved on 32L4R9IDISCOVERY and is usable to
debug and program the on-board MCU.
Note:Micro switch SW1 must be put in Off position. R24 and R31 must be disconnected.
The SWD 6-pin header CN5 added on 32L4R9IDISCOVERY, connected to on board STLINK MCU, is usable to debug and program an external MCU.
VDD from the external board is 1.8 V or 3.3 V, thanks to the on board voltage converter.
Table 2. JP10: VDD_STL setting
JumperSettingDescription
Default setting.
VDD_STL gets power from 32L4R9IDISCOVERY. ST-LINK is
JP10
then usable to program the on-board MCU.
VDD_STL gets power from external through CN5. ST-LINK is
then usable to program an external MCU.
SW1 is accessible on bottom side of 32L4R9IDISCOVERY. By default, SW1 is in On
position. To put micro switch in Off position, just push away the switch from ON position as
shown in
Tabl e 3.
Table 3. SW1 switch setting
SwitchSettingDescription
Default setting.
SW1 switch is On.
SW1
SW1 is Off.
18/78DocID030906 Rev 2
Page 19
UM2271Hardware layout and configuration
06Y9
10.6 Power supply
10.6.1 Power supply sources
32L4R9IDISCOVERY is designed to be powered by +5 V DC power supply. It is possible to
configure the 32L4R9IDISCOVERY to use any of the sources listed in
By default, the JP4 header must have a jumper on (1) STLK and SW1 is placed in ON
position. Any JP4 position different from (1) STLK requires SW1 to be placed in OFF
position (see
Tabl e 3).
Table 4. 32L4R9IDISCOVERY power sources configuration
Tabl e 4.
JP4 configuration
(function)
(1) STLK (USB_STLINK)CN5 (VBUS)5 V500 mA
(3) E5V (ARDUINO)CN16 (VIN)6 V - 9 V => 5 V
(5) U5V (USB_OTG_FS)CN8 (VBUS)5 V500 mA
(7) ARD (ARDUINO)CN16 (ARD-5V)
(9) CHGR (USB_STLINK)CN5 (VBUS)5 V
1. ARD-5V is a power output pin to Arduino connector CN16 (default) or a power input pin from Arduino
connector CN16, according to JP5 setting. See Table 6 below.
Power source
connector (pin name)
(1)
VoltageAvailable current
Arduino Uno V3 shield
dependent
5 V
Arduino Uno V3 shield
dependent
Power supply
dependent
Note:32L4R9IDISCOVERY 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.
Figure 9 shows a physical description of the 10-pin header JP4 default configuration.
Figure 9. JP4 default configuration
Detailed description of all JP4 possible configurations are listed below and in Ta b le 5:
•STLK: 5 V from the ST-LINK/V2-1 USB connector CN13 with 500 mA current limitation.
Power mechanism of supplying the board by STLINK/V2-1 is explained Section 10.6.3.
DocID030906 Rev 219/78
77
Page 20
Hardware layout and configurationUM2271
67/.
(9
89 $5' &+*5
67/.
(9
89 $5' &+*5
67/.
(9
89 $5' &+*5
67/.
(9
89 $5' &+*5
67/.
(9
89 $5' &+*5
A jumper must be placed in location STLK of JP4, connecting pins 1 and 2. The green
LED LD8 is lit on to confirm presence of 5 V voltage.
•E5V: 5 V from the 6 V to 9 V DC from VIN pin of Arduino compatible connector CN16
(the U15 regulator is converting VIN into a 5 V voltage). The VIN input voltage is limited
to 9 V to keep temperature of the regulator U15 within its thermal safe area. A jumper
must be placed connecting pins 3 and 4 of JP4. The green LED LD8 is lit on to confirm
presence of 5 V voltage. SW1 must be placed in OFF position.
•U5V: 5 V from the 5 V DC of USB OTG FS user connector CN9. A jumper must be
placed in location USB of JP4, connecting pins 5 and 6.The green LED LD8 is lit on to
confirm presence of 5 V voltage. SW1 must be placed in OFF position.
•ARD: 5 V from the 5 V of Arduino compatible connector CN16. A jumper must be
placed in location ARD of JP4, connecting pins 7 and 8. The green LED LD8 is lit on to
confirm presence of 5 V voltage and at t the same time, pins 2 and 3 of JP5 must be
connected to get 5 V power from Arduino. SW1 must be placed in OFF position. In
case the main board provides 5 V to Arduino compatible connector CN16, which is the
default configuration, pins 1 and 2 of JP5 must be connected (see Tabl e 6 ).
•CHGR: 5 V from 5 V DC power charger connected to USB STLINK (CN13). In this
case, if 32L4R9IDISCOVERY is powered by an external USB charger, then the debug
on CN13 is not available. When CHGR input is chosen, it is not recommended to
connect a PC on USB STLINK, because the 500 mA limitation is no more effective and
this may damage the PC. A jumper must be placed in location CHGR of JP4,
connecting pins 9 and 10. The green LED LD8 is lit on to confirm presence of 5 V
voltage. SW1 must be placed in OFF position.
Table 5. JP4: power source selector setting
JumperSettingDescription
Default setting.
32L4R9IDISCOVERY is supplied though CN13 Micro-B
ST-LINK/V2-1 connector.
32L4R9IDISCOVERY is supplied though Arduino connector
CN16 (VIN).
JP4
32L4R9IDISCOVERY is supplied though USB OTG FS
connector CN9.
32L4R9IDISCOVERY powers ARDUINO or is supplied by
ARDUINO, according to JP5 setting in Tab l e 6 below.
32L4R9IDISCOVERY is supplied though CN13 Micro-B STLINK/V2-1 connector. In that case, the SB36 solder bridge must
be soldered.
20/78DocID030906 Rev 2
Page 21
UM2271Hardware layout and configuration
Table 6. JP5: ARD 5 V input/output voltage selection setting
JumperSettingDescription
Default setting.
32L4R9IDISCOVERY supplies 5 V to Arduino connector CN16.
JP5
32L4R9IDISCOVERY is supplied by 5 V from Arduino connector
CN16.
10.6.2 MCU power supply options
32L4R9IDISCOVERY offers possibility to supply the MCU under 1.8 V or 3.3 V. The JP7
jumper must be placed on +3V3 to supply the MCU with 3.3
jumper can be placed on +1V8 of JP7 to supply the MCU with 1.8
pins
2 and 3 (see Table 7).
Functions listed below are not compatible with the +1V8 setting of JP7:
•OCTOSPI
•PSRAM
•ARDUINO Uno Revision 3
•CAMERA
•microSD card
•ADC measurements (except if JP3 is set at +3V3, or except if VREF+ configuration is
changed)
•USB OTG FS (except if JP3 is set at +3V3)
Table 7. JP7: VDD setting
SW1 must be placed in OFF position.
V, connecting pins 1 and 2. The
V, connecting
JumperSettingDescription
Default setting.
VDD is powered from +3V3 regulator.
JP7
VDD is powered from +1V8 regulator.
10.6.3 Supplying 32L4R9IDISCOVERY through ST-LINK/V2-1 USB
To power the board through ST-LINK/V2-1, the USB host (a PC) must be connected with the
32L4R9IDISCOVERY standard Micro-B USB receptacle, via a USB cable. This event starts
the USB enumeration procedure. In its initial phase, the current supply capability of the USB
host port is limited to 100
32L4R9IDISCOVERY draws power at that time. If the solder bridge SB36 is open (default
setting), the U11 ST890 power switch is set to Off position, which isolates the remainder of
the board 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
answer is positive, the ST-LINK/V2-1 sets the U11 ST890 switch to On position to supply
power to the remainder of the board. If the PC USB port is not capable of supplying up to
500
mA, another power source must be used like VIN pin of connector CN16.
mA. It is enough because only ST-LINK/V2-1 part of
mA current. If the
DocID030906 Rev 221/78
77
Page 22
Hardware layout and configurationUM2271
The ST890 power switch protects the host USB port against current demand exceeding
625
mA, in case a short circuit occurs on the board (the red LED fault LD5 lights on).
32L4R9IDISCOVERY can also be supplied by STLINK USB power source with no
enumeration, such as a USB charger. In this particular case, the SB36 solder bridge must
be closed. ST-LINK/V2-1 turns the ST890 power switch On regardless of enumeration
procedure result and passes the power unconditionally to the board. The green LED LD8
lights on whenever the whole board is powered.
10.6.4 Measurement of MCU current consumption
Jumper JP1 allows the consumption of STM32L4R9AI to be measured directly by a built-in
MCU current ammeter circuit (MFX_V3, able to measure from 60
removing the jumper and replace it by an external ammeter (see
To measure the MCU consumption in standby or shutdown modes, MFX_V3 needs to run
software. To wake up MCU from these modes, it is necessary to press the Reset button B1,
or to wait a few seconds.
JumperSettingDescription
JP1
Table 8. JP1: IDD_MCU measurement setting
Default setting.
A module on the board is designed to measure from 60 nA to
50 mA by using several MOSFET, and switching automatically
depending on the read value.
STM32L4R9AI is powered by VDD. MCU current measurement
is not possible
No jumper on JP1: an ammeter can be connected on
pins 2 and 3 to measure STM32L4R9AI current (if there is no
ammeter, STM32L4R9AI is not powered).
nA to 50 mA) or by
Table 8).
VDDA and VDDUSB power inputs from STM32L4R9AI can be connected to two different
power sources, +3V3 or VDD_MCU. These power inputs may be included or not in the IDD
current measurement of VDD_MCU, depending on the JP3 jumper configurations described
in
Tabl e 9.
JumperSettingDescription
JP3
22/78DocID030906 Rev 2
Table 9. JP3: VDDA and VDDUSB, settings
Default setting.
VDDA and VDDUSB power pins of STM32L4R9AI are supplied
with +3V3. the IDD measurement does not include their current
consumption. USB OTG FS is functional even if JP7 is set on
+1V8.
VDDA and VDDUSB power pins of STM32L4R9AI are supplied
with VDD_MCU. The IDD measurement includes their current
consumption.
Page 23
UM2271Hardware layout and configuration
10.6.5 Program or debug when power supply not from ST-LINK/V2-1
Before connecting the USB cable from ST-LINK/V2-1 CN13 to the PC, it is mandatory to
power the board using the user USB OTG FS connector CN9 or the VIN pin of Arduino
connector CN16. Proceeding this way ensures that the enumeration succeeds thanks to the
external power source.
The following power-sequence procedure must be respected:
1.Put a jumper in JP4 at location U5V to use power from user USB CN9 or at location
E5V to use power from VIN of Arduino connector CN16.
2. Connect the corresponding external power source.
3. Check the green LED LD8 is turned On.
4. Connect the PC to ST-LINK/V2-1 USB connector CN13.
If this order is not respected, the board may be powered by VBUS first from ST-LINK, and
the following risks may be encountered:
•If more than 500 mA current is needed by the board, PC may be damaged or current is
limited by PC. As a consequence the board is not powered correctly.
•500 mA is requested at the enumeration, so there is a risk that the request is rejected
and enumeration does not succeed if PC cannot provide such current.
10.7 Clock sources
Two clock sources are used by STM32L4R9AI: one on LSE input and another on HSE input.
LSE clock source
The available clock source is X1, 32 kHz crystal for the STM32L4R9AI embedded RTC.
HSE clock source
The second clock source available by default is X2, 16 MHz crystal for the STM32L4R9AI
HSE system clock.
Note that another HSE clocking option is available on PCB: MCO output from STLINK MCU
to STM32L4R9AI HSE input. Please refer to
10.8 Reset Source
The general reset of 32L4R9IDISCOVERY is active low. The reset sources are listed below:
•Reset button B1
•Embedded ST-LINK/V2-1, SW1 micro-switch set to On (default setting)
•Arduino compatible connector CN16 pin 3
The general reset is connected to following peripheral reset functions:
•STM32L4R9AI MCU reset
•Octo-SPI Flash reset
•MFX_V3 reset
•Camera reset
Appendix B: Solder bridges.
DocID030906 Rev 223/78
77
Page 24
Hardware layout and configurationUM2271
10.9 Boot configuration
After reset, STM32L4R9AI boots from one of the three different embedded memory
locations, depending on BOOT0 and BOOT1 bits:
•Boot from the main Flash memory (MCU internal Flash). This is the default
configuration.
•Boot from the system memory ISP (in-system programming).
•Boot from the SRAM1.
On 32L4R9IDISCOVERY board, the boot configuration of the MCU is controlled by the
BOOT0 signal on PH3 pin.
BOOT0 is by default grounded through the R15 pull-down resistor.
It is possible to set BOOT0 high by removing resistor R15 and populating resistor R16 with
a 10K resistor.
Please check below Tab l e 10 for other boot modes.
Table 10. Boot modes
nBOOT1
FLASH_OPTR[23]
XX01
XX01
X1X0
0X11
00X0
1X11
10X0
nBOOT0
FLASH_OPTR[27]
10.10 Audio codec
A Cirrus codec CS42L51-CNZ U26 connected to the SAI1 interface of STM32L4R9AI offers
possibility to connect a stereo headphone or headset with a mono analog microphone.
BOOT0 pin
PH3
nSWBOOT0
FLASH_OPTR[26]
Boot Memory Space Alias
Main Flash memory is selected
as boot area
System memory is selected as
boot area
Main Flash memory is selected
as boot area
Embedded SRAM1 is selected
as boot area
Embedded SRAM1 is selected
as boot area
System memory is selected as
boot area
System memory is selected as
boot area
The I²C-bus addresses of CS42L51-CNZ are 0x95 and 0x94.
10.11 DFSDM
Two ST-MEMS MP34DT01TR digital microphones U1 and U2 are available on
32L4R9IDISCOVERY. The two microphones are located at a distance of 21
other. They are connected to the STM32 DFSDM by the PC2 port, generating the clock, and
24/78DocID030906 Rev 2
mm from each
Page 25
UM2271Hardware layout and configuration
by PB12 port, collecting the PDM interleaved data. These microphones are powered by
MIC_VDD (PH2 of STM32L4R9AI).
The two DFSDM interface signals (clock and data), are also accessible on the STMod+
connector CN1. Before using STMod+, the user must follow the recommendations below:
•If STMod+ pin 17 is used, SB1 (DOUT) must be disconnected first.
•If STMod+ pins 18 or 20 are used, MIC_VDD GPIO (PH2) must be activated at high
level first.
10.12 PSRAM
Two PSRAM footprints are supported on the design, both connected to STM32L4R9AI FMC
interface:
•A 16-Mbit asynchronous PSRAM (U5), using up to A19 address, is soldered by default.
Reference is IS66WV1M16EBLL-55BLI.
•A 32-Mbit synchronous PSRAM (U6), using up to A20 address, may be used.
Reference is IS66WVC2M16ECLL-7010BLI.
By default, this PSRAM (U6) is exclusive with CAMERA function (due to DCMI_D4
function multiplexed with A20 of MCU). In case CAMERA is used at the same time than
PSRAM, it is possible to change two solder bridges to deactivate A20 on PSRAM (tied
to high, usable density 16 Mbits) and DCMI_D4 is used for CAMERA.
Note:Limitation: the two PSRAM are not compatible with JP7 setting at +1V8.
See Appendix B: Solder bridges for possible PSRAM configuration change.
10.13 USB OTG FS
32L4R9IDISCOVERY supports USB OTG FS (full-speed) communication via the USB
Micro-AB connector (CN9) and USB power switch (U16) connected to VBUS. The board
can be powered by this USB connection at 5
A green LED LD6 is lit in one of the following cases:
•Power switch (U16) is On and 32L4R9IDISCOVERY works as a USB host
•VBUS is powered by another USB host when 32L4R9IDISCOVERY works as a USB
device.
The red LED LD7 is lit when over-current occurs.
10.13.1 32L4R9IDISCOVERY as USB device
When the board works as a USB device, it can be powered by the 5 V DC VBUS of this USB
OTG FS connection (jumper JP4 pins 5 and 6 must be connected in position U5V). The
green LEDs LD6 VBUS and LD8 PWR are lit on to confirm the 5
V DC with 625 mA current limitation.
V presence.
DocID030906 Rev 225/78
77
Page 26
Hardware layout and configurationUM2271
10.13.2 32L4R9IDISCOVERY as USB host
When the board works as a USB host, it supplies the 5 V to the USB peripheral using one of
the following sources:
•ST-LINK/V2-1 USB Micro-B connector CN13 (jumper put in STLK location of JP4)
•an external 5 V source connected to pin 5 of the Arduino connector CN16 (jumper put
in ARD location of JP4)
•an external source between 7 V and 11 V, connected to VIN pin of Arduino connector
CN16 (jumper put in E5V location of JP4)
The green LED LD8 is lit on to confirm the presence of the 5 V source.
The power switch STMPS2141STR is controlled by the port MFX_GPIO13 to deliver the 5 V
power to the USB device connected to the USB connector CN9. When MFX_GPIO13 is
pulled down to ground, the power switch is closed, and the green LED LD6 confirms the 5
presence for the USB device. The red LED LD7 FAULT is lit when an over-current occurs.
For more details please refer to Section 10.6: Power supply.
V
10.14 Octo-SPI Flash memory
A 512-Mbit Octo-SPI user Flash memory (MX25LM51245GXDI00 from MACRONIX) is
connected to OCTOSPIM_P2 interface of STM32L4R9AI. By default, OCTOSPI_RESET of
Flash memory has been connected to the general reset of 32L4R9IDISCOVERY.
See Appendix B: Solder bridges for possible Octo-SPI Flash configuration change.
Note:Limitation: the Octo-SPI Flash memory is not compatible with JP7 setting at +1V8.
10.15 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 CN13. The virtual COM port settings are configured as
follow: 115200
bps, 8-bit data, no parity, one stop bit, no flow control.
10.16 Buttons and LEDs
The blue button B2 is a four-directions 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 (Select function) is connected to a wake-up pin of
the microcontroller PC13. The other four directions are mapped on MFX GPIOs.
The black button B1 near the display is the Reset button. It is used to reset the board and
can wake-up MCU from standby and shutdown IDD measurement modes.
Two user LEDs located near the camera connector CN2 are available for the user (see
Figure 4): LD1, LD2, from left to right, with orange and green color respectively. To light on a
LED, a low logic state 0 must be written in the corresponding GPIO.
•LD1 (orange) is managed by MFX function
•LD2 (green) is managed by STM32L4R9AI main MCU
26/78DocID030906 Rev 2
Page 27
UM2271Hardware layout and configuration
Table 11. LD1 and LD2 details
LEDMCU port controlcolor
LD1PB0 (MFX_GPIO0 from MFX)Orange
LD2PH4 (from main MCU)Green
Other LEDs are present on the 32L4R9IDISCOVERY. Find below a summary list of all
buttons and LEDs, with their description.
ReferenceColorFunctionComment
B1blackRESETFor MCU, OCTO-SPI Flash, MFX_V3, CAMERA
B2blue
LD1orangeUSER1MFX_GPIO0, PB0
LD2greenUSER2PH4
Table 12. Buttons and LEDs
SELECTwith Wake-up alternate function, PC13
UPMFX_GPIO1, PB1
DOWNMFX_GPIO2, PB2
RIGHTMFX_GPIO3, PB3
LEFTMFX_GPIO4, PB4
LD3greenARDUINOPB13
LD4red/greenST-LINK COMGreen during communication
LD5redST-LINK USB FAULTCurrent higher than 625 mA
LD6greenVBUS USB OTG FSStatus also available on PA9
LD7redUSB OTG FS OVCROvercurrent detection, also on MFX_GPIO14, PB14
LD8green5V POWER-
DocID030906 Rev 227/78
77
Page 28
ConnectorsUM2271
11 Connectors
11.1 Arduino connectors CN10, CN11, CN16 and CN17
CN10, CN11, CN16 and CN17 are female connectors compatible with Arduino Uno
Revision 3 standard. Most of shields designed for Arduino can fit to 32L4R9IDISCOVERY
board.
Left connectorsRight connectors
Table 13. Arduino compatible connectors
CN No.
CN16
Power
Pin
No.
1--E5V testSPI2_SCKPB13D136
2IOREF-VDDSPI2_MISOPB14D125
3NRSTNRSTReset
43V3 -
55V-5Vinput/outputTIM8_CH1NPH13D92
6GND-Ground-PH15D81
7GND-Ground-
8VIN -
1A0PA7ADC1_IN12TIM5_CH2PA1D56
Pin
Name
MCU
Pin
-
-TIM3_CH1PB4D67
FunctionFunction
I2C3_SCLPG7D1510
I2C3_SDAPG8D149
AVD D-AVDD8
Ground-GND7
TIM3_CH2,
SPI2_MOSI
3V3output
(note 1)
+6V to +9V
power input
(note 2)
TIM5_CH4,
SPI2_NSS
-
-PA4D78
MCU
Pin
PB15D114
PI0D103
Pin
Name
Pin
No.
CN No.
CN10
Digital
2A1PC4ADC1_IN13-PG6D45
3A2PC3ADC1_IN4TIM15_CH2PF10D34
4A3PB0ADC1_IN15-PG11D23
CN17
Analog
5A4
PA0 or
PG8
(note 3)
PA5 or
6A5
28/78DocID030906 Rev 2
PG7
(note 3)
ADC1_IN5
or
I2C3_SDA
(note 3)
ADC1_IN10
or
I2C3_SCL
(note 3)
LPUART1_TXPC1D12
LPUART1_RXPC0D01
CN11
Digital
Page 29
UM2271Connectors
1. The 3V3 on ARD connector PIN4 is not a power input for 32L4R9IDISCOVERY board, to simplify power architecture.
2. The external voltage applied to pin VIN should be in the range 6 to 9V at 25°C ambient temperature. If a higher voltage is
applied on the regulator U15, it may overheat and could be damaged.
3. By default, pin 5 and pin 6 of CN17 connector are connected to ADC MCU input ports PA0 and PA5 respectively, thanks to
configuration of solder bridges: SB33 and SB35 closed, SB32 and SB34 opened. In case it is necessary to connect I2C
interface signals on pins 5 and 6 of CN17 instead of ADC inputs, open SB33 and SB35, and close SB32 and SB34.
VREF+, the voltage reference used by the internal DAC and ADC of STM32L4R9AI, has
three different power sourcing capabilities:
•from STM32L4R9AI MCU Internal buffer generation (Default). VREFBUF internal ADC
/ DAC voltage reference is set to 2.5V by default.
•from an external Arduino shield, connected to connector CN10. In that case, SB27
needs to be connected to bring AVDD on VREF+, a 100nF is necessary on C48 and
VREFBUF needs to be de-activated.
•from a VDDA power supply generated on 32L4R9IDISCOVERY board. VDDA is also
connected to VDDUSB of STM32L4R9AI. In that case, mounting a 0 ohm resistor on
R14 is necessary. VREFBUF needs to be de-activated. A jumper JP3 also needs to be
set as below description.
JumperSettingDescription
Table 14. JP3, VDDA and VDDUSB, settings
Default setting.
JP3
Jumper on PIN1/2, VDDA get power from +3V3
VDDA
Setting
Jumper on PIN2/3, VDDA get power form VDD_MCU
(See warning below)
Warning:When VDDA=VDD_MCU and if VDD_MCU=1.8 V (check JP7
setting), there will be huge leakage current and a risk of
damaging MCU I/Os in case 3.3 V logic level is connected to
ADC input I/Os of STM32L4R9AI. Also, ADC measurements
will not be functional in default configuration
Caution:The I/Os of STM32 microcontroller are 3V3 compatible instead of 5 V for Arduino Uno.
Note:Limitation: the Arduino Uno Revision 3 is not compatible with JP7 setting at +1V8.
See Appendix B: Solder bridges for possible Arduino configuration change.
DocID030906 Rev 229/78
77
Page 30
ConnectorsUM2271
06Y9
ϭ
Ϯ
ϲϬ
ϱϵ
11.2 DSI display, backlight and touch panel connector CN4
All the necessary signals to interface with round DSI display board are available through the
DSI V3 connector CN4.
Figure 10. DSI display connector CN4
FunctionGPIO portSignal name
General ground-GND12NC--
Differential DSI
clock
Differential DSI
clock
General ground-GND78DSI_D2_P-
Differential DSI
data 0
General ground-GND1314DSI_D3_P-
Differential DSI
data 1
-DSI_CK_P34TOUCH_INTMFX_GPIO9
-DSI_CK_N56GND-
-DSI_D0_P910DSI_D2_N-
-DSI_D0_N1112GND -
-DSI_D1_P1516DSI_D3_N-
-DSI_D1_N1718GND -
General ground-GND1920NC--
Power output-+5v2122SPI_CSPH14
Table 15. DSI display connector CN4
CN6 pin
number
Signal nameGPIO portFunction
Touch panel
interrupt
General
ground
reference
Not
connected
Not
connected
General
ground
Not
connected
Not
connected
General
ground
SPI chip
select
30/78DocID030906 Rev 2
Page 31
UM2271Connectors
Table 15. DSI display connector CN4 (continued)
FunctionGPIO portSignal name
Power output-+5v2324SPI2_SCKPB13SPI clock
--NC2526SPI2_MOSIpPB15SPI data
SM3321 ground -BLGND2728SPI_DCXPB14
SM3321 ground -BLGND2930NC--
--NC3132RESERVED--
--NC3334NC--
--NC35363V3-
--NC3738VDDIO-
--NC3940I2C1_SDAPG13
--NC4142NC--
DSI_SWIRE
control output
--NC4546NC--
--NC4748NC--
DSI tearing
effect input
PA8DSI_SWIRE4344I2C1_SCLPB6
PF11TE4950NC--
CN6 pin
number
Signal nameGPIO portFunction
SPI
data/control
3V3 voltage
reference
IOVDD
reference
Touch panel
I2C data
Touch panel
I2C clock
--NC5152NC--
DSI Backlight
control output
--NC5556NC--
DSI and Touch
panel Reset
output
--NC59601V8-
General ground-GND6162GND-
General ground-GND6364GND-
PB1DSI_BL_CTRL 5354NC--
MFX_
GPIO10
DSI_RESET5758NC--
See Appendix B: Solder bridges for possible DSI display configuration change.
1.8V voltage
reference
General
ground
General
ground
DocID030906 Rev 231/78
77
Page 32
ConnectorsUM2271
11.2.1 DSI AMOLED display
Warning:Permanent image sticking may occur if AMOLED displays
same image for an extended period of time.
The DSI display is based on a round AMOLED Touch sensitive panel of 1.2 inch and
390x390
Optoelectronics. It displays up to 16M colors. The round DSI display module board
reference is MB1314. The DSI interface of MB1314 is only one data-lane width and a clock
lane, but the 32L4R9IDISCOVERY board supports DSI displays with up to two data-lane
width. The DSI_V3 connector interface also enables the use of dedicated low power modes
of display, thanks to the available SPI2 interface (MB1314 does not use it). It is also possible
to use some of USART3 signals to control a low power mode (SB6 and SB8 are respectively
exclusive with SB13 and SB7).
The DSI_TE signal PF11 is used as an input of the main microcontroller connected to the
display signal TE (tearing effect). DSI_TE signal is used to synchronize the refresh of the
display memory by the microcontroller with the display scan, this to avoid visible artefacts.
DSI_3V3_PWRON signal (MFX_GPIO8, low level active) controls the 3V3 level Power
supplies provided on the DSI_V3 connector interface. DSI_1V8_PWRON signal
(MFX_aGPIO2) controls the 1V8 level Power supplies provided on the DSI_V3 connector
interface. Both shall be used to enable or disable display, TP and PSRAM. They allows to
disconnect those peripherals when doing low power IDD measurement.
pixels. The display module reference is IEG1120TB103GF-001 from Govisionox
DSI_RESET signal (MFX_GPIO10, low level active) controls the reset for the display and
the Touch panel.
An optional DSI_SWIRE signal PA8 offers additional possibility to control the voltage for any
display supply during initialization (not used by MB1314 by default). PA8 is exclusive with
another function from 32L4R9IDISCOVERY board: CAMERA clock Interface (MCO), which
is the default setting.
11.2.2 Backlight and OLED power supplies generation
This function is handled by the Power driver circuit SM3321, included on the MB1314 DSI
display Board. SM3321 is a switching mode boost converter supplied by the 3V3 rail of the
DSI_V3 connector interface. SM3321 is controlled either by the AMOLED driver circuit itself
(default configuration), either by DSI_BL_CTRL (PB1) from main MCU, either from the
DSI_SWIRE (PA8) interface from main MCU. SM3321 provides all necessary voltage
references to AMOLED display.
If used, the signal DSI_BL_CTRL switches on the backlight with a high level. It is possible to
dim the backlight intensity by applying a low frequency PWM signal to DSI_BL_CTRL (1 to
10
kHz typically).
11.2.3 Touch panel
The touch panel is a capacitive touch panel using an I2C interface. The touch panel IC
reference is FT3267, and is located on the MB1314 board. The FT3267 I2C1 default
addresses are 0x71 and 0x70.
32/78DocID030906 Rev 2
Page 33
UM2271Connectors
06Y9
Touch panel interrupt output DSI_TOUCH_INT is connected to MFX_GPIO9. It is used as
touch panel detection indication. MFX_GPIO10 resets capacitive touch panel and DSI
display.
11.3 USB OTG FS connector CN9
An USB OTG full speed communication link is available at USB Micro AB receptacle
connector CN9. Micro AB receptacle enables USB Host and USB Device features.
MFX_GPIO13 is used to enable on-board VBUS power when in Host mode.
Figure 11. USB OTG FS Micro-AB connector CN9
Pin numberDescriptionPin numberDescription
1VBUS (PA9)4ID (PA10)
2DM (PA11)5GND
3DP (PA12)--
Table 16. USB OTG FS Micro-AB connector CN9
11.4 ST-LINK/V2-1 USB Micro-B connector CN13
The USB connector CN13 is used to connect the embedded ST-LINK/V2-1 to the PC.
DocID030906 Rev 233/78
77
Page 34
ConnectorsUM2271
06Y9
Figure 12. USB Micro-B connector CN13
Pin numberDescriptionPin numberDescription
1VBUS (power)4GND
2DM5,6Shield
3DP--
Table 17. USB Micro-B connector CN13
11.5 microSD card connector CN6
microSD cards with 4 GBytes or more capacity are inserted in the receptacle CN6. Four
data bits of the SDMMC1 interface, CLK and CMD signals of the STM32L4R9AI are used to
communicate with the microSD card at +3V3 only. The card insertion is detected by the
MFX_GPIO5: when a microSD card is inserted, the logic level is 0, otherwise it is 1.
34/78DocID030906 Rev 2
Page 35
UM2271Connectors
06Y9
Figure 13. microSD connector CN6 (top view)
Pin
number
1SDMMC1_D2 (PC10)6GND
2SDMMC1_D3 (PC11)7SDMMC1_D0 (PC8)
3SDMMC1_CMD (PD2)8SDMMC1_D1 (PC9)
4VDD (+3V3)9µSD_DETECT (MFX_GPIO5)
5SDMMC1_CLK (PC12)10-11-12GND (casing)
Table 18. microSD connector CN6
Description
Pin
number
Note:Limitation: the microSD is not compatible with JP7 setting at +1V8.
11.6 STMod+ connector CN1
The standard 20-pin STMod+ connector is available on 32L4R9IDISCOVERY board to
increase compatibility with external boards and modules from the Ecosystem of
microcontrollers. By default, it is designed to support an ST dedicated Fanout board which
allows connecting different modules or board extensions from different manufacturers.
Fanout board also embeds a 3V3 regulator and I2C level shifters. Schematics of Fanout
board is available in
Figure 35.: Fanout board (MB1280). For more detailed information,
Description
DocID030906 Rev 235/78
77
Page 36
ConnectorsUM2271
06Y9
)URQWYLHZ
please refer to ST Fanout board user manual and to relevant datasheets of associated
modules.
For details about STMod+ interface, please refer to STMod+ connector interface
specification.
Figure 14. STMod+ connector CN1
Pin
number
Table 19. STMod+ connector CN1
Description
Pin
number
Description
1SPI2_CS/USART3_CTS (PA6)11INT (PC6)
2SPI2_MOSIp/USART3_TXD (PB15/PB10)12RST (PI7)
3SPI2_MISOp/USART3_RXD (PB14/PB11)13ADC (PA4)
4SPI2_SCK/USART3_RTS (PB13/PA15)14PWM (PA5)
5GND15+5V
6+5V16GND
7I2C3_SCL (PG7)17GPIO (PB12)
8SPI2_MOSIs (PI3)18GPIO (PC2)
9SPI2_MISOs (PI2)19GPIO (PC7)
10I2C3_SDA (PG8)20GPIO (PC2)
In order to be able to support selection of SPI or UART functions connection on STMod+ by
software, a quad SPDT switch has been added. It is controlled by two GPIOs from MFX
circuit and enables MCU signal selection for pins 2, 3 and 4. By default, STMod+ connector
is selected, and STMOD+_SEL_0 and STMOD+_SEL_1 of MFX circuit are set to support
one of the STMod+ interface configuration.
Pin numberSPIUART / SPI
Table 20. Quad SPDT switch configuration
(1)
UART
STMOD+_SEL_0 (GPIO6 of MFX_V3)011
STMOD+_SEL_1 (GPIO7 of MFX_V3)001
STMod+ pin 1 (directly connected to PA6)SPI_CSSPI_CSUSART3_CTS
1. UART / SPI defines default configuration for STMOD+_SEL_0 and STMOD+_SEL_1.
(1)
UART
Please, take care that this connector shares many GPIOs with other functions on the Board:
for more detailed information please refer to
Appendix A: GPIO assignment and sharing.
In addition, to have a quick look at STMod+ GPIO sharing and multiplexing, and to get a
quick view on other Alternate functions available on its pins, please refer to
Appendix C:
STMod+ GPIO sharing and multiplexing.
Note:Limitation: The STMod+ interface is not compatible with JP7 setting at +1V8.
Note:Limitation: if STMod+ pin 17 is used, please take care to disconnect SB1 first. If STMod+ pin
18/20 is used, please activate MIC_VDD GPIO (PH2) at high level first.
11.7 PMOD connector CN3
The standard 12-pin PMOD connector is available on STM32L4R9I-DISCO Discovery board
to support low frequency, low I/O pin count peripheral modules. The PMOD interface which
has been implemented on STM32L4R9I-DISCO Discovery board is compatible with the
PMOD type 2A & 4A I/O signal assignment convention.
Figure 15. PMOD connector CN3
Pin numberDescriptionPin numberDescription
1SPI2_CS/USART3_CTS (PA6)7INT (PC6)
2SPI2_MOSIp/USART3_TXD (PB15/PB10)8RESET (PI7)
3SPI2_MISOp/USART3_RXD (PB14/PB11)9NA
4SPI2_SCK/USART3_RTS (PB13/PA15)10NA
5GND11GND
Table 21. PMOD connector CN3
63V3123V3
DocID030906 Rev 237/78
77
Page 38
ConnectorsUM2271
06Y9
In order to be able to support selection of SPI or UART functions connection on PMOD by
software, a quad SPDT switch has been added on board. It is controlled by two GPIOs from
MFX_V3 circuit and enables MCU signal choice for pins 2, 3 and 4: refer to
Tabl e 20
STMod+ chapter for switch description details (pin 1, 2, 3 and 4 of PMOD are common with
STMod+).
By default, STMod+ connector is selected, so STMOD+_SEL_0 and STMOD+_SEL_1
needs to be modified to support one of the PMOD interface configuration. Also, PMOD
shares GPIOs with other functions of the Board: for more detailed information please refer
to
Appendix A: GPIO assignment and sharing.
Note:Limitation: the PMOD interface is not compatible with JP7 setting at +1V8.
11.8 Camera module connector CN2
An 8-bit camera module function is supported thanks to the 30-pin dedicated ZIF connector
CN2. The reference of camera module to be used is STM32F4DIS-CAM. This module has
to be connected with caution before powering on the STM32L4R9I-DISCO Discovery board.
The camera module I²C addresses are 0x61 and 0x60. Camera can be used by default, but
one might take care about GPIO sharing and multiplexing with other function, in order to
program the good configuration. For more detailed information please refer to
GPIO assignment and sharing.
Appendix A:
Note:Limitation: the camera is not compatible with JP7 setting at +1V8.
Figure 16. Camera module connector CN2
Pin numberDescriptionPin numberDescription
1GND16GND
2NC17DCMI_HSYNC (PA4)
3NC18NC
4DCMI_D0 (PC6)19DCMI_VSYNC (PI5)
5DCMI_D1 (PC7)20VDD
6DCMI_D2 (PH11)21DCMI_CLK (PA8)
Table 22. Camera module connector CN2
7DCMI_D3 (PH12)22NC
8DCMI_D4 (PE4)23GND
9DCMI_D5 (PI4)24NC
38/78DocID030906 Rev 2
Page 39
UM2271Connectors
06Y9
Table 22. Camera module connector CN2 (continued)
Pin numberDescriptionPin numberDescription
10DCMI_D6 (PB8)25DCMI_PWR_EN (MFX_GPIO12)
11DCMI_D7 (PI7)26DCMI_NRST (NRST from MCU)
12NC27I2C1_SDA (PG13)
13NC28I2C1_SCL (PB6)
14GND29GND
15DCMI_PIXCK (PH5)30VDD
11.9 TAG connector CN8
The TAG connector footprint CN8 is used to connect STM32L4R9AI microcontroller for
programming or debugging the board.
Figure 17. TAG connector CN8
Pin numberDescriptionPin numberDescription
1VDD10NRST (PH3, RESET#)
2SWDIO (PA13)9NA
3GND8NA
4SWCLK (PA14)7NA
5GND6SWO (PB3)
11.10 SWD header CN5
The 6-pin SWD header is used to program or debug an MCU in an external application
board using a dedicated cable connected to it. To use this SWD header interface, pins 2 and
3 of JP10 need to be connected with a jumper. Furthermore, SW1 must be set in OFF
position while R24 and R31 need to be disconnected.
By default, STLINK/V2-1 is used to program or debug on board MCU. Pin1 and 2 of JP10
are connected, SW1 is in ON position, R24 and R31 are connected.
Table 23. TAG connector CN8
DocID030906 Rev 239/78
77
Page 40
ConnectorsUM2271
06Y9
)URQWYLHZ
Table 24. SWD header CN5
Pin numberDescriptionPin numberDescription
1VDD4SWDIO (PA13)
2SWCLK (PA14)5NRST
3GND6SWO (PB3)
11.11 EXT_I2C connector CN7
The EXT_I2C connector socket is used to connect external modules to I2C1 interface or to
monitor the I2C1 interface.
Figure 18. EXT_I2C connector CN7
Table 25. EXT_I2C connector CN7
Pin numberDescriptionPin numberDescription
1I2C1_SDA (PG13)5+3V3
2NC6NC
3I2C1_SCL (PB6)7GND
4EXT_RESET (MFX_GPIO11)8NC
As I2C1 is available for external use, it is important to note that those following I2C1
applications and addresses are already used on board:
Depending on the I2C module plugged into CN7, I2C1 could even be used up to
Fast mode + (1 MHz).
40/78DocID030906 Rev 2
Page 41
UM2271Connectors
06Y9
ϯ
Ϯ
ϲ
ϰ
ϱ
ϭ
11.12 Stereo headset and headphone jack CN12
A stereo headphone or a stereo headset with analog microphone is pluggable into the
3.5
mm standard jack socket CN12.
Figure 19. Stereo headset with microphone jack CN12
Pin numberDescriptionStereo headset with microphone pinning
6OUT_LeftSPK_L (33 ohms typ.)
4OUT_RightSPK_R (33 ohms typ.)
3GNDGND
2IN_AnalogMicrophone
5NC
1NC
Table 27. Audio jack connector CN12
NA
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 into the codec by the pin AIN3A.
DocID030906 Rev 241/78
77
Page 42
42/78DocID030906 Rev 2
Appendix A GPIO assignment and sharing
GPIO assignment and sharingUM2271
Table 28. 32L4R9IDISCOVERY GPIO assignment and sharing
or = Indicate shared or exclusive functions or interfaces on a GPIO port
(NU) = Function mode which is not usable by default
// = Highlights two exclusive functions available for one interface
(xxx) = Name of the STM32L4R9AI GPIO Alternate function used on this interface
(NU)
-- -
UM2271GPIO assignment and sharing
Page 48
48/78DocID030906 Rev 2
Table 29. MFX_V3 GPIO assignment (LQFP48)
PinGPIO portImplemented functions Application function name
PinGPIO portImplemented functions Application function name
46PB9MFX_IRQ_OUTMFX_IRQ_OUT
21PB10--
22PB11--
25PB12MFX_IDD_MEASIDD_MEAS
26PB13MFX_GPIO13USB_OTGFS_PPWR_EN
27PB14MFX_GPIO14USB_OVER
28PB15MFX_GPIO15AUDIO_Codec_RESET
2PC13-ANTI_TAMPMFX_WAKEUPMFX_WAKEUP
3PC14-OSC32_INMFX_IDD_CALCAL
4PC15-OSC32_OUTMFX_IDD_SH0SH0
5PH0-OSC_INMFX_IDD_SH1SH1
6PH1-OSC_OUTMFX_IDD_SH2SH2
UM2271GPIO assignment and sharing
Page 50
50/78DocID030906 Rev 2
Appendix B Solder bridges
Following Tabl e 30 describes each solder bridge. The default state is indicated in bold. ON state means a 0 ohm resistor is
soldered. OFF state means SBxx is open.
Solder bridgesStateDescription
Solder bridgesUM2271
Table 30. 32L4R9IDISCOVERY solder bridges
SB2 (ARD_D13 Green LED)
SB27 (ARD_AVDD on VREF+)
SB32, SB34 (I2C3 on ARD_A4/A5)OFFI2C3 disconnected from ARD_A4/A5, exclusive with SB33, SB35
SB33, SB35 (ADCs on ARD_A4/A5)ONADCs inputs connected to ARD_A4/A5, exclusive with SB32, SB34
SB7, SB13 (USART3 on DSI display)OFFDisconnects USART3_CK/TX from pins 24/26 of DSI V3 connector, exclusive with SB6 and SB8
SB6, SB8 (SPI2 on DSI display)ONConnects SPI2_SCK/MOSI to pins 24/26 of DSI V3 connector, exclusive with SB7 and SB13
SB23 (VDD on OCTOSPI Flash)
SB25 (OCTOSPI_ECS)
SB24 (OCTOSPI_RESET)
SB1 (DFSDM_1_DATIN1)
SB3 (RESERVED)ONReserved, but can be removed if necessary (PSRAM_A20 to U6)
SB4 (RESERVED)OFFReserved, do not modify (PSRAM_A20 to VDD)
SB16, SB17, SB18, SB19, SB20, SB21
(RESERVED)
ONEnables ARD Green LED control by ARD_D13
OFFDisables ARD Green LED
ONConnects VREF+ from MCU to ARD_AVDD
OFFARD_AVDD not connected
ONConnects OCTOSPI Flash power rails to VDD
OFFDisconnects VDD from OCTOSPI Flash
ONECS function active (need external pull-up)
OFFECS function not active (no external pull-up)
ONOCTOSPI Flash Reset is connected to General Reset of Board
OFFOCTOSPI Flash Reset not connected to General Reset of Board
ONPB12 (DFSDM_1_DATIN1) is connected to Digital Microphones by default
OFFPB12 (DFSDM_1_DATIN1) is usable by STMod+ on pin 17
-SDA3-LRX1SDA3-PG81020 PC2*-GPIOsame as pin 18---DF1.CO
Legend:
= DSI = Arduino Uno = Pmod = Alternate Functi ons = STMod+ = CAM = Digital Microp hone = Supply = GND
1. This Table 31 gives description of the signals available on the STMod+ connector
It also shows which signal is shared with other board connector or function
In some boards, Solder bridges (SB) are present to manually select which function is wired by default (but here, please refer to point (3) below)
Analog signals are in brackets [xxx]
The I2C bus on pins 7 / 10 might be shared with built-in discovery slave devices. Please check the slave address of your device when adding it to the bus.
AD1.3 stands for ADC_1_IN3
T1.3N stands for TIM_1_CH3N
DAC1.1 stands for DAC_1_OUT1
MOSI2 stands for SPI2_MOSI
RST stands for RESET
INT stands for INTERRUPT
DF1.C3 stands for DFSM1_CKIN3
SDA3 stands for I2C3_SDA
LTX1 stands for LP_UART1TX
LT2.O stands for LPTIM2_OUT
NSS2 stands for SPI2_NSS
RXC1 stands for CAN_1_RX
SA2.SCKA stands for SAI2_SCLK_A
3. The solder bridges (SB) are available on PCB to select chosen Port, but they are not used by default: Instead of SB, an embedded SPDT quad switch is used to select Port. It is controlled by 2
GPIOs from the MFX_V3 Expander (STMOD+_SEL_0 and _1), please see Table 32 description below (Bold text is default configuration to support MikroBUS modules using MB1280 fan-out board)
Dig
Mic
Page 53
UM2271STMod+ GPIO sharing and multiplexing
Table 32. SPDT quad switch
SPIUART / SPI UART
STMOD+_SEL_0011 STMOD+_SEL_0 is GPIO6 of MFX_V3
STMOD+_SEL_1001 STMOD+_SEL_1 is GPIO7 of MFX_V3
pin 1CSN2CSN2CTS3 pin 1 is connected directly to PA6
pin 2MOSI2TXS3TXS3
pin 3MISO2RXS3RXS3
pin 4SCK2SCK2RTSS3
DocID030906 Rev 253/78
77
Page 54
SchematicsUM2271
Appendix D Schematics
This section provides design schematics for the 32L4R9IDISCOVERY board and design
schematics of the round DSI display and Fanout boards:
Appendix D contains the schematics diagrams listed below:
Figure 22. 32L4R9IDISCOVERY Arduino Uno V3 connectors
WARNING: Some Arduino IOs are shared with other functions:
Following ARD sign als are multiplexed or shared with other functions. In case ARDUINO
UNO is connected, take care that the corresponding features are disconnected or well
configured :
ARD_D7 : DCMI_HSYN C/DE (Camera conflict)
ARD_A5 : STMOD+_PWM (STMod+ / PMOD conflict)
ARD_D15 : I2C3_SCL (shared with STMod+)
ARD_D14 : I2C3_SDA (shared with STMod+)
ARD_D13 : DSI_SPI2_SCK (SPI2_SCK shared wit h STMod+/PMOD and DSI option)
ARD_D12 : DSI_SPI_D/CX (SPI2_MISO shared wi th STMod+/PMOD and DSI option)
ARD_D11 : DSI_SPI2_MOSI (SPI2_MOSI shared w ith STMod+/PMOD and DSI option)
ADC1_IN5
I2C3_SDA
ADC1_IN10
I2C3_SCL
+3V3
ARD_5V
NRST
NRST
WARNING: voltage applied to VIN <11.5V
WARNING: CN16-PIN4 is not a inpu t PWR
CAMERA is exclusive with some STMod+ , PMOD and ARDUINO signals
DCMI_D[0..7]
DCMI_PIXCK
DCMI_HSYNC
DCMI_VSYNC
DCMI_CLK
DCMI_PWR_EN
DCMI_NRST
DCMI_I2C
DCMI_D[0..7]
DCMI_PIXCLK
DCMI_HSYNC
DCMI_VSYNC
PA8
MFX_GPIO12
I2C
SDA
SCL
DCMI_PWR_EN
DCMI_NRST
CAUTION : Following D CMI signals are multiplexed with other
functions. In case CAMERA module is plug ged, take care that the
corresponding features are disconnected or well configu red :
DCMI_D0 : STMod+_INT
DCMI_D1 : DFDATIN3 (STMod+)
DCMI_D4 : PSRAM_A20 (only in case of U6 PSRAM is used)
DCMI_D6 : STMod+_PWM
DCMI_D7 : STMod+_RESET
DCMI_HSYNC/DE : STMod+_ADC and ARD_D7
CAUTION : Following STMod+/PMOD s ignals are multiplexed or shared with other functions. In case
STMod+/PMOD module is plugged, take care that the corresponding features are disconnected or well configured :
(*)
STMOD+/PMOD USART3_TX (PB10) may also use DSI_USART_TX option
STMOD+/PMOD SPI2_MOSIp (PB15) shared with ARD_D11 and DSI_SPI2_MOSI option
STMOD+/PMOD SPI2_MISOp (PB14) shared with ARD_D12 and DSI_SPI_DCX option
STMOD+/PMOD SPI2_SCK (PB13) shared with ARD_D13 and DSI_SPI2_SCK option
STMOD+ I2C3 SCL (PG7) shared with ARD_D15 (I2C3_SCL)
STMOD+ I2C3 SDA (PG8) shared with ARD_D14 (I2C3_SDA)
VDD
R46
10K
R45
10K
PMOD#1
PMOD#2
PMOD#3
PMOD#4
MFX_GPIO6
MFX_GPIO7
PA6
CTS
TX
RTS
CS
MOSI
CLK
SCL
SDA
PB10 (*)
PB15 (*)
PB11
PB14 (*)
PA15
PB13 (*)
USART3_CTS
PB10 (*)
USART3_TX
PB11
USART3_RX
PA15
USART3_RTS
PA6
SPI2_CS
PB15 (*)PC2 (*)
SPI2_MOSIp
PB14 (*)
SPI2_MISOp
PB13 (*)
SPI2_CLK
PG7 (*)
I2C3_SCL
PG8 (*)
I2C3_SDA
PI3
PI2
U21
15
1S1
1
1S2
4
2S1
6
2S2
7
3S1
9
3S2
12
4S1
14
4S2
11
GND
STG3692QTR
1-2SEL
3-4SEL
VCC
SB20
SB16
SB18
SB21
SB17
SB19
C47
1uF
PMOD_SEL_0
PMOD#2
PMOD#3
PMOD_SEL_1
PMOD#4
VDD
3
MOSIp/TX
16
D1
5
MISOp/RX
D2
10
8
D3
13
SCK/RTS
D4
2
STMod+
GND
CN1
1
11
2
12
3
13
4
14
5
15
6
16
7
17
8
18
9
19
10
20
SQT-110-01-F-D-RA
ATOM FH200210C-12000
STMOD+_SEL_0
STMOD+_SEL_1
(*)
STMOD+ INT (PC6) in conflict with DCMI_D0 (Camera)
STMOD+ RESET (PI7) in conflict with DCMI_D7 (Camera)
STMOD+ ADC (PA4) in conflict with ARD_D7 and DCMI_HSYNC (Camera)
STMOD+ PWM (PA5) in conflict with ARD_A5
STMOD+ DFDATIN1 (PB12) in conflict with MEMs microphones (use SB1 in audio page)
STMOD+ DF_CKOUT (PC2) in conflict with MEMs microphones
DFDATIN3
PC7) in conflict with DCMI_D1 (Camera
PMOD#11
+5V
GND+5V
PC6 (*)
PI7 (*)
PA4 (*)
PA5 (*)
PB12 (*)
PC7 (*)
PC2 (*)
PMOD#12
STMOD+_INT
STMOD+_RESET
STMOD+_ADC
STMOD+_PWM
DFDATIN1
DF_CKOUT
DFDATIN3
PMOD
PMOD#1
PMOD#2
PMOD#3
PMOD#4
GNDGND
+3V3+3V3
CN3
1
2
3
4
5
6
SSW-106-02-F-D-RA
ATOM FH254206C-1600
PMOD#11
7
PMOD#12
8
9
10
11
12
UM2271Schematics
UART/SPI
SPIUART
STMOD+_SEL_0
STMOD+_SEL_1
PMOD#1 (PA6)
PMOD#2
PMOD#3
PMOD#4
(*) default configuration to support MikroBus modules using MB1280 fan-out board
The mikroBUS compatible connector is 2.54 mm pitch with a pair of 1x8-pin female
connectors.
Tabl e 33 shows the definition of the pins.
DocID030906 Rev 271/78
77
Page 72
Fanout board (MB1280)UM2271
1. Please refer to Appendix C to check STMod+ pin sharing with other functions of the 32L4R9IDISCOVERY
Table 33. Description of the mikroBUS connectors (CN11 and CN10)
STMod+ connector
CN11 number
STMod+#13-ADCAN11PWMSTMod+#14-PWM
STMod+#12-RSTRST22INTSTMod+#11-INT
STMod+#1-CSCS33RXSTMod+#3-RX
STMod+#4-SCKSCK44TXSTMod+#2-TX
STMod+#9-MISOsMISO55SCLSTMod+#7-SCL
STMod+#8-MOSIsMOSI66SDASTMod+#10-SDA
-+3.3 V77+5 VSTMod+#6#15 +5V
STMod+#5#16 GNDGND88GNDSTMod+#5#16 GND
Function of
mikroBUS
Pin
number
Pin
number
Function of
mikroBUS
The mikroBUS pinout assignment is available at the: http://mikroe.com website.
E.2 ESP-01 Wi-Fi® board compatible connector
The ESP-01 Wi-Fi board connector is 2.54 mm pitch with 2x4-pin female connectors.
Tabl e 34 shows the definition of the pins.
Table 34. Description of the ESP-01 Wi-Fi board connector pins
(1)
STMod+ connector
CN10 number
(1)
STMod+ connector
number
STMod+#5#16 GNDGND18TXDSTMod+#3-RX
STMod+#14GPIO227CH_PDSTMod+#13
STMod+#11GPIO036RSTSTMod+#12-RST
STMod+#2-TXRXD45VCC-
1. Please refer to Appendix C to check STMod+ pin sharing with other functions of the 32L4R9IDISCOVERY.
Function of
ESP-01
Pin
number
Pin
number
Function of
ESP-01
STMod+ connector
E.3 Compatible connectors for the Grove boards
The two connectors of the Grove board are 2.54 pitch with 1x4-pin male connectors, the
part number is 1125S-SMT-4P.
E.3.1 Compatible connector for I2C Grove boards (Fanout CN3)
The CN3 connector is compatible with Grove- Barometer sensor (BMP180) and Grove-LCD
RGB Backlight boards using cable for connection.
Tabl e 35 shows the definition of the pins.
number
72/78DocID030906 Rev 2
Page 73
UM2271Fanout board (MB1280)
Table 35. Description of the I2C Grove board connector pins (CN3)
STMod+ connector NO.Function of Grove CN3Pin number
STMod+#7-SCLSCL1
STMod+#10-SDASDA2
STMod+#6#15 +5 VVCC3
STMod+#5#16 GNDGND4
1. Please refer to Appendix C to check STMod+ pin sharing with other functions of the 32L4R9IDISCOVERY.
E.3.2 Compatible connector for UART Grove boards (Fanout CN2)
The CN2 connector is compatible with Grove-NFC boards using cable for connection.
Tabl e 36 shows the definition of the pins.
1. Please refer to Appendix C to check STMod+ pin sharing with other functions of the 32L4R9IDISCOVERY.
Table 36. Description of the UART Grove board connector pins (CN2)
STMod+ connector Function of Grove CN2Pin number
STMod+#3-RXRX (Grove TX)1
STMod+#2-TXTX (Grove RX)2
STMod+#6#15 +5 VVCC3
STMod+#5#16 GNDGND4
(1)
(1)
DocID030906 Rev 273/78
77
Page 74
Federal Communications Commission (FCC) and Industry Canada (IC) ComplianceUM2271
Appendix F Federal Communications Commission (FCC)
and Industry Canada (IC) Compliance
F.1 FCC Compliance Statement
F.1.1 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.
F.1.2 Part 15.105
This equipment has been tested and found to comply with the limits for a Class A digital
device, pursuant to part 15 of the FCC Rules. These limits are designed to provide
reasonable protection against harmful interference when the equipment is operated in a
commercial environment. This equipment generates, uses, and can radiate radio frequency
energy and, if not installed and used in accordance with the instruction manual, may cause
harmful interference to radio communications. Operation of this equipment in a residential
area is likely to cause harmful interference in which case the user will be required to correct
the interference at his own expense.
F.1.3 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.
F.2 IC Compliance Statement
This device complies with FCC and Industry Canada RF radiation exposure limits set forth
for general population for mobile application (uncontrolled exposure). This device must not
be collocated or operating in conjunction with any other antenna or transmitter.
F.2.1 Compliance Statement
Notice: This device complies with Industry Canada licence-exempt RSS standard(s).
Operation is subject to the following two conditions: (1) this device may not cause
interference, and (2) this device must accept any interference, including interference that
may cause undesired operation of the device.
Industry Canada ICES-003 Compliance Label: CAN ICES-3 (A)/NMB-3(A)
F.2.2 Déclaration de conformité
Avis: Le présent appareil est conforme aux CNR d'Industrie Canada applicables aux
appareils radio exempts de licence. L'exploitation est autorisée aux deux conditions
suivantes : (1) l'appareil ne doit pas produire de brouillage, et (2) l'utilisateur de l'appareil
74/78DocID030906 Rev 2
Page 75
UM2271Federal Communications Commission (FCC) and Industry Canada (IC) Compliance
doit accepter tout brouillage radioélectrique subi, même si le brouillage est susceptible d'en
compromettre le fonctionnement
Étiquette de conformité à la NMB-003 d'Industrie Canada : CAN ICES-3 (A)/NMB-3(A)
DocID030906 Rev 275/78
77
Page 76
CISPR32UM2271
Appendix G CISPR32
G.1 Wa r n i ng
Warning: This device is compliant with Class A of CISPR32. In a residential environment,
this equipment may cause radio interference.
Avertissement: Cet équipement est conforme à la Classe A de la CISPR 32. Dans un
environnement résidentiel, cet équipement peut créer des interférences radio.
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.