background image

Introduction

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.

Discovery kit with STM32L4P5AG MCU

UM2651

User manual

UM2651

 - 

Rev 2

 - 

September 2020

For further information contact your local STMicroelectronics sales office.

www.st.com

Summary of Contents for STM32L4P5AG

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

Page 2: ... 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 VBUS USB OTG connector or external sources 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...

Page 3: ...U 2 1 Codification The meaning of the codification is explained in Table 2 The order code is mentioned on a sticker placed on the top or bottom side of the board Table 2 Codification explanation STM32TTXXY DK Description Example STM32L4P5G DK STM32TT MCU series in STM32 32 bit Arm Cortex MCUs STM32L4 Series XX MCU product line in the series STM32L4P5 Y STM32 Flash memory size G for 1 Mbyte 1 Mbyte...

Page 4: ... Systems IAR Embedded Workbench 1 Keil MDK ARM 1 STMicroelectronics STM32CubeIDE 1 On Windows only 3 3 Demonstration software The demonstration software included in the STM32Cube MCU Package corresponding to the on board 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...

Page 5: ...efinition Jumper JPx ON Jumper fitted Jumper JPx OFF Jumper not fitted Jumper JPx 1 2 Jumper fitted between Pin 1 and Pin 2 Solder bridge SBx ON SBx connections closed by 0 Ω resistor Solder bridge SBx OFF SBx connections left open Resistor Rx ON Resistor soldered Resistor Rx OFF Resistor not soldered UM2651 Conventions UM2651 Rev 2 page 5 37 ...

Page 6: ...st use check the board for any damage that might have occurred during shipment that all socketed components are firmly fixed in their sockets and that none are loose in the plastic bag UM2651 Delivery recommendations UM2651 Rev 2 page 6 37 ...

Page 7: ...de of the Discovery board Figure 3 STM32L4P5G DK hardware block diagram STM32L4P5AGI6PU 3 3 V Audio codex RTC DAP 32 KHz Crystal VBAT STLINK V3E I2C1 SAI1 LEDs eMMC Joystick buttons GPIO SDMMC1 USB connector OTG FS OctoSPI2 Octo SPI Flash USART1 DFSDM 3 3 V power supply 1 8 V power supply RGB TFT LCD STMod connector OctoSPI1 Octo SPI PSRAM MEMs DCMI Camera connector PIR ARDUINO connector Touch pan...

Page 8: ... CN5 Camera connector U8 STM32L4P5AGI6PU LD1 LD2 User LEDs CN4 ST LINK SWD LD4 STLINK V3E COM 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 Hardware layout and configuration UM2651 Rev 2 page 8 37 ...

Page 9: ... layout Bottom view SW1 STLINK V3E switcher CN13 CN15 ARDUINO connector CN17 MFX SWD CN11 STLINK V3E USB LD8 ARDUINO LED CN16 Audio OUT CN12 CN14 ARDUINO connector UM2651 Hardware layout and configuration UM2651 Rev 2 page 9 37 ...

Page 10: ...Figure 6 provides the mechanical dimensions of the STM32L4P5G DK board Figure 6 STM32L4P5G DK board mechanical dimensions Top view UM2651 Hardware layout and configuration UM2651 Rev 2 page 10 37 ...

Page 11: ...scribed in Section 6 2 1 Micro B USB receptacle CN11 of STLINK V3E without enumeration Up to 1000 mA 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...

Page 12: ...e 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 ...

Page 13: ...age range from 1 0 to 1 35 V by configured STM32L4P5AGI6PU GPIOs PH2 PH4 and PH13 6 3 Clock 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 disconne...

Page 14: ...7 USB Micro AB receptacle and U7 USB power switch connected to VBUS 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 VBUS is powered by another USB host when STM32L4P5G DK works as a USB device The LD6 red LED is lit in case of overcurrent 6 9 User LEDs Two general purpose color LEDs LD1 and LD2 are available as light indicators...

Page 15: ...9 PB3 MFX_GPIO3 Camera_RST Output Camera 40 PB4 MFX_GPIO4 Camera_Shutter Output Camera 6 13 2 IDD 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 tha...

Page 16: ...or for application The CN9 connector part number is SAMTEC FLE 112 01 G DV 6 15 Camera connector Footprint only A CN5 connector for 8 to 12 bit DCMI signals on the 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 LCD interface Connector only UM2651 Rev 2 page 16 37 ...

Page 17: ...rface refer to the technical note STMod interface specification TN1238 Figure 7 CN1 STMod connector Table 8 CN1 STMod connector pinout Pin number Description Pin number Description 1 SPI1_NSS USART3_CTS PG5 PD11 11 INT PD10 2 SPI1_MOSI USART3_TX PG4 PD8 12 RESET PF11 3 SPI1_MISO USART3_RX PG3 PD9 13 ADC PA5 4 SPI1_SCK USART3_RTS PG2 PD12 14 PWM PG11 5 GND 15 5V 6 5V 16 GND 7 I2C4_SCL PF14 17 DFSDM...

Page 18: ...GND 13 I2C4_SCL PF14 14 I2C4_SDA PF15 15 Camera_PLUG MFX GPIO7 16 GND 17 Camera_RST MFX GPIO3 18 19 Camera_STANDBY MFX GPIO6 20 Camera_CLK 21 GND 22 GND 23 DCMI_D0 PH9 24 DCMI_D1 PH10 25 DCMI_D2 PE0 26 DCMI_D3 PH12 27 DCMI_D4 PH14 28 DCMI_D5 PI4 29 DCMI_D6 PI6 30 DCMI_D7 PI7 31 DCMI_HSYNC PH8 32 DCMI_VSYNC PI5 33 DCMI_PIXCLK PH5 34 35 Camera_Shutter MFX GPIO4 36 Camera_Flash MFX GPIO5 37 GND 38 GN...

Page 19: ...ND 12 RESET 13 VCP_RX_STDC PA3 14 VCP_TX_STDC PA2 7 5 CN7 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 11 CN7 USB OTG FS Micro AB connector pinout Pin number Description Pin number Description 1 VBUS 4 ID 2 DM ...

Page 20: ... connect the onboard STLINK V3E facility to the PC for flashing and debugging software Figure 11 CN11 Micro B connector Top view Table 12 CN11 USB Micro B connector pinout Terminal Description Terminal Description 1 VBUS Power 4 ID 2 DM 5 GND 3 DP 6 11 Shield UM2651 CN11 STLINK V3E USB Micro B connector UM2651 Rev 2 page 20 37 ...

Page 21: ...C12_IN15 TIM4_CH2 PD13 D3 4 4 A3 PB1 ADC3_IN16 PF11 D2 3 5 A4 PC4 PF15 ADC3_IN13 I2C4_SDA 3 USART3_TX PB10 D1 2 6 A5 PC5 PF14 ADC12_IN10 I2C4_SCL 3 USART3_RX PB11 D0 1 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 tempera...

Page 22: ...r pinout Onboard Pin number Description Stereo headset with microphone pinning 3 GND GND 4 OUT_Right SPK_R 33 Ω typical 6 OUT_Left SPK_L 33 Ω typical 1 NC 2 MIC_IN MIC 5 NC 7 9 CN17 MFX programming connector 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 UM2651 CN16 audio gr...

Page 23: ...NC PE1 8 LCD_G6 PE6 9 LCD_CLK PA4 10 LCD_B7 PE8 11 GND 12 LCD_B6 PE7 13 TP_INT PI1 14 GND 15 TP_RST PB4 16 LCD_PWM_EN PA15 17 I2C1_SDA PB7 18 LCD_RTC_OUT2 PB2 19 I2C1_SCL PB6 20 BL_EN PD13 21 3V3 22 5V 23 GND 24 GND 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 UM2651 CN9 L...

Page 24: ...I O FT DCMI_D4 D4 PI9 B1 I O FT JOY_DOWN PI7 B2 I O FT DCMI_D7 D7 VSS B3 S PE1 B4 I O FT LCD_VSYNC PB5 B5 I O FT_la SAI1_SD_B VDDIO2 B6 S PG9 B7 I O FT_s OCTOSPIM_P2_IO6 PD0 B8 I O FT ARD_D7_STMOD_GPIO3 PI6 B9 I O FT DCMI_D6 D6 PI2 B10 I O FT ARD_TIM8_CH4 PI1 B11 I O FT TP_INT PH15 B12 I O FT SMPS_SW DCMI_D11 D11 PH12 B13 I O FT DCMI_D3 D3 VDD C1 S VSS C2 S PI11 C3 I O FT JOY_LEFT PB8 C4 I O FT_fl...

Page 25: ...O FT JOY_SEL VBAT E2 S PE6 E3 I O FT LCD_G6 PE5 E4 I O FT LCD_G7 PH3 BOOT0 E5 I O FT BOOT0 PG11 E6 I O FT_s STMOD_TIM15_CH2 PD6 E7 I O FT SAI1_SD_A PD3 E8 I O FT DFSDM1_DATIN0 PC11 E9 I O FT SDMMC1_D3 PI5 E10 I O FT DCMI_VSYNC RDY PH6 E11 I O FT SMPS_EN DCMI_D8 D8 VDDUSB E12 S PA11 E13 I O FT_u OTG_FS_DM PC14 OSC32_IN F1 I O FT OSC32_IN VSS F2 S PF2 F3 I O FT OCTOSPIM_P2_IO2 PF1 F4 I O FT_f OCTOSP...

Page 26: ... H4 I O FT STMOD_DFSDM1_CKOUT PC4 H5 I O FT_a ARD_ADC12_IN13 PG1 H6 I O FT OCTOSPIM_P2_IO5 PE10 H7 I O FT OCTOSPIM_P1_CLK PB11 H8 I O FT_fl ARD_USART3_RX PG8 H9 I O FT_fs LCD_DISP PG7 H10 I O FT_fs SAI1_MCLK_A PD15 H11 I O FT ARD_TIM4_CH4 VSS H12 S VDD H13 S PH1 OSC_OUT J1 I O FT OSC_OUT PC0 J2 I O FT_fla LCD_DE PC1 J3 I O FT_fla ARD_ADC12_IN2 PC2 J4 I O FT_la LCD_HSYNC PC5 J5 I O FT_a PIR_WAKEUP ...

Page 27: ...PTIM2_OUT VREF L1 S VDDA L2 S PA4 L3 I O TT_a LCD_CLK PA7 L4 I O FT_fla OCTOSPIM_P1_IO2 PB1 L5 I O FT_a ARD_ADC12_IN16 PF14 L6 I O FT_f I2C4_SCL PE7 L7 I O FT LCD_B6 PE13 L8 I O FT OCTOSPIM_P1_IO1 PH5 L9 I O FT_f DCMI_PIXCLK PDCK PD9 L10 I O FT STMOD_USART3_RX PD8 L11 I O FT STMOD_USART3_TX VDD L12 S VSS L13 S OPAMP1_VINM M1 I TT PA3 M2 I O TT_a USART2_RX VSS M3 S PA6 M4 I O FT_a OCTOSPIM_P1_IO3 P...

Page 28: ...DD N3 S OPAMP2_VINM N4 I TT PB2 N5 I O FT_a LCD_RTC_OUT2 PF12 N6 I O FT OCTOSPIM_P2_DQS VDD N7 S PE11 N8 I O FT OCTOSPIM_P1_NCS PB10 N9 I O FT_fl ARD_USART3_TX PH8 N10 I O FT_f DCMI_HSYNC DE VDD N11 S PB12 N12 I O FT STMOD_DFSDM1_DATIN1 PB13 N13 I O FT_fl ARD_SPI2_SCK UM2651 STM32L4P5G DK I O assignment UM2651 Rev 2 page 28 37 ...

Page 29: ...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 whi...

Page 30: ...ration between the equipment and receiver Connect the equipment into an outlet on circuit different from that to which the receiver is connected Consult the dealer or an experienced radio TV technician for help Note Use only shielded cables Responsible party in the USA Terry Blanchard Americas Region Legal Group Vice President and Regional Legal Counsel The Americas STMicroelectronics Inc 750 Cany...

Page 31: ...Étiquette de conformité à la NMB 003 d ISDE Canada CAN ICES 3 B NMB 3 B UM2651 ISED Compliance Statement UM2651 Rev 2 page 31 37 ...

Page 32: ...tion 6 14 LCD interface Connector only Added Section 7 10 CN9 LCD connector Section 9 STM32L4P5G DK information with moved updated Product marking and Section 9 2 Board revision history Section Appendix A Federal Communications Commission FCC and ISED Canada Compliance Statements Class B compliancy UM2651 UM2651 Rev 2 page 32 37 ...

Page 33: ...vers and firmware upgrade 11 6 1 3 Virtual COM port 11 6 2 Power supply 11 6 2 1 Supplying the board through STLINK V3E USB port 11 6 2 2 Using STLINK V3E along with powering through external power 12 6 2 3 SMPS power supply 13 6 3 Clock references 13 6 4 Reset source 13 6 5 Boot option 13 6 6 Audio Footprint only 14 6 7 Digital microphones Footprint only 14 6 8 USB FS port 14 6 9 User LEDs 14 6 1...

Page 34: ...d CN15 ARDUINO Uno V3 connectors 21 7 8 CN16 audio green jack line out Footprint only 22 7 9 CN17 MFX programming connector 22 7 10 CN9 LCD connector 23 8 STM32L4P5G DK I O assignment 24 9 STM32L4P5G DK information 29 9 1 Product marking 29 9 2 Board revision history 29 9 2 1 MB1535 29 9 3 Known limitations 29 9 3 1 MB1535 29 Appendix A Federal Communications Commission FCC and ISED Canada Complia...

Page 35: ... CN1 STMod connector pinout 17 Table 9 CN5 camera module connector pinout 18 Table 10 CN6 STDC14 debugging connector pinout 19 Table 11 CN7 USB OTG FS Micro AB connector pinout 19 Table 12 CN11 USB Micro B connector pinout 20 Table 13 ARDUINO Uno V3 compatible connectors pinout 21 Table 14 CN16 audio jack connector pinout Onboard 22 Table 15 CN9 LCD connector 23 Table 16 STM32L4P5G DK I O assignme...

Page 36: ...w 9 Figure 6 STM32L4P5G DK board mechanical dimensions Top view 10 Figure 7 CN1 STMod connector 17 Figure 8 CN5 camera module connector Top view 18 Figure 9 CN6 STDC14 debugging connector Top view 19 Figure 10 CN7 USB OTG FS Micro AB connector 19 Figure 11 CN11 Micro B connector Top view 20 Figure 12 CN16 stereo headset with a microphone jack 22 Figure 13 CN9 LCD connector 23 UM2651 List of figure...

Page 37: ...cts 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 S...

Reviews: