The STM32L4P5G-DK Discovery kit is a complete demonstration and development platform for the STMicroelectronics Arm
Cortex®-M4 core-based STM32L4P5AGI6PU microcontroller with four I²C buses, three SPI and six USART ports, CAN port, two
SAI ports, 12-bit ADC, 12-bit DAC, internal 320-Kbyte SRAM and 1-Mbyte Flash memory, two Octo-SPI memory interfaces,
touch-sensing capability, USB OTG FS port, LCD-TFT controller, flexible memory controller (FMC), 8- to 14-bit DCMI interface
and JTAG debugging support.
The STM32L4P5G-DK Discovery kit, shown in Figure 1 and Figure 2, is used as a reference design for user application
development before porting to the final product.
The full range of hardware features available on the board helps users improve application development evaluating all the
peripherals (USB OTG FS, Octo-SPI Flash and PSRAM memory device, eMMC, and others). ARDUINO® Uno V3 and STMod+
connectors provide easy connection to extension shields or daughterboards for specific applications.
An STLINK-V3E is integrated into the board, as the embedded in-circuit debugger and programmer for the STM32 MCU and the
USB Virtual COM port bridge.
®
Figure 1. STM32L4P5G-DK top view
Figure 2. STM32L4P5G-DK bottom view
Pictures are not contractual.
UM2651 - Rev 1 - December 2019
For further information contact your local STMicroelectronics sales office.
www.st.com
Page 2
1Features
•STM32L4P5AGI6PU Arm® Cortex® core-based microcontroller featuring 1 Mbyte of Flash memory and 320
Kbytes of RAM in UFBGA169 package
•240x240 64-color LCD with RGB interface (Connector only)
•4-Gbyte onboard eMMC
•On-board current measurement
•SAI audio codec (Footprint only)
•ST-MEMS digital microphone (Footprint only)
•512-Mbit Octo-SPI NOR Flash memory with DDR mode
•64-Mbit Octo-SPI PSRAM memory with DDR mode
•2 user LEDs
•Reset buttons
•4-direction joystick with a selection button
•Board connectors:
–8-bit camera (Footprint only)
–Stereo headset jack (Footprint only)
–USB with Micro-AB
–User interface through USB Virtual COM port
–Arm® Cortex® 10-pin 1.27 mm-pitch debug connector over STDC14 footprint
–ARDUINO® Uno V3 expansion connector
–STMod+ expansion connector
•Flexible power-supply options:
–ST-LINK USB V
•On-board STLINK-V3E debugger/programmer with USB re-enumeration capability: mass storage, Virtual
COM port, and debug port
•Microcontroller supply voltage: fixed 3.3 V and extern SMPS to generate Vcore logic supply
•Comprehensive free software libraries and examples available with the STM32CubeL4 MCU Package
•Support of a wide choice of Integrated Development Environments (IDEs) including IAR™, Keil®, and GCCbased IDEs
Note:Arm is a registered trademark of Arm Limited (or its subsidiaries) in the US and/or elsewhere.
, USB OTG connector, or external sources
BUS
UM2651
Features
UM2651 - Rev 1
page 2/33
Page 3
2Ordering information
To order the STM32L4P5G-DK Discovery kit, refer to Table 1. Additional information is available from the
datasheet and reference manual of the target STM32.
Order codeBoard referenceTarget STM32
STM32L4P5G-DKMB1535STM32L4P5AGI6PU
2.1Product marking
Evaluation tools marked as “ES” or “E” are not yet qualified and therefore 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 designs or in production.
“E” or “ES” marking examples of location:
•On the targeted STM32 that is soldered on the board (For an illustration of STM32 marking, refer to the
STM32 datasheet “Package information” paragraph at the www.st.com website).
•Next to the evaluation tool ordering part number that is stuck or silk-screen printed on the board.
This board features a specific STM32 device version, which allows the operation of any bundled commercial
stack/library available. This STM32 device shows a "U" marking option at the end of the standard part number
and is not available for sales.
In order to use the same commercial stack in his application, a developer may need to purchase a part number
specific to this stack/library. The price of those part numbers includes the stack/library royalties.
UM2651
Ordering information
Table 1. Ordering information
2.2Codification
The meaning of the codification is explained in Table 2. The order code is mentioned on a sticker placed on the
top side of the board.
STM32TTXXY-DKDescriptionExample: STM32L4P5G-DK
STM32TTMCU series in STM32 32-bit Arm Cortex MCUsSTM32L4+ Series
XXMCU product line in the seriesSTM32L4P5
Y
Table 2. Codification explanation
STM32 Flash memory size:
•G for 1 Mbyte
1 Mbyte
UM2651 - Rev 1
page 3/33
Page 4
3Development environment
3.1System requirements
UM2651
Development environment
•Windows® OS (7, 8 and 10), Linux® 64-bit, or macOS
•USB Type-A to Micro-B cable
Note:
macOS® is a trademark of Apple Inc. registered in the U.S. and other countries.
All other trademarks are the property of their respective owners.
3.2Development toolchains
•Keil® MDK-ARM (see note)
•IAR™ EWARM (see note)
•GCC-based IDEs
Note:
On Windows® only.
3.3Demonstration software
The demonstration software, included in the STM32Cube MCU Package corresponding to the onboard
microcontroller, 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 www.st.com.
®
UM2651 - Rev 1
page 4/33
Page 5
4Conventions
Table 3 provides the conventions used for the ON and OFF settings in the present document.
ConventionDefinition
Jumper JPx ONJumper fitted
Jumper JPx OFFJumper not fitted
Jumper JPx [1-2]Jumper should be fitted between Pin 1 and Pin 2
Solder bridge SBx ONSBx connections closed by 0 Ω resistor
Solder bridge SBx OFFSBx connections left open
Resistor Rx ONResistor soldered
Resistor Rx OFFResistor not soldered
UM2651
Conventions
Table 3. ON/OFF convention
UM2651 - Rev 1
page 5/33
Page 6
5Delivery recommendations
Before the first use, make sure that no damage occurred to the board during shipment and no socketed
components are not firmly fixed in their sockets or loose in the plastic bag.
UM2651
Delivery recommendations
UM2651 - Rev 1
page 6/33
Page 7
6Hardware layout and configuration
The STM32L4P5G-DK Discovery kit is designed around the STM32L4P5AGI6PU target microcontroller. Figure 3
illustrates STM32L4P5AGI6PU connections with peripheral components. Figure 4 shows the location of the main
components on the top side of the Discovery board and Figure 5 shows the location of the main components on
the bottom side of the Discovery board.
Figure 3. STM32L4P5G-DK hardware block diagram
UM2651
Hardware layout and configuration
3.3 V power
supply
3.3 V
32 KHz Crystal
Octo-SPI Flash
Octo-SPI
PSRAM
1.8 V power
supply
VBAT
RTC
OctoSPI2
OctoSPI1
STM32L4P5AGI6PU
eMMC
USB connectorOTG FS
Camera
connector
STLINK-V3E
SDMMC1
DCMI
USART1
SMPS power
supply
DFSDM
SAI1
I2C1
RGBTFT LCD
GPIO
MEMs
Audio codex
Touch panel
MFX
ARDUINO
connector
Joystick,
STMod+
connector
®
buttons
LEDs
DAP
Note:The grey features are not soldered, only footprints are present on the board.
UM2651 - Rev 1
PIR
page 7/33
Page 8
Hardware layout and configuration
Figure 4. STM32L4P5G-DK PCB layout (Top view)
UM2651
CN1
STMod+ connector
LD3
STLINK-V3E
overcurrent alarm
CN5
Camera connector
U8
STM32L4P5AGI6PU
LD1, LD2
User LEDs
CN2
SWCLK and SWDIO
LD4
STLINK-V3E COM
CN4
ST-LINK SWD
LD5
5V PWR
CN6
STDC14 connector
LD6
USB-OTG overcurrent
LD7
USB-OTG
CN7
USB-OTG connector
JP4
5V source selection
CN9
LCD connector
CN8
External SMPS selection
UM2651 - Rev 1
page 8/33
Page 9
Hardware layout and configuration
Figure 5. STM32L4P5G-DK PCB layout (Bottom view)
UM2651
SW1
STLINK-V3E
switcher
CN13, CN15
ARDUINO
CN17
MFX SWD
®
connector
CN11
STLINK-V3E
USB
CN12, CN14
ARDUINO
LD8
ARDUINO
CN16
Audio OUT
®
connector
®
LED
UM2651 - Rev 1
page 9/33
Page 10
Figure 6 provides the mechanical dimensions of the STM32L4P5G-DK board.
The STLINK-V3E facility for debugging and programming the STM32L4P5AGI6PU is integrated into the
STM32L4P5G-DK board. It supports the following features:
•Self-powered through a USB connector (Micro-B)
•USB 2.0 high-speed compatible interface
•Direct firmware update support (DFU)
•SWD and serial wire viewer (SWV) communication support
•Drag-and-drop Flash programming
•Two colored LEDs: communication and power
USB connector CN11 can be used to power the STM32L4P5G-DK regardless of the STLINK-V3E facility used for
debugging or programming STM32L4P5AGI6PU. This holds also when the STLINK-V3E stand-alone tool is
connected to the CN6 connector and used for debugging or programming STM32L4P5AGI6PU. Section
6.2 Power supply provides more detail about powering STM32L4P5G-DK. Refer to www.st.com for details about
STLINK-V3E.
6.1.2Drivers and firmware upgrade
The STLINK-V3E requires drivers to be installed on Windows®. It embeds a firmware that needs to be updated in
order to benefit from new functionalities or corrections. Refer for details to the technical note Overview of ST-LINKderivatives TN1235.
UM2651
Embedded STLINK-V3E
6.1.3Virtual COM port
The serial interface USART2 (PA2 and PA3 ports) is directly available as a Virtual COM port of the PC, connected
to the CN11 STLINK-V3E USB connector. The Virtual COM port settings are 115200 bps, 8-bit data, no parity, 1
stop bit, no flow control.
6.2Power supply
The STM32L4P5G-DK Discovery kit is designed to be powered from a 5 V DC power source. One of the following
four 5 V DC power inputs can be used, upon appropriate board configuration:
•Micro-B USB receptacle CN11 of STLINK-V3E with enumeration. Up to 500mA can be supplied to the board
(JP4 jumper setting on STLK on the silkscreen). This offers the enumeration feature described in Section
6.2.1 .
•Micro-B USB receptacle CN11 of STLINK-V3E without enumeration. Up to 1000mA can be supplied to the
board directly without enumeration (JP4 jumper setting on CHGR on the silkscreen).
•Micro-AB USB receptacle CN7 of the USB OTG FS interface. Marked USB_OTG on the board (JP4 jumper
setting on U5V on the silkscreen). Up to 500 mA can be supplied to the board in this way.
•
7-12V DC power from CN13 pin8: Named VIN on silkscreen, the extension connectors for ARDUINO® Uno
shields (JP4 setting on external power source on silkscreen (E5V)).
The LD5 green LED turns on when the voltage on the power line marked as 5 V is present. All supply lines
required for the operation of the components on the STM32L4P5G-DK are derived from that 5 V line.
Table 4 describes the settings of all jumpers related to powering the STM32L4P5G-DK and extension board.
VDD_MCU is STM32L4P5AGI6PU digital supply voltage line. It can be connected to a fixed 3.3 V voltage supply.
6.2.1Supplying the board through STLINK-V3E USB port
In order to power the STM32L4P5G-DK this way, the PC USB host gets connected to the Micro-B USB receptacle
of the STM32L4P5G-DK board via a USB cable. The connection event starts with the USB enumeration
procedure. In its initial phase, the host USB port current supply capability is limited to 100 mA. It is enough
because only the STLINK-V3E part of the STM32L4P5G-DK draws power at that time: The U2 STMPS2151
power switch is set to the OFF position, which isolates the rest of the STM32L4P5G-DK from the power source. In
the next phase of the enumeration procedure, the host PC informs the STLINK-V3E facility of its capability to
supply current up to 300 mA. If the answer is positive, the STLINK-V3E sets the U2 STMPS2151 switch to ON
position to supply power to the rest of the STM32L4P5G-DK board. If the PC USB port is not capable of supplying
current up to 300 mA, the CN13 pin8 (VIN) can be used to supply the board instead.
UM2651 - Rev 1
page 11/33
Page 12
UM2651
Power supply
If a short-circuit occurs on the board, the STMPS2151 power switch protects the USB port of the host PC against
a current demand exceeding 500 mA. In such an event, the LD3 LED lights up.
The STM32L4P5G-DK board can also be supplied from a USB power source not supporting enumeration, such
as a USB charger. In this particular case, jumper JP4 must be fitted as shown in Table 4. Power-supply related
jumper and solder bridge settings. STLINK-V3E bypasses STMPS2151 power, regardless of enumeration
procedure results, and passes the power unconditionally to the board.
The LD5 green LED turns on whenever the whole board is powered.
6.2.2Using STLINK-V3E along with powering through external power
It can happen that the board requires more than 300 mA of supply current. It cannot be supplied by host PC
connected to the STLINK-V3E USB port for debugging or programming the STM32L4P5AGI6PU. In such a case,
the board can be supplied through CN13 pin8 (Marked VIN on the board).
To do this, it is important to power the board before connecting it with the host PC, which requires the following
sequence to be respected:
1.Set the jumper JP4 in the E5V position,
2.Connect the external power source to CN13 pin8,
3.Check that the LD5 green LED is turned on,
4.Connect host PC to the CN11 USB connector.
Caution:In case the board demands more than 300 mA and the host PC is connected via USB before the board is
powered from CN13 pin8, there is a risk that the following events to occur (Listed in reverse severity order):
1.The host PC is capable of supplying 300 mA (The enumeration succeeds) but it features no over-current
protection on its USB port. It is damaged due to over-current.
2.The host PC is capable of supplying 300 mA (The enumeration succeeds) and it has a built-in over-current
protection on its USB port, limiting or shutting down the power out of its USB port when the excessive
current demand from the is detected. This causes an operating failure of the STM32L4P5G-DK.
3.The host PC is not capable of supplying 300 mA (The enumeration fails). The STLINK-V3E does not
supply the rest of the from its USB port V
Table 4 details the jumper and solder bridge settings used for the power-supply configuration of the
STM32L4P5G-DK.
BUS
line.
Jumper /solder
bridge
JP4 5 V source
selector
Table 4. Power-supply related jumper and solder bridge settings
STLK
STLK
STLK
STLK
STLK
Setting
U5V
E5V D5V CHGR
U5V
E5V D5V CHGR
U5V
E5V D5V CHGR
U5V
E5V D5V CHGR
U5V
E5V D5V CHGR
Default setting.
STM32L4P5G-DK is supplied through the CN11 Micro-B USB
receptacle. It depends on host PC USB port’s powering
capability declared in the enumeration.
STM32L4P5G-DK is supplied through CN7 Micro-AB USB
receptacle.
STM32L4P5G-DK is supplied through CN13 pin 8.
STM32L4P5G-DK is supplied through CN13 pin 5.
STM32L4P5G-DK is supplied through CN11 Micro-B USB
receptacle.
This setting is applied to power the board through CN11 using
USB charger.
Configuration
(1)
UM2651 - Rev 1
page 12/33
Page 13
UM2651
Clock references
Jumper /solder
bridge
R46 V
BAT
connection
JP2 VDDA /
VDDUSB
connection
JP6 3V3
1. On all STLINK-V3E boards, the target application is now able to run even if the STLINK-V3E is either not connected to an
USB host, or is powered through a USB charger, or through a not-enumerating USB host.
R46 ON
R46 OFF
6.2.3SMPS power supply
V
is the external power supply bypassing the internal regulator when connected to an external SMPS. Board
DD12
is populated with DC-DC regulator mounted on U22 ST1PS02D1QTR, which allows to dynamically supply the
V
pins in Run, Sleep and Stop 0 modes at voltage range from 1.0 to 1.35 V by configured
DD12
STM32L4P5AGI6PU GPIOs (PH2, PH4, and PH13).
Setting
2
1
2
1
1
1
Configuration
Default setting.
V
is connected to VDD_MCU.
BAT
V
is not connected to VDD_MCU.
BAT
3
3
2
2
Default setting.
VDDA and VDDUSB terminal of STM32L4P5AGI6PU are
connected to VDD_MCU.
VDDA and VDDUSB terminal of STM32L4P5AGI6PU are
connected to 3V3.
Default setting.
Board is connected to fixed 3V3.
The device is connected to measure current consumption.
(1)
6.3Clock references
Two clock references are available on STM32L4P5G-DK for the STM32L4P5AGI6PU target microcontroller.
•32.768 kHz crystal X2, for embedded RTC
•24 MHz crystal X3, for main clock generator (Footprint only)
The main clock generation is possible via an internal RC oscillator (Default) or from STLK_MCO, disconnected by
removing resistors R49, R51, and R52 when the internal RC clock is used.
6.4
Reset source
The general reset of the STM32L4P5G-DK Discovery kit is active LOW. Sources of reset are:
•B2 RESET button
•CN6 STDC14 connector (Reset from debug tools)
•ARDUINO® Uno shield board through CN13 connector
•Embedded STLINK-V3E
6.5Boot option
After reset, the STM32L4P5AGI6PU MCU can boot from the following embedded memory locations:
•Main (User, non-protected) Flash memory
•System (Protected) Flash memory
•RAM, for debugging
The boot option is configured by setting PH3 (BOOT0) and the boot base address programmed in the nBOOT1,
nBOOT0, and nSWBOOT0 of FLASH_OPTR option bytes.
Table 5 describes the HW configuration for the BOOT mode.
UM2651 - Rev 1
page 13/33
Page 14
Resistor
R37 OFF
R38 ON
R37 and R38
1. The default configuration is shown in bold.
R37 ON
R38 OFF
Setting
(1)
UM2651
Audio (Footprint only)
Table 5. Boot selection switch
Description
BOOT0 line is tied LOW. STM32L4P5AGI6PU boots from Main Flash
memory.
BOOT0 line is tied HIGH. STM32L4P5AGI6PU boots from system Flash
memory (nBOOT1 bit of FLASH_OPTR register is set HIGH) or from RAM
(nBOOT1 is set LOW).
6.6
Audio (Footprint only)
A Cirrus codec CS42L51-CNZ, connected to the SAI interface of STM32L4P5AGI6PU, offers the possibility to
connect a stereo headphone or headset with a mono analog microphone. The codec communicates with
STM32L4P5AGI6PU via the I2C1 bus, which is shared with MFX and JDI LCD.
The I²C-bus addresses of CS42L51-CNZ are 0x95 and 0x94.
6.7Digital microphones (Footprint only)
Two ST-MEMS IMP34DT05TR digital microphones, U17 and U23, are available on STM32L4P5G-DK. The two
microphones are located at a distance of 21 mm from each other. They are connected to the STM32 DFSDM by
the PE9 port, generating the clock, and by PD3 port, collecting the PDM interleaved data.
6.8USB FS port
The STM32L4P5G-DK Discovery kit supports USB OTG FS, full-speed communication, via the CN7 USB MicroAB receptacle and U7 USB power switch connected to V
An LD7 green LED lits up in one of the following cases:
•The U7 power switch is ON and STM32L4P5G-DK works as a USB host.
6.9
•V
The LD6 red LED is lit in case of overcurrent.
User LEDs
Two general-purpose color LEDs, LD1 and LD2, are available as light indicators. Each LED is in light-emitting
state with a low level of the corresponding ports of the STM32L4P5AGI6PU MCU.
is powered by another USB host when STM32L4P5G-DK works as a USB device.
BUS
BUS
.
6.10Physical input devices
The STM32L4P5G-DK board provides a number of input devices for physical human control.
•A four-way joystick controller with select key (B1)
•A reset button (B2)
6.11Octo-SPI device
U12, a 512-Mbit Octo-SPI user Flash memory MX25LM51245GXDI00 from MACRONIX, is connected to the
OCTOSPIM_P2 interface of STM32L4P5AGI6PU.
U11, a 64-Mbit Octo-SPI PSRAM memory APS6408L-3OBx-BA from APMemory, is connected to the
OCTOSPIM_P1 interface of STM32L4P5AGI6PU.
By default, U14 is the footprint of a Quad-SPI interface for the SO8 package, like APMemory APS1604M-3SQRSN. Note that U11 and U14 share the same GPIO port for Octo-SPI and Quad-SPI interface usage.
6.12eMMC
The STM32L4P5G-DK Discovery kit embeds a 4-Gbyte eMMC chip. It is connected to the STM32L4P5AGI6PU
SDMMC1 port.
UM2651 - Rev 1
page 14/33
Page 15
6.13MFX MCU
The MFX MCU is used as an MFX multi-function expander and an IDD measurement calculator.
6.13.1MFX
The MFX circuit on the STM32L4P5G-DK Discovery kit acts as IO-expander. The communication interface
between MFX and STM32L4P5AGI6PU is the I2C1 bus. The signals connected to MFX are listed in Table 6.
UM2651
MFX MCU
Table 6. MFX signals
MFX pin
number
15PA5MFX_GPIO5Camera_FlashOutputCamera
16PA6MFX_GPIO6Camera_STANDBYOutputCamera
17PA7MFX_GPIO7Camera_PLUGInputCamera
18PB0MFX_GPIO0USB_PSONOutputUSB OTG FS
19PB1MFX_GPIO1USB_OVRCRInputUSB OTG FS
20PB2MFX_GPIO2Audio_RSTInputAudio
26PB13MFX_GPIO13---
27PB14MFX_GPIO14---
28PB15MFX_GPIO15---
29PA8MFX_GPIO8---
30PA9MFX_GPIO9---
31PA10MFX_GPIO10---
32PA11MFX_GPIO11---
33PA12MFX_GPIO12---
39PB3MFX_GPIO3Camera_RSTOutputCamera
40PB4MFX_GPIO4Camera_ShutterOutputCamera
MFX pin
name
6.13.2IDD measurement
STM32L4P5AGI6PU has a built-in circuit to measure its own current consumption (IDD) in Run and Low-power
modes, except Shutdown mode. It is strongly recommended for the MCU supply voltage (VDD_MCU line) to not
exceed 3.3 V, because there are components on the STM32L4P5G-DK supplied from 3.3 V that communicate
with the MCU through I/O ports. Voltage exceeding 3.3 V on the MCU output port may inject current into 3.3 V
supplied peripheral I/Os and distort the MCU current-consumption measurement.
Table 7 shows the setting of the jumper associated with the IDD measurement on the board.
The STM32L4P5G-DK supports a 6-bit RGB interface and a touch-panel interface. A reference board B-LCD12MIP1 (MB1609) is used for display applications. The daughterboard is plugged into the CN9 connector.
UM2651 - Rev 1
Configuration
STM32L4P5AGI6PU has a built-in circuit to measure its own current
consumption.
IDD measurement is not available, bypass mode only for STM32L4P5AGI6PU
VDD_MCU power supply.
page 15/33
Page 16
Camera connector (Footprint only)
Table 8. CN9 LCD connector
TerminalTerminal nameMCU portTerminalTerminal nameMCU port
1LCD_DEPC02LCD_R7PE2
3LCD_DISPPG84LCD_R6PE3
5LCD_HSYNCPC26LCD_G7PE5
7LCD_VSYNCPE18LCD_G6PE6
9LCD_CLKPA410LCD_B7PE8
11GND-12LCD_B6PE7
13TP_INTPI114GND-
15TP_RSTPB416LCD_PWM_ENPA15
17I2C1_SDAPB718LCD_RTC_OUT2PB2
19I2C1_SCLPB620BL_ENPD13
213V3-225V-
23GND-24GND-
UM2651
6.15Camera connector (Footprint only)
A CN5 connector for 8- to 12-bit DCMI signals on STM32L4P5G-DK Discovery kit supports a camera module
daughterboard MB1183 or MB1379. The camera shares the I2C4 bus with STMod+ connector and ARDUINO
connector.
®
UM2651 - Rev 1
page 16/33
Page 17
7Connectors
7.1CN1 STMod+ connector
The standard 20-pin STMod+ connector is available on the STM32L4P5G-DK Discovery kit 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 to connect different modules or board extensions from different
manufacturers. The fanout board also embeds a 3.3 V regulator and I2C level shifter (Footprint only). Schematics
of the fanout board is available at the www.st.com website.
For details about STMod+ interface, refer to the technical note STMod+ interface specification TN1238.
UM2651
Connectors
Figure 7. CN1 STMod+ connector
Table 9. CN1 STMod+ connector pinout
Pin number
1SPI1_NSS/USART3_CTS (PG5/PD11)11INT (PD10)
2SPI1_MOSI/ USART3_TX (PG4/PD8)12RESET (PF11)
3SPI1_MISO/ USART3_RX (PG3/PD9)13ADC (PA5)
4SPI1_SCK/ USART3_RTS (PG2/PD12)14PWM (PG11)
5GND155V
65V16GND
7I2C4_SCL (PF14)17DFSDM1-CKOUT (PF10)
8SPI1_MOSIs (PE15)18DFSDM1- DATIN1 (PB12)
9SPI1_MISOs (PE14)19GPIO3 (PD0)
10I2C4_SDA (PF15)20GPIO4 (PD1)
DescriptionPin numberDescription
7.2CN4 STLINK-V3E programming connector
The CN4 connector is only used for embedded STLINK-V3E programming during board manufacturing. It is not
populated by default and not for the end-user.
TerminalFunction / MCU portTerminalFunction / MCU port
1-2-
3VDD4SWDIO/TMS (PA13)
5GND6SWDCLK/TCK (PA14)
7GND8SWO/TDO (PB3)
9-10-
11GND12RESET#
13VCP_RX_STDC (PA3)14VCP_TX_STDC (PA2)
UM2651
CN6 STDC14 connector
7.5CN7 USB OTG FS Micro-AB connector
A USB OTG Full Speed communication link is available at CN7 USB Micro-AB receptacle connector. Micro-AB
receptacle enables USB Host and USB Device features.
Figure 10. CN7 USB OTG FS Micro-AB connector
Table 12. CN7 USB OTG FS Micro-AB connector pinout
Pin numberDescriptionPin numberDescription
1VBUS4ID
2DM5GND
UM2651 - Rev 1
page 19/33
Page 20
Pin numberDescriptionPin numberDescription
3DP--
7.6CN11 STLINK-V3E USB Micro-B connector
The CN11 USB connector is used to connect onboard STLINK-V3E facility to PC for flashing and debugging
software.
Figure 11. CN11 Micro-B connector (Top view)
UM2651
CN11 STLINK-V3E USB Micro-B connector
Table 13. CN11 USB Micro-B connector pinout
TerminalDescriptionTerminalDescription
1VBUS (Power)4ID
2DM5GND
3DP6 - 11Shield
UM2651 - Rev 1
page 20/33
Page 21
UM2651
CN12, CN13, CN14, and CN15 ARDUINO® Uno V3 connectors
7.7
CN12, CN13, CN14, and CN15 ARDUINO® Uno V3 connectors
CN12, CN13, CN14, and CN15 ARDUINO® Uno V3 connectors are female connectors compatible with
ARDUINO® Uno Revision 3 standard. Most of the shields designed for ARDUINO® Uno V3 fit STM32L4P5G-DK
board.
Table 14. ARDUINO® Uno V3 compatible connectors pinout
Left connectorsRight connectors
CN
number
CN13
power
CN15
analog
1. The +3V3 on ARD connector Pin4 of CN13 is not a power input for the STM32L4P5G-DK board, to simplify power
architecture.
2. The external voltage applied to pin VIN on Pin8 of CN13 should be in the range 6 to 9V at 25°C ambient temperature. If a
higher voltage is applied on the regulator U10, it may overheat and could be damaged.
3. By default, pin 5 and pin 6 of CN15 connector are connected to ADC MCU input ports PC4 and PC5 respectively, thanks to
configuration of solder bridges: SB48 and SB54 ON, SB47 and SB55 OFF. In case it is necessary to connect the I2C
interface signals on pins 5 and 6 of CN15 instead of ADC inputs, the user must open SB48 and SB54, and close SB47 and
SB55.
Pin
number
Pin name
MCU
pin
FunctionFunction
MCU
pin
Pin
name
I2C4_SCLPF14D1510
-
I2C4_SDAPF15D149
AREF-AVDD8
Ground-GND7
15V_EXT-5 V outputSPI2_SCKPB13D136
2IOREF-3.3 V Ref.SPI2 _MISOPB14D125
3RESETNRSTRESET
(1)
3.3V
4+3V3-
input/
output
TIM1_CH3N ||
SPI2_MOSI
TIM5_CH4 ||
SPI2_NSS
PB15D114
PI0D103
5+5V-5 V outputTIM8_CH4PI2D92
6GND-Ground-PD1D81
7GND-Ground-
8VIN-
Power input
(2)
-PD0D78
-TIM4_CH4PD15D67
1A0PC1ADC12_IN2TIM4_CH3PD14D56
2A1PA1ADC12_IN6-PF13D45
3A2PB0ADC12_IN15TIM4_CH2PD13D34
4A3PB1ADC3_IN16-PF11D23
5A4
6A5
PC4 ||
PF15
PC5 ||
PF14
ADC3_IN13 ||
I2C4_SDA
ADC12_IN10 ||
I2C4_SCL
(3)
(3)
USART3_TXPB10D12
USART3_RXPB11D01
Pin
number
CN number
CN12
digital
CN14
digital
Caution:
UM2651 - Rev 1
Before using any ARDUINO® Uno V3 shield, it is important to refer to Section 6.2 for a correct configuration of
JP4.
The STM32 MCU I/Os are 3.3 V compatible instead of 5 V for ARDUINO® Uno V3.
page 21/33
Page 22
7.8CN16 audio green jack - line out (Footprint only)
A 3.5 mm stereo audio green jack output CN16 is available on the STM32L4P5G-DK board to support
headphones.
Figure 12. CN16 stereo headset with a microphone jack
UM2651
CN16 audio green jack - line out (Footprint only)
1
Table 15. CN16 audio jack connector pinout (Onboard)
Pin numberDescriptionStereo headset with microphone pinning
3GNDGND
4OUT_Right
6OUT_Left
1NC-
2MIC_INMIC
5NC-
7.9CN17 MFX programming connector
4
2
SPK_R (33 Ω
typical)
SPK_L (33 Ω
typical)
5
6
3
The CN17 connector is only used for embedded MFX (Multi-Function eXpander) programming during the board
manufacturing. It is not populated by default and not for the end-user.
Figure 12. CN16 stereo headset with a microphone jack ............................................. 22
UM2651 - Rev 1
page 32/33
Page 33
UM2651
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. For additional information about ST trademarks, please refer to www.st.com/trademarks. 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.