STM32MP157x-DKx - hardware description

Revision as of 15:59, 9 January 2019 by Registered User
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:ToBeReviewedByProductMarketing

Template:ArticleMainWriter Template:ReviewersList Template:ArticleApprovedVersion


1 Article purpose[edit]

This article provides an overview of STM32MP157X_DKX Discovery kits. It briefly describes:

  • how to assemble the different elements provided in the commercial box
  • what are the different components present on the board
  • how to connect the board to external material
  • how to configure the board for boot
  • what are the configurations of the connector pins


This article is only an introduction to the STM32MP157X_DKX Discovery kits. Detailed information can be found in the STM32MP157X-DKX user manual.

2 Board assembly[edit]

STM32MP157X-DKX - board assembly

3 Board overview[edit]

Position Description
1 MB1272 motherboard
2 MB1407 daughterboard DSI display (480x800 pixels): only for the STM32MP157X-DK2 Discovery kit
3 microSD card
4 DSI ribbon cable: only for the STM32MP157X-DK2 Discovery kit
5 Spacer for DSI display daughterboard: only for the STM32MP157X-DK2 Discovery kit
File:STM32MP157X-DKX corner HDMI.png
STM32MP157X-DKX Discovery kit (front side view from HDMI connector)
Board name: STM32MP157X-DK2
Position Description
10 (CN1) 2 USB Type-A (host)
11 (CN5) 2 USB Type-A (host)
12 (CN7) USB Type-C (DRP)
13 (CN9) HDMI connector
14 (LD4) ST-Link LED (bicolor)[1]
15 (CN11) USB micro-B (ST-Link V2-1)
16 (LD8) User LED (blue)[2]
17 (LD7) User LED (orange)[2]
18 (B4) User button (USER2)
19 (U13) STM32MP157X 12x12
20 (LD6) User LED (red))[2]
21 (B3) User button (USER1)
22 (LD5) User LED (green)[2]
23 (B2) Reset button
24 (U20) Audio codec (Cirrus CS42L51)
25 (CN10) Audio headset
26 (B1) Power-on button
27 (CN8) Ethernet


File:STM32MP157X-DKX corner microSD card.png
STM32MP157X-DKX Discovery kit (front side view from microSD card connector)
Board name: STM32MP157X-DK2
Position Description
10 (CN1) 2 USB Type-A (host)
26 (CN8) Ethernet
30 (LD3) Ethernet LED (green)[3]
31 (CN6) USB Type-C (power 5V-3A)
32 (LD2) Power LED (green)[4]
33 (U8) WLAN + Bluetooth (muRata LBEE5KL1DX): only for STM32MP157X-DK2 Discovery kit
34 (CN4) DSI LCD connector
35 (LD1) USB Type-A LED (red)[5]
36 (CN2) GPIO expansion


File:STM32MP157X-DKX back side.png
STM32MP157X-DKX Discovery kit (back side)
Board name: STM32MP157X-DK2
Position Description
40 (CN13) Arduino Uno connector (socket 10x1)
41 (CN14) Arduino Uno connector (socket 8x1)
42 (LD9) Arduino LED (green)
43 (CN15) microSD 3.0 card
44 (SW1) Boot mode selection
45 (CN16) Arduino Uno connector (socket 8x1)
46 (CN17) Arduino Uno connector (socket 6x1)


Details about some LEDs:

  1. LD4: flashes red if ST-Link connection not established, else green
  2. 2.02.12.22.3 LD5, LD6, LD7, LD8: some user LEDs are used to reflect the system activity, while the others are left free to be used by the application, as explained in LEDs and buttons on STM32 MPU boards article
  3. LD3: flashes green when Ethernet connection established
  4. LD2: turns green if power connection established
  5. LD1: turns red if USB Type-A connection established

4 Board connection[edit]

The connections shown in the picture below are the ones recommended to start with the STM32MP157X_DKX Discovery kits. As shown in the board overview, other connectors are available for these boards (for example HDMI). STM32MP157X-DKX - board connections

5 Boot related switches[edit]

The following table defines the different combination of the boot mode selection switches:

Info white.png Information
"Boot 1" is grounded (always 0) on the Discovery kits
Boot modes
Boot mode Boot 0 Boot 1 Boot 2
Forced USB boot
for flashing
0 0 0
Not supported 1 0 0
Engineering boot 0 0 1
microSD card 1 0 1

Below the corresponding configurations of the boot related switches (SW1 on the board overview picture):

6 GPIO mapping[edit]

6.1 GPIO expansion connector[edit]

The pins of the GPIO expansion connector (CN2 on the board overview picture) are described in the following table:

GPIO expansion connector
Description Pin number Pin number Description
3V3 1 2 VIN
I2C5_SDA 3 4 VIN
I2C5_SCL 5 6 GND
MCO1 7 8 USART3_TX
GND 9 10 USART3_RX
USART3_RTS 11 12 SAI2_SCKA
SDMMC3_D3 13 14 GND
SDMMC3_CK 15 16 SDMMC3_CMD
3V3 17 18 SDMMC3_D0
SPI5_MOSI 19 20 GND
SPI5_MISO 21 22 SDMMC3_D1
SPI5_SCK 23 24 SPI5_NSS
GND 25 26 PI_GPIO7
ID_SD 27 28 ID_SC
MCO2 29 30 GND
TIM5_CH2 31 32 TIM4_CH2
TIM3_CH2 33 34 GND
SAI2_FSA 35 36 USART3_CTS
SDMMC3_D2 37 38 SAI2_SDA
GND 39 40 SAI2_SDB

6.2 Arduino Uno connector[edit]

The pins of the Arduino Uno connector are described in the following table:

Arduino Uno connector
Socket 10x1 (CN13)
Description Pin number
I2C5_SCL D15
I2C5_SDA D14
VREF+ AVDD
GND GND
SPI4_SCK D13
SPI4_MISO D12
TIM1_CH4, SPI4_MOSI D11
TIM1_CH2, SPI4_NSS D10
TIM12_CH1 D9
GPIO D8
Socket 8x1 (CN14)
Description Pin number
GPIO D7
TIM1_CH1 D6
TIM4_CH4 D5
GPIO D4
TIM4_CH3 D3
GPIO D2
USART7_TX D1
USART7_RX D0
socket 8x1 (CN16)
Description Pin number
------ ------
3V3 IOREF
RESET NRST
3V3 3V3
5V 5V
GND GND
GND GND
---- VIN
Socket 6x1 (CN17)
Description Pin number
ADC1_IN0 A0
ADC1_IN1 A1
ADC2_IN6 A2
ADC2_IN2 A3
ADC1_IN13 A4
ADC1_IN6 A5

6.3 User buttons and LEDs[edit]

The GPIO assignments for the user buttons and LEDs are described in the following table. Refer to LEDs and buttons on STM32 MPU boards article to get information on the functional mapping for each one.

GPIO for user buttons and LEDs
LED color and label Button label GPIO
Green LD5 (*) USER1 (*) PA14
Red LD6 (*) USER2 (*) PA13
Orange LD7 - PH7
Template:Blue LD8 - PD11
Warning white.png Warning
(*) Both a LED and a button are connected to the same GPIO, with inverted logic for the LED control (so the LED is switched on when the GPIO output is set to low).