Difference between revisions of "STM32MP157x-DKx - hardware description"

[quality revision] [quality revision]
m
 
m
 

Template:ToBeReviewedByProductMarketing

Template:ArticleMainWriter Template:ReviewersList Template:ArticleApprovedVersion

This article provides an overview of STM32MP157x-DKx Discovery kits.

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 valid for the STM32MP157A-DK1 More info green.png, STM32MP157D-DK1 Warning.png, STM32MP157C-DK2 More info green.png and STM32MP157F-DK2 Warning.png Discovery kits: the part numbers are specified in the STM32MP15 microprocessor part numbers article.

Warning.png This article is only an introduction to the
STM32MP157X_DKX
STM32MP157x-DKx Discovery kits. Detailed information can be found in the
STM32MP157X
STM32MP157x-
DKX
DKx discovery board user manual.

2 Board assembly[edit]

STM32MP157X-DKX - board assembly

3 Board overview[edit]

The STM32MP157x-DKx Discovery kits packages (STM32MP157A-DK1 More info green.png, STM32MP157D-DK1 Warning.png, STM32MP157C-DK2 More info green.png and STM32MP157F-DK2 Warning.png) are delivered assembled, and contain the items listed below. A USB Type-C cable is also included.

Please note that;

  • the STM32MP157A-DK1 More info green.png and STM32MP157D-DK1 Warning.png Discovery kits neither include the "WLAN + Bluetooth" component (muRata LBEE5KL1DX), nor the MB1407 daughterboard DSI display
  • the STM32MP157C-DK2 More info green.png and STM32MP157F-DK2 Warning.png Discovery kits include the "WLAN + Bluetooth" component (muRata LBEE5KL1DX), and the MB1407 daughterboard DSI display
DSI ribbon cable: only for the STM32MP157X-
Position Description
1 MB1272 motherboard ("WLAN + Bluetooth" component included only for the STM32MP157C-DK2 More info green.png and STM32MP157F-DK2 Warning.png Discovery kits)
2 MB1407 daughterboard DSI display (480x800 pixels): only for the STM32MP157XSTM32MP157C-DK2 Discovery kit More info green.png and STM32MP157F-DK2 Warning.png Discovery kits
3 microSD card 4


STM32MP157x-DKx Discovery kit assembled
STM32MP157C-DK2 Discovery kit
5 Spacer for DSI display daughterboard
shown here (picture not contractual)


3 Board overview[edit]

Position Description
1 MB1272 motherboard
2 MB1407 daughterboard DSI display (480x800 pixels): only for the
STM32MP157X
STM32MP157C-DK2
Discovery kit File:STM32MP157X-DKX corner HDMI.png STM32MP157X-DKX Discovery kit (front side view from HDMI connector)
Board name: STM32MP157X-DK2
More info green.png and STM32MP157F-DK2 Warning.png Discovery kits
3 (CN15) microSD card
STM32MP157x-DKx Discovery kit front side (first angle)
STM32MP157C-DK2 shown here (picture is not contractual)
Position Description Position Description
10 (
CN1
U5)
2 USB Type-A (host)
DDR3L 16 bits 11 (CN5) 2 USB Type-A (host)
12 (
CN7
U13)
USB Type-C (DRP)
STM32MP157x 12x12 13 (
CN9
U14) HDMI
connector
14 (
LD4
CN7 and U12)
ST
USB Type-
Link LED
C (
bicolor
DRP)
[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
CN8 and (U18) Ethernet
16 (B1) Wakeup button 17 (CN10) Audio headset
18 (U20) Audio codec (Cirrus CS42L51) 19 (B2) Reset button
20 (LD5) User LED (
red
green)
)
[
2
LEDs 1] 21 (B3) User button (USER1)
22 (
LD5
LD6) User LED (
green
red)[
2
LEDs 1] 23 (
B2
B4)
Reset
User button (USER2)
24 (
U20
LD7)
Audio codec (Cirrus CS42L51)
User LED (orange)[LEDs 1] 25 (
CN10
LD8)
Audio headset
User LED (blue)[LEDs 1]
26 (
B1
CN11 and U19)
Power-on button
USB micro-B (ST-LINK/V2-1) 27 (
CN8
LD4)
Ethernet File:STM32MP157X-DKX corner microSD card.png STM32MP157X-DKX Discovery kit (front side view from microSD card connector)
Board name: STM32MP157X-DK2
ST-LINK/V2-1 LED (bicolor)[LEDs 2]
28 ('CN12) ST-LINK/V2-1 DFU 29 (CN9) HDMI connector


STM32MP157x-DKx Discovery kit front side (second angle)
STM32MP157C-DK2 shown here (picture is not contractual)
Position Description Position Description
10 (
CN1
U5) DDR3L 16 bits 11 (CN5 and U7) 2 USB Type-A (host)
26 (CN8
12 (U13) STM32MP157x 12x12 13 (U14) HDMI
14 (CN7 and U12) USB Type-C (DRP) 15 (CN8 and (U18) Ethernet
30 (LD1) USB Type-A LED (red)[LEDs 3] 31 (CN2) GPIO expansion
32 (U4) PMIC (STPMIC1A) 33 (CN4) DSI LCD connector
34 (LD3) Ethernet LED (green)[
3
LEDs 4]
31
35 (CN6) USB Type-C (power 5V-3A)
32
36 (LD2) Power LED (green)[
4
LEDs 5]
33
37 (U8) WLAN + Bluetooth (muRata LBEE5KL1DX): only for
STM32MP157XFile:STM32MP157X-DKX back side.png STM32MP157X-DKX Discovery kit (back side)
Board name: STM32MP157X-DK2
STM32MP157C-DK2
Discovery kit 34 (CN4) DSI LCD connector 35 (LD1) USB Type-A LED (red)[5] 36 (CN2) GPIO expansion
More info green.png and STM32MP157F-DK2 Warning.png Discovery kits
40 (CN13) Arduino Uno connector (socket 10x1) 41 (CN14) Arduino Uno connector (socket 8x1)


STM32MP157x-DKx Discovery kit back side
STM32MP157C-DK2 shown here (picture is not contractual)
44 (
Position Description 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
SW1) Boot mode selection
45
44 (CN16) Arduino Uno connector (socket 8x1)
46
45 (CN17) Arduino Uno connector (socket 6x1)


Details about some LEDs:

  1. LD4: flashes red if ST-Link connection not established, else green ↑ 2
  2. 1.0
  3. 2
  4. 1.1
  5. 2
  6. 1.2
  7. 2
  8. 1.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
  9. LD4: flashes red if ST-LINK/V2-1 connection not established, else green
  10. LD1: turns red if USB Type-A connection established
  11. LD3: flashes green when Ethernet connection established
  12. LD2: turns green if power connection established
  13. 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 STM32MP157XSTM32MP157x_DKX DKx Discovery kits. As shown in the board overview, other connectors are available for these boards (for example HDMI). STM32MP157X-DKX - board connections


MB1272 motherboard: STM32MP157x 12x12,  PMIC,  DDR3 MicroSD card slot 2 x USB Type-A (host) → mouse,  keyboard or USB driver 2 x USB Type-A (host) → mouse,  Keyboard or USB driver USB micro-B (ST-LINK/V2-1) → PC virtual COM port and debug Reset button Ethernet → Network USB Type-C (power 5V-3A)
STM32MP157x-DKx Discovery kit connections
STM32MP157C-DK2 shown here without the MB1407 daughterboard DSI display to avoid hiding the connections (picture is not contractual)


5 Boot related switches[edit]

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

Info.png "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):

File:STM32MP157X-DKX boot switches forced USB.png
Forced USB boot for flashing
File:STM32MP157X-DKX boot switches engineering mode.png
Engineering boot
File:STM32MP157X-DKX boot switches microSD card.png
Boot from microSD card

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
Function STM32 pin Pin
number
Pin
number
Description
STM32 pin Function
3V3 - 1 2
VIN
- 5V
GPIO2 / I2C5_SDA PA12 3 4
VIN
- 5V
GPIO3 / I2C5_SCL PA11 5 6 - GND
GPIO4 / MCO1 PA8 7 8 PB10 GPIO14 / USART3_TX
GND - 9 10 PB12 GPIO15 / USART3_RX
GPIO17 / USART3_RTS PG8 11 12 PI5 GPIO18 / SAI2_SCKA[EX 1]
GPIO27 / SDMMC3_D3 PD7 13 14 - GND
GPIO22 / SDMMC3_CK PG15 15 16 PF1 GPIO23 / SDMMC3_CMD
3V3 - 17 18 PF0 GPIO24 / SDMMC3_D0
GPIO10 / SPI5_MOSI PF9 19 20 - GND
GPIO9 / SPI5_MISO PF8 21 22 PF4 GPIO25 / SDMMC3_D1
GPIO11 / SPI5_SCK PF7 23 24 PF6 GPIO8 / SPI5_NSS
GND - 25 26
PI_
PF3 GPIO7
ID_SD MCO2
I2C1_SDA[EX 2] PF15 27 28
ID_SC
PD12 I2C1_SCL[EX 2]
GPIO5 / MCO2 PG2 29 30 - GND
GPIO6 / TIM5_CH2 PH11 31 32 PD13 GPIO12 / TIM4_CH2
GPIO13 / TIM3_CH2 PC7 33 34 - GND
GPIO19 / SAI2_FSA[EX 1] PI7 35 36 PB13 GPIO16 / USART3_CTS
GPIO26 / SDMMC3_D2 PF5 37 38 PI6 GPIO20 / SAI2_SDA[EX 1]
GND - 39 40 PF11 GPIO21 / SAI2_SDB[EX 1]
  1. 1.0 1.1 1.2 1.3 The SAI2 is shared between the audio codec and the GPIO expansion connector. By default, the SAI2 is connected to the audio codec thanks to Solder Bridge SB13, SB14, SB15, and SB16: more details in the STM32MP157x-DKx discovery board user manual.
  2. 2.0 2.1 Warning: the I2C1 is used to communicate with several on-board peripherals, but is also available on the GPIO expansion connector. So, it is important to ensure that new components added on the I2C1 connection will not disturb the bus behavior.

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
names Signal name STM32 pin Comment
1 ARD_D8 PG3 IO
2 ARD_D9 PH6 TIM12_CH1
3 ARD_D10 PE11 SPI4_NSS and TIM1_CH2
4 ARD_D11 PE14 SPI4_MOSI and TIM1_CH4
5 ARD_D12 PE13 SPI4_MISO
6 ARD_D13 PE12 SPI4_SCK
7 GND - GND
8 VREFP - VREF+
9 ARD_D14 PA12 I2C5_SDA
10 ARD_D15 PA11 I2C5_SCL
Socket 8x1 (CN14)
Description
Pin
number
names
GPIO
Signal name
D7 TIM1_CH1 D6 TIM4_CH4 D5 GPIO D4
STM32 pin Comment
1 ARD_D0 PE7 UART7_RX
2 ARD_D1 PE8 UART7_TX
3 ARD_D2 PE1 IO
4 ARD_D3 PD14 TIM4_CH3
D3
5
GPIO
ARD_D4
D2 USART7_TX D1 USART7_RX D0
PE10 IO
6 ARD_D5 PD15 TIM4_CH4
7 ARD_D6 PE9 TIM1_CH1
8 ARD_D7 PD1 IO
socket 8x1 (CN16)
Description
Pin
number ------ ------ 3V3 IOREF RESET NRST 3V3 3V3 5V 5V GND GND GND GND ---- VIN
names Signal name STM32 pin Comment
1 NC - NC (reserved for test)
2 3V3 - IOREF 3V3
3 NRST NRST NRST
4 3V3 - 3V3
5 5V - 5V
6 GND - GND
7 GND - GND
8 VIN - Not connected
Socket 6x1 (CN17)
Description
Pin
number
names Signal name STM32 pin Comment
1 A0 PF14 ADC1_IN0
A0
2 A1 PF13 ADC1_IN1
A1 ADC2
3 A2 ANA0 ADC1_IN6
A2
4
ADC2_IN2
A3 ANA1 ADC1_
IN13
IN2
5 A4 PC3 / PA12 ADC1_
IN6
IN13
6 A5 PF12 / PA11

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.png (*) 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).



<noinclude>

{{ToBeReviewedByProductMarketing}} 

{{ArticleMainWriter | Jean-ChristopheT}}
{{ReviewersList | NathalieS, BernardP, GeraldB, LaurentB}}
{{ArticleApprovedVersion | Jean-ChristopheT |BernardP, GeraldB | No previous approved version | AnneJ - 09Aug'18 - 8429 | 9Aug'18}}

[[Category:STM32MP15 Discovery kits|02]]
[[Category:STM32MP15]]
[[Category:ST boards]]</noinclude>

This article provides an overview of STM32MP157x-DKx Discovery kits.
==Article purpose==
This article provides an overview of STM32MP157X_DKX Discovery kits. It briefly describes:
* how to assemble the different elements provided in the commercial box
* briefly describes:
* 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
{{ReviewsComments|JCT w851: add a link to the [STM32MP15 resources]] article when the STM32MP157X-DKX user manual will be added in this article}}This article is valid for the {{Board | type=157A-DK1 | name=short}}, {{Board | type=157D-DK1 | name=short}}, {{Board | type=157C-DK2 | name=short}} and {{Board | type=157F-DK2 | name=short}} Discovery kits: the part numbers are specified in the [[STM32MP15 microprocessor#Part number codification|STM32MP15 microprocessor part numbers]] article.
{{Warning|This article is only an introduction to the STM32MP157X_DKXSTM32MP157x-DKx Discovery kits. Detailed information can be found in the STM32MP157X-DKX user manual.

==Board assembly==
{{:STM32MP157X-DKX[[STM32MP15 resources#UM2534|'''STM32MP157x-DKx discovery board user manual''']].}}

==Board assembly==
{{:STM32MP157x-DKx - board assembly}}

==Board overview==
{| class="st-table"|+ 
! 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|thumb|upright=4|left|STM32MP157X-DKX Discovery kit (front side view from HDMI connector) <br> Board name: '''STM32MP157X-DK2''']]
{|
|+ 
! Position !! Description                                               
|-
| 10 (<span id{{=}}"MB1272-CN1">'''CN1{{Board | type=157C-DK2 | name=short}} and {{Board | type=157F-DK2 | name=short}} Discovery kits
|-
| 3 (<span id{{=}}"MB1272-CN15">'''CN15'''</span>) || microSD card
|}

[[File: STM32MP157x-DKx_front_side_1.jpg | thumb | 800px | left |  link= | STM32MP157x-DKx Discovery kit front side (first angle) <br> '''STM32MP157C-DK2''' shown here (picture is not contractual)]]
{| class="st-table"
|+ 
! Position !! Description !! Position !! Description
|-
| 10 (<span id{{=}}"MB1272-U5">'''U5'''</span>) || DDR3L 16 bits 
|| 11 (<span id{{=}}"MB1272-CN5">'''CN5'''</span>) || 2 USB Type-A (host) 
|-
| 1112 (<span id{{=}}"MB1272-CN5U13">'''CN5U13'''</span>) || 2 USB Type-A (host) 
|-
| 12 (<span id{{=}}"MB1272-CN7">'''CN7'''</span>STM32MP157x 12x12
|| 13 (<span id{{=}}"MB1272-U14">'''U14'''</span>) || HDMI
|-
| 14 (<span id{{=}}"MB1272-CN7">'''CN7'''</span> and <span id{{=}}"MB1272-U12">'''U12'''</span>) || USB Type-C (DRP)
|-
| 13| 15 (<span id{{=}}"MB1272-CN9CN8">'''CN9CN8'''</span>) || HDMI connector
|-
| 14 (<span id{{=}}"MB1272-LD4">'''LD4'''</span>) || ST-Link LED (bicolor)<ref>LD4: flashes red if ST-Link connection not established, else green</ref> 

|-
| 15 (<span id{{=}}"MB1272-CN11">'''CN11'''</span>) || USB micro-B (ST-Link V2-1)
|-
| 16 (<span id{{=}}"MB1272-LD8">'''LD8'''</span>) || User LED (blue and (<span id{{=}}"MB1272-U18">'''U18'''</span>) || Ethernet
|-
| 16 (<span id{{=}}"MB1272-B1">'''B1'''</span>) ||  Wakeup button
|| 17 (<span id{{=}}"MB1272-CN10">'''CN10'''</span>) || Audio headset
|-
| 18 (<span id{{=}}"MB1272-U20">'''U20'''</span>) || Audio codec (Cirrus CS42L51)
|| 19 (<span id{{=}}"MB1272-B2">'''B2'''</span>) || Reset button
|-
| 20 (<span id{{=}}"MB1272-LD5">'''LD5'''</span>) || User LED (green)<ref group="LEDs" name="User LEDs">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</ref>

|-
| 17| 21 (<span id{{=}}"MB1272-LD7B3">'''LD7B3'''</span>) || User LED (orange)<ref name="User LEDs"/>

|-
| 18 (<span id{{=}}"MB1272-B4">'''B4'''</span>) || User button (USER2)
|-
| 19 (<span id{{=}}"MB1272-U13">'''U13'''</span>) || STM32MP157X 12x12
|-
| 20 (<span id{{=}}"MB1272-LD6">'''LD6'''</span>) || User LED (red))<ref name="User LEDs"/>

|-
| 21 (<span id{{=}}"MB1272-B3">'''B3'''</span>) || User button (USER1)
|-
| 22 (<span id{{=}}"MB1272-LD5">'''LD5'''</span>) || User LED (green)<ref name="User LEDs"/>

|-
| 23 (<span id{{=}}"MB1272-B2">'''B2'''</span>) || Reset button
|-
| 24 (<span id{{=}}"MB1272-U20">'''U20'''</span>) || Audio codec (Cirrus CS42L51)
|-
| 25 (<span id{{=}}"MB1272-CN10">'''CN10'''</span>) || Audio headset
|-
| 26 (<span id{{=}}"MB1272-B1">'''B1'''</span>) || Power-on button
|-
| 27 ('''CN8''') || Ethernet
|}
<br clear=all>


[[File: STM32MP157X-DKX_corner_microSD_card.png|thumb|upright=4|left|STM32MP157X-DKX Discovery kit (front side view from microSD card connector) <br> Board name: '''STM32MP157X-DK2''']]
{|
|+ 
! Position !! Description                                               
|-
| 10 ('''CN1''') || 2 USB Type-A (host)
|-
| 26 (<span id{{=}}"MB1272-CN8">'''CN8'''</span>) || Ethernet
|-
| 30button (USER1)
|-
| 22 (<span id{{=}}"MB1272-LD6">'''LD6'''</span>) || User LED (red)<ref group="LEDs" name="User LEDs"/>

|| 23 (<span id{{=}}"MB1272-B4">'''B4'''</span>) || User button (USER2)
|-
| 24 (<span id{{=}}"MB1272-LD7">'''LD7'''</span>) || User LED (orange)<ref group="LEDs" name="User LEDs"/>

|| 25 (<span id{{=}}"MB1272-LD8">'''LD8'''</span>) || User LED (blue)<ref group="LEDs" name="User LEDs"/>

|-
| 26 (<span id{{=}}"MB1272-CN11">'''CN11'''</span> and <span id{{=}}"MB1272-U19">'''U19'''</span>) || USB micro-B (ST-LINK/V2-1)
|| 27 (<span id{{=}}"MB1272-LD4">'''LD4'''</span>) || ST-LINK/V2-1 LED (bicolor)<ref group="LEDs">LD4: flashes red if ST-LINK/V2-1 connection not established, else green</ref> 

|-
| 28 (<span id{{=}}"MB1272-CN12">'''CN12''</span>) || ST-LINK/V2-1 DFU
|| 29 (<span id{{=}}"MB1272-CN9">'''CN9'''</span>) || HDMI connector
|}
<br clear=all>

[[File: STM32MP157x-DKx_front_side_2.jpg | thumb | 800px | left | link= | STM32MP157x-DKx Discovery kit front side (second angle) <br> '''STM32MP157C-DK2''' shown here (picture is not contractual)]]
{| class="st-table"
|+ 
! Position !! Description !! Position !! Description
|-
| 10 (<span id{{=}}"MB1272-U5">'''U5'''</span>) || DDR3L 16 bits 
|| 11 (<span id{{=}}"MB1272-CN5">'''CN5'''</span> and <span id{{=}}"MB1272-U7">'''U7'''</span>) || 2 USB Type-A (host) 
|-
| 12 (<span id{{=}}"MB1272-U13">'''U13'''</span>) || STM32MP157x 12x12
|| 13 (<span id{{=}}"MB1272-U14">'''U14'''</span>) || HDMI
|-
| 14 (<span id{{=}}"MB1272-CN7">'''CN7'''</span> and <span id{{=}}"MB1272-U12">'''U12'''</span>) || USB Type-C (DRP)
|| 15 (<span id{{=}}"MB1272-CN8">'''CN8'''</span> and (<span id{{=}}"MB1272-U18">'''U18'''</span>) || Ethernet
|-
| 30 (<span id{{=}}"MB1272-LD1">'''LD1'''</span>) || USB Type-A LED (red)<ref group="LEDs">LD1: turns red if USB Type-A connection established</ref>

|| 31 (<span id{{=}}"MB1272-CN2">'''[[#GPIO expansion connector|CN2]]'''</span>) || GPIO expansion 
|-
| 32 (<span id{{=}}"MB1272-U4">'''U4'''</span>) || PMIC (STPMIC1A)
|| 33 (<span id{{=}}"MB1272-CN4">'''CN4'''</span>) || DSI LCD connector
|- 
| 34 (<span id{{=}}"MB1272-LD3">'''LD3'''</span>) || Ethernet LED (green)<ref group="LEDs">LD3: flashes green when Ethernet connection established</ref>

|-
| 31| 35 (<span id{{=}}"MB1272-CN6">'''CN6'''</span>) || USB Type-C (power 5V-3A)
|-
| 3236 (<span id{{=}}"MB1272-LD2">'''LD2'''</span>) || Power LED (green)<ref group="LEDs">LD2: turns green if power connection established</ref>

|-
| 33| 37 (<span id{{=}}"MB1272-U8">'''U8'''</span>) || WLAN + Bluetooth (muRata LBEE5KL1DX): only for STM32MP157X-'''DK2''' Discovery kit
|-
| 34 (<span id{{=}}"MB1272-CN4">'''CN4'''</span>) || DSI LCD connector
|-
| 35 (<span id{{=}}"MB1272-LD1">'''LD1'''</span>) || USB Type-A LED (red)<ref>LD1: turns red if USB Type-A connection established</ref>

|-
| 36 (<span id{{=}}"MB1272-CN2">'''[[#GPIO expansion connector|CN2]]'''</span>) || GPIO expansion 
|}
<br clear=all>


[[File: STM32MP157X-DKX_back_side.png|thumb|upright=4|left|STM32MP157X-DKX Discovery kit (back side) <br> Board name: '''STM32MP157X-DK2''']]
{|
|+ 
! Position !! Description                                               {{Board | type=157C-DK2 | name=short}} and {{Board | type=157F-DK2 | name=short}} Discovery kits
|-
| 40 (<span id{{=}}"MB1272-CN13">'''[[#Arduino Uno connector|CN13]]'''</span>) || Arduino Uno connector (socket 10x1)
|| 41 (<span id{{=}}"MB1272-CN14">'''[[#Arduino Uno connector|CN14]]'''</span>) || Arduino Uno connector (socket 8x1)
|}
<br clear=all>

[[File: STM32MP157x-DKx_back_side.jpg | thumb | 800px | left | link= | STM32MP157x-DKx Discovery kit back side <br> '''STM32MP157C-DK2''' shown here (picture is not contractual)]]
{| class="st-table"
|+ 
! Position !! Description !! Position !! Description|-
| 40 (<span id{{=}}"MB1272-CN13">'''[[#Arduino Uno connector|CN13]]'''</span>) || Arduino Uno connector (socket 10x1)
|-| 41 (<span id{{=}}"MB1272-CN14">'''[[#Arduino Uno connector|CN14]]'''</span>) || Arduino Uno connector (socket 8x1)
|-
| 42 (<span id{{=}}"MB1272-LD9">'''LD9'''</span>) || Arduino LED (green)
|-| 43 (<span id{{=}}"MB1272-CN15SW1">'''CN15'''</span>) || microSD 3.0 card
|-
| 44 (<span id{{=}}"MB1272-SW1">'''[[#Boot related switches|SW1]]'''</span>) || Boot mode selection
|-
| 4544 (<span id{{=}}"MB1272-CN16">'''[[#Arduino Uno connector|CN16]]'''</span>) || Arduino Uno connector (socket 8x1)
|-
| 46| 45 (<span id{{=}}"MB1272-CN17">'''[[#Arduino Uno connector|CN17]]'''</span>) || Arduino Uno connector (socket 6x1)
|}<br clear=all>

Details about some LEDs:<references group="LEDs"/>


==Board connection==
The connections shown in the picture below are the ones recommended to start with the  STM32MP157X_DKXSTM32MP157x_DKx Discovery kits. As shown in the [[#Board overview|board overview]], other connectors are available for these boards (for example HDMI).
{{:STM32MP157X-DKXSTM32MP157x-DKx - board connections}}

==Boot related switches==
The following table defines the different combination of the boot mode selection switches:
{{Info|"Boot 1" is grounded (always 0) on the Discovery kits}}
{| class="st-table" style="text-align:center"
|+ Boot modes
! Boot mode !! Boot 0 !! Boot 1 !! Boot 2
|-
| Forced USB boot<br>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 ([[#MB1272-SW1|SW1]] on the board overview picture):
{| | [[File:STM32MP157X-DKXclass="st-table"
| [[File:STM32MP157x-DKx_boot_switches_forced_USB.png|thumb|center|300px|link=|Forced USB boot for flashing]]
|-| [[File:STM32MP157X-DKXSTM32MP157x-DKx_boot_switches_engineering_mode.png|thumb|center|300px|link=|Engineering boot]]
|-| [[File:STM32MP157X-DKXSTM32MP157x-DKx_boot_switches_microSD_card.png|thumb|center|300px|link=|Boot from microSD card]]
|}
==GPIO mapping==

===GPIO expansion connector===
The pins of the GPIO expansion connector ([[#MB1272-CN2|CN2]] on the board overview picture) are described in the following table:

{| class="st-table" style="text-align:center;"
|+ 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 || Function !! STM32 pin !! Pin !! Pin !! STM32 pin !! Function
|-
| 3V3 || - || 1 || 2 || - || 5V
|-
| GPIO2 / I2C5_SDA || PA12 || 3 || 4 || - || 5V
|-
| GPIO3 / I2C5_SCL || PA11 || 5 || 6 || - || GND
|-
| GPIO4 / MCO1 || PA8 || 7 || 8 || PB10 || GPIO14 / <span id{{=}}"USART3_TX">USART3_TX</span>

|-
| 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
|}
PB12 || GPIO15 / USART3_RX
|-
| GPIO17 / USART3_RTS || PG8 || 11 || 12 || PI5 || GPIO18 / SAI2_SCKA<ref group="EX" name="SAI2">The SAI2 is shared between the audio codec and the GPIO expansion connector. By default, the SAI2 is connected to the audio codec thanks to Solder Bridge SB13, SB14, SB15, and SB16: more details in the [[STM32MP15 resources#UM2534|STM32MP157x-DKx discovery board user manual]].</ref>

|-
| GPIO27 / SDMMC3_D3 || PD7 || 13 || 14 || - || GND
|-
| GPIO22 / SDMMC3_CK || PG15 || 15 || 16 || PF1 || GPIO23 / SDMMC3_CMD
|-
| 3V3 || - || 17 || 18 || PF0 || GPIO24 / SDMMC3_D0
|-
| GPIO10 / SPI5_MOSI || PF9 || 19 || 20 || - || GND
|-
| GPIO9 / SPI5_MISO || PF8 || 21 || 22 || PF4 || GPIO25 / SDMMC3_D1
|-
| GPIO11 / SPI5_SCK || PF7 || 23 || 24 || PF6 || GPIO8 / SPI5_NSS
|-
| GND || - || 25 || 26 || PF3 || GPIO7
|-
| I2C1_SDA<ref group="EX" name="I2C1">Warning: the I2C1 is used to communicate with several on-board peripherals, but is also available on the GPIO expansion connector. So, it is important to ensure that new components added on the I2C1 connection will not disturb the bus behavior.</ref><sup> || PF15 || 27 || 28 || PD12 || I2C1_SCL<ref group="EX" name="I2C1"/>

|-
| GPIO5 / MCO2 || PG2 || 29 || 30 || - || GND
|-
| GPIO6 / TIM5_CH2 || PH11 || 31 || 32 || PD13 || GPIO12 / TIM4_CH2
|-
| GPIO13 / TIM3_CH2 || PC7 || 33 || 34 || - || GND
|-
| GPIO19 / SAI2_FSA<ref group="EX" name="SAI2"/> || PI7 || 35 || 36 || PB13 || GPIO16 / USART3_CTS
|-
| GPIO26 / SDMMC3_D2 || PF5 || 37 || 38 || PI6 || GPIO20 / SAI2_SDA<ref group="EX" name="SAI2"/>

|-
| GND || - || 39 || 40 || PF11 || GPIO21 / SAI2_SDB<ref group="EX" name="SAI2"/>

|}<references group="EX"/>

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

{| class="wikitablest-table"
! colspan="42" | Arduino Uno connector
|- style="vertical-align:top;"
|
{| class="st-table" style="text-align:center;"
|+ Socket 10x1 ([[#MB1272-CN2|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
|}
||
{| Pin names !! Signal name !! STM32 pin !! Comment
|-
| 1 || ARD_D8 || PG3 || IO
|-
| 2 || ARD_D9 || PH6 || TIM12_CH1
|-
| 3 || ARD_D10 || PE11 || SPI4_NSS and TIM1_CH2
|-
| 4 || ARD_D11 || PE14 || SPI4_MOSI and TIM1_CH4 
|-
| 5 || ARD_D12 || PE13 || SPI4_MISO
|-
| 6 || ARD_D13 || PE12 || SPI4_SCK
|-
| 7 || GND || - || GND
|-
| 8 || VREFP || - || VREF+
|-
| 9 || ARD_D14 || PA12 || I2C5_SDA
|-
| 10 || ARD_D15 || PA11 || I2C5_SCL 
|}
||
{| class="st-table" style="text-align:center;"
|+ Socket 8x1 ([[#MB1272-CN2|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
|}
||
{| Pin names !! Signal name !! STM32 pin !! Comment
|-
| 1 || ARD_D0 || PE7 || UART7_RX
|-
| 2 || ARD_D1 || PE8 || UART7_TX
|-
| 3 || ARD_D2 || PE1 || IO
|-
| 4 || ARD_D3 || PD14 || TIM4_CH3
|-
| 5 || ARD_D4 || PE10 || IO
|-
| 6 || ARD_D5 || PD15 || TIM4_CH4
|-
| 7 || ARD_D6 || PE9 || TIM1_CH1
|-
| 8 || ARD_D7 || PD1 || IO
|}
|- style="vertical-align:top;"
|
{| class="st-table" style="text-align:center;"
|+ socket 8x1 ([[#MB1272-CN2|CN16]])
|-
! Description !! Pin number
|-
| ------ || ------
|-
| 3V3 || IOREF
|-
| RESET || NRST
|-
| 3V3 || 3V3
|-
| 5V || 5V
|-
| GND || GND
|-
| GND || GND
|-
| ---- || VIN
|}
||
{| Pin names !! Signal name !! STM32 pin !! Comment
|-
| 1 || NC  || - || NC (reserved for test)
|-
| 2 || 3V3 || - || IOREF 3V3
|-
| 3 || NRST || NRST || NRST
|-
| 4 || 3V3 || - || 3V3
|-
| 5 || 5V || - || 5V
|-
| 6 || GND || - || GND
|-
| 7 || GND || - || GND
|-
| 8 || VIN || - || Not connected
|}
||
{| class="st-table" style="text-align:center;"
|+ Socket 6x1 ([[#MB1272-CN2|CN17]])
! Description !! Pin number
|-
| ADC1_IN0 || A0
|-
| ADC1_IN1 || A1
|-
| ADC2_IN6 || A2
|-
| ADC2_IN2 || A3
|-
| ADC1_IN13 || A4
|-
| ADC1_IN6 || A5
|Pin names !! Signal name !! STM32 pin !! Comment
|-
| 1 || A0 || PF14 || ADC1_IN0
|-
| 2 || A1 || PF13 || ADC1_IN1
|-
| 3 || A2 || ANA0 || ADC1_IN6
|-
| 4 || A3 || ANA1 || ADC1_IN2
|-
| 5 || A4 || PC3 / PA12 || ADC1_IN13
|-
| 6 || A5 || PF12 / PA11 || 
|}
|}

===User buttons and LEDs===
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.

{| class="st-table" style="text-align:center;"
|+ GPIO for user buttons and LEDs
! LED color and label
! Button label
! GPIO
|-
| {{<span style="color: green;">Green|Green}}</span> LD5 (*)
| USER1 (*)
| PA14
|-
| {{<span style="color: red;">Red|Red}}</span> LD6 (*)
| USER2 (*)
| PA13
|-
| {{<span style="color: orange;">Orange|Orange}}</span> LD7
| -
| PH7
|-
| {{<span style="color: blue;">Blue|Blue}}</span> LD8
| -
| PD11
|}

{{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).}}

<noinclude>

{{ReviewsComments|File to be reviewed by the marketing communication team}}
{{PublicationRequestId | 8429 | 2018-08-09 | AnneJ}}
[[Category:STM32MP15 Discovery kits|02]]
[[Category:STM32MP15]]
[[Category:ST boards]]</noinclude>
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>
+
This article provides an overview of STM32MP157x-DKx Discovery kits.
{{ToBeReviewedByProductMarketing}}
 
 
 
{{ArticleMainWriter | Jean-ChristopheT}}
 
{{ReviewersList | NathalieS, BernardP, GeraldB, LaurentB}}
 
{{ArticleApprovedVersion | Jean-ChristopheT |BernardP, GeraldB | No previous approved version | AnneJ - 09Aug'18 - 8429 | 9Aug'18}}
 
 
 
[[Category:STM32MP15 Discovery kits|02]]
 
[[Category:STM32MP15]]
 
[[Category:ST boards]]
 
</noinclude>
 
   
 
==Article purpose==
 
==Article purpose==
This article provides an overview of STM32MP157X_DKX Discovery kits. It briefly describes:
+
This article briefly describes:
* how to assemble the different elements provided in the commercial box
 
 
* what are the different components present on the board
 
* what are the different components present on the board
 
* how to connect the board to external material
 
* how to connect the board to external material
Line 19: Line 8:
 
* what are the configurations of the connector pins
 
* what are the configurations of the connector pins
   
{{ReviewsComments|JCT w851: add a link to the [STM32MP15 resources]] article when the STM32MP157X-DKX user manual will be added in this article}}
+
This article is valid for the {{Board | type=157A-DK1 | name=short}}, {{Board | type=157D-DK1 | name=short}}, {{Board | type=157C-DK2 | name=short}} and {{Board | type=157F-DK2 | name=short}} Discovery kits: the part numbers are specified in the [[STM32MP15 microprocessor#Part number codification|STM32MP15 microprocessor part numbers]] article.
This article is only an introduction to the STM32MP157X_DKX Discovery kits. Detailed information can be found in the STM32MP157X-DKX user manual.
+
{{Warning|This article is only an introduction to the STM32MP157x-DKx Discovery kits. Detailed information can be found in the [[STM32MP15 resources#UM2534|'''STM32MP157x-DKx discovery board user manual''']].}}
   
 
==Board assembly==
 
==Board assembly==
{{:STM32MP157X-DKX - board assembly}}
+
{{:STM32MP157x-DKx - board assembly}}
   
 
==Board overview==
 
==Board overview==
{|
+
{| class="st-table"
 
|+  
 
|+  
 
! Position !! Description                                               
 
! Position !! Description                                               
Line 32: Line 21:
 
| 1 || [[MB1272]] motherboard
 
| 1 || [[MB1272]] motherboard
 
|-
 
|-
| 2 || [[MB1407]] daughterboard DSI display (480x800 pixels): only for the STM32MP157X-'''DK2''' Discovery kit
+
| 2 || [[MB1407]] daughterboard DSI display (480x800 pixels): only for the {{Board | type=157C-DK2 | name=short}} and {{Board | type=157F-DK2 | name=short}} Discovery kits
 
|-
 
|-
| 3 || microSD card
+
| 3 (<span id{{=}}"MB1272-CN15">'''CN15'''</span>) || 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|thumb|upright=4|left|STM32MP157X-DKX Discovery kit (front side view from HDMI connector) <br> Board name: '''STM32MP157X-DK2''']]
+
[[File: STM32MP157x-DKx_front_side_1.jpg | thumb | 800px | left | link= | STM32MP157x-DKx Discovery kit front side (first angle) <br> '''STM32MP157C-DK2''' shown here (picture is not contractual)]]
{|
+
{| class="st-table"
 
|+  
 
|+  
! Position !! Description                                              
+
! Position !! Description !! Position !! Description
 
|-
 
|-
| 10 (<span id{{=}}"MB1272-CN1">'''CN1'''</span>) || 2 USB Type-A (host)  
+
| 10 (<span id{{=}}"MB1272-U5">'''U5'''</span>) || DDR3L 16 bits
  +
|| 11 (<span id{{=}}"MB1272-CN5">'''CN5'''</span>) || 2 USB Type-A (host)  
 
|-
 
|-
| 11 (<span id{{=}}"MB1272-CN5">'''CN5'''</span>) || 2 USB Type-A (host)  
+
| 12 (<span id{{=}}"MB1272-U13">'''U13'''</span>) || STM32MP157x 12x12
  +
|| 13 (<span id{{=}}"MB1272-U14">'''U14'''</span>) || HDMI
 
|-
 
|-
| 12 (<span id{{=}}"MB1272-CN7">'''CN7'''</span>) || USB Type-C (DRP)
+
| 14 (<span id{{=}}"MB1272-CN7">'''CN7'''</span> and <span id{{=}}"MB1272-U12">'''U12'''</span>) || USB Type-C (DRP)
  +
|| 15 (<span id{{=}}"MB1272-CN8">'''CN8'''</span> and (<span id{{=}}"MB1272-U18">'''U18'''</span>) || Ethernet
 
|-
 
|-
| 13 (<span id{{=}}"MB1272-CN9">'''CN9'''</span>) || HDMI connector
+
| 16 (<span id{{=}}"MB1272-B1">'''B1'''</span>) || Wakeup button
  +
|| 17 (<span id{{=}}"MB1272-CN10">'''CN10'''</span>) || Audio headset
 
|-
 
|-
| 14 (<span id{{=}}"MB1272-LD4">'''LD4'''</span>) || ST-Link LED (bicolor)<ref>LD4: flashes red if ST-Link connection not established, else green</ref>  
+
| 18 (<span id{{=}}"MB1272-U20">'''U20'''</span>) || Audio codec (Cirrus CS42L51)
  +
|| 19 (<span id{{=}}"MB1272-B2">'''B2'''</span>) || Reset button
 
|-
 
|-
| 15 (<span id{{=}}"MB1272-CN11">'''CN11'''</span>) || USB micro-B (ST-Link V2-1)
+
| 20 (<span id{{=}}"MB1272-LD5">'''LD5'''</span>) || User LED (green)<ref group="LEDs" name="User LEDs">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</ref>
  +
|| 21 (<span id{{=}}"MB1272-B3">'''B3'''</span>) || User button (USER1)
 
|-
 
|-
| 16 (<span id{{=}}"MB1272-LD8">'''LD8'''</span>) || User LED (blue)<ref name="User LEDs">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</ref>
+
| 22 (<span id{{=}}"MB1272-LD6">'''LD6'''</span>) || User LED (red)<ref group="LEDs" name="User LEDs"/>
  +
|| 23 (<span id{{=}}"MB1272-B4">'''B4'''</span>) || User button (USER2)
 
|-
 
|-
| 17 (<span id{{=}}"MB1272-LD7">'''LD7'''</span>) || User LED (orange)<ref name="User LEDs"/>
+
| 24 (<span id{{=}}"MB1272-LD7">'''LD7'''</span>) || User LED (orange)<ref group="LEDs" name="User LEDs"/>
  +
|| 25 (<span id{{=}}"MB1272-LD8">'''LD8'''</span>) || User LED (blue)<ref group="LEDs" name="User LEDs"/>
 
|-
 
|-
| 18 (<span id{{=}}"MB1272-B4">'''B4'''</span>) || User button (USER2)
+
| 26 (<span id{{=}}"MB1272-CN11">'''CN11'''</span> and <span id{{=}}"MB1272-U19">'''U19'''</span>) || USB micro-B (ST-LINK/V2-1)
  +
|| 27 (<span id{{=}}"MB1272-LD4">'''LD4'''</span>) || ST-LINK/V2-1 LED (bicolor)<ref group="LEDs">LD4: flashes red if ST-LINK/V2-1 connection not established, else green</ref>
 
|-
 
|-
| 19 (<span id{{=}}"MB1272-U13">'''U13'''</span>) || STM32MP157X 12x12
+
| 28 (<span id{{=}}"MB1272-CN12">'''CN12''</span>) || ST-LINK/V2-1 DFU
|-
+
|| 29 (<span id{{=}}"MB1272-CN9">'''CN9'''</span>) || HDMI connector
| 20 (<span id{{=}}"MB1272-LD6">'''LD6'''</span>) || User LED (red))<ref name="User LEDs"/>
 
|-
 
| 21 (<span id{{=}}"MB1272-B3">'''B3'''</span>) || User button (USER1)
 
|-
 
| 22 (<span id{{=}}"MB1272-LD5">'''LD5'''</span>) || User LED (green)<ref name="User LEDs"/>
 
|-
 
| 23 (<span id{{=}}"MB1272-B2">'''B2'''</span>) || Reset button
 
|-
 
| 24 (<span id{{=}}"MB1272-U20">'''U20'''</span>) || Audio codec (Cirrus CS42L51)
 
|-
 
| 25 (<span id{{=}}"MB1272-CN10">'''CN10'''</span>) || Audio headset
 
|-
 
| 26 (<span id{{=}}"MB1272-B1">'''B1'''</span>) || Power-on button
 
|-
 
| 27 ('''CN8''') || Ethernet
 
 
|}
 
|}
   
 
<br clear=all>
 
<br clear=all>
 
+
[[File: STM32MP157x-DKx_front_side_2.jpg | thumb | 800px | left | link= | STM32MP157x-DKx Discovery kit front side (second angle) <br> '''STM32MP157C-DK2''' shown here (picture is not contractual)]]
[[File: STM32MP157X-DKX_corner_microSD_card.png|thumb|upright=4|left|STM32MP157X-DKX Discovery kit (front side view from microSD card connector) <br> Board name: '''STM32MP157X-DK2''']]
+
{| class="st-table"
{|
 
 
|+  
 
|+  
! Position !! Description                                              
+
! Position !! Description !! Position !! Description
 
|-
 
|-
| 10 ('''CN1''') || 2 USB Type-A (host)
+
| 10 (<span id{{=}}"MB1272-U5">'''U5'''</span>) || DDR3L 16 bits
  +
|| 11 (<span id{{=}}"MB1272-CN5">'''CN5'''</span> and <span id{{=}}"MB1272-U7">'''U7'''</span>) || 2 USB Type-A (host)  
 
|-
 
|-
| 26 (<span id{{=}}"MB1272-CN8">'''CN8'''</span>) || Ethernet
+
| 12 (<span id{{=}}"MB1272-U13">'''U13'''</span>) || STM32MP157x 12x12
  +
|| 13 (<span id{{=}}"MB1272-U14">'''U14'''</span>) || HDMI
 
|-
 
|-
| 30 (<span id{{=}}"MB1272-LD3">'''LD3'''</span>) || Ethernet LED (green)<ref>LD3: flashes green when Ethernet connection established</ref>
+
| 14 (<span id{{=}}"MB1272-CN7">'''CN7'''</span> and <span id{{=}}"MB1272-U12">'''U12'''</span>) || USB Type-C (DRP)
  +
|| 15 (<span id{{=}}"MB1272-CN8">'''CN8'''</span> and (<span id{{=}}"MB1272-U18">'''U18'''</span>) || Ethernet
 
|-
 
|-
| 31 (<span id{{=}}"MB1272-CN6">'''CN6'''</span>) || USB Type-C (power 5V-3A)
+
| 30 (<span id{{=}}"MB1272-LD1">'''LD1'''</span>) || USB Type-A LED (red)<ref group="LEDs">LD1: turns red if USB Type-A connection established</ref>
  +
|| 31 (<span id{{=}}"MB1272-CN2">'''[[#GPIO expansion connector|CN2]]'''</span>) || GPIO expansion
 
|-
 
|-
| 32 (<span id{{=}}"MB1272-LD2">'''LD2'''</span>) || Power LED (green)<ref>LD2: turns green if power connection established</ref>
+
| 32 (<span id{{=}}"MB1272-U4">'''U4'''</span>) || PMIC (STPMIC1A)
  +
|| 33 (<span id{{=}}"MB1272-CN4">'''CN4'''</span>) || DSI LCD connector
  +
|-
  +
| 34 (<span id{{=}}"MB1272-LD3">'''LD3'''</span>) || Ethernet LED (green)<ref group="LEDs">LD3: flashes green when Ethernet connection established</ref>
  +
|| 35 (<span id{{=}}"MB1272-CN6">'''CN6'''</span>) || USB Type-C (power 5V-3A)
 
|-
 
|-
| 33 (<span id{{=}}"MB1272-U8">'''U8'''</span>) || WLAN + Bluetooth (muRata LBEE5KL1DX): only for STM32MP157X-'''DK2''' Discovery kit
+
| 36 (<span id{{=}}"MB1272-LD2">'''LD2'''</span>) || Power LED (green)<ref group="LEDs">LD2: turns green if power connection established</ref>
  +
|| 37 (<span id{{=}}"MB1272-U8">'''U8'''</span>) || WLAN + Bluetooth (muRata LBEE5KL1DX): only for {{Board | type=157C-DK2 | name=short}} and {{Board | type=157F-DK2 | name=short}} Discovery kits
 
|-
 
|-
| 34 (<span id{{=}}"MB1272-CN4">'''CN4'''</span>) || DSI LCD connector
+
| 40 (<span id{{=}}"MB1272-CN13">'''[[#Arduino Uno connector|CN13]]'''</span>) || Arduino Uno connector (socket 10x1)
|-
+
|| 41 (<span id{{=}}"MB1272-CN14">'''[[#Arduino Uno connector|CN14]]'''</span>) || Arduino Uno connector (socket 8x1)
| 35 (<span id{{=}}"MB1272-LD1">'''LD1'''</span>) || USB Type-A LED (red)<ref>LD1: turns red if USB Type-A connection established</ref>
 
|-
 
| 36 (<span id{{=}}"MB1272-CN2">'''[[#GPIO expansion connector|CN2]]'''</span>) || GPIO expansion
 
 
|}
 
|}
   
 
<br clear=all>
 
<br clear=all>
 
+
[[File: STM32MP157x-DKx_back_side.jpg | thumb | 800px | left | link= | STM32MP157x-DKx Discovery kit back side <br> '''STM32MP157C-DK2''' shown here (picture is not contractual)]]
[[File: STM32MP157X-DKX_back_side.png|thumb|upright=4|left|STM32MP157X-DKX Discovery kit (back side) <br> Board name: '''STM32MP157X-DK2''']]
+
{| class="st-table"
{|
 
 
|+  
 
|+  
! Position !! Description                                              
+
! Position !! Description !! Position !! Description
 
|-
 
|-
 
| 40 (<span id{{=}}"MB1272-CN13">'''[[#Arduino Uno connector|CN13]]'''</span>) || Arduino Uno connector (socket 10x1)
 
| 40 (<span id{{=}}"MB1272-CN13">'''[[#Arduino Uno connector|CN13]]'''</span>) || Arduino Uno connector (socket 10x1)
|-
+
|| 41 (<span id{{=}}"MB1272-CN14">'''[[#Arduino Uno connector|CN14]]'''</span>) || Arduino Uno connector (socket 8x1)
| 41 (<span id{{=}}"MB1272-CN14">'''[[#Arduino Uno connector|CN14]]'''</span>) || Arduino Uno connector (socket 8x1)
 
 
|-
 
|-
 
| 42 (<span id{{=}}"MB1272-LD9">'''LD9'''</span>) || Arduino LED (green)
 
| 42 (<span id{{=}}"MB1272-LD9">'''LD9'''</span>) || Arduino LED (green)
  +
|| 43 (<span id{{=}}"MB1272-SW1">'''[[#Boot related switches|SW1]]'''</span>) || Boot mode selection
 
|-
 
|-
| 43 (<span id{{=}}"MB1272-CN15">'''CN15'''</span>) || microSD 3.0 card
+
| 44 (<span id{{=}}"MB1272-CN16">'''[[#Arduino Uno connector|CN16]]'''</span>) || Arduino Uno connector (socket 8x1)
|-
+
|| 45 (<span id{{=}}"MB1272-CN17">'''[[#Arduino Uno connector|CN17]]'''</span>) || Arduino Uno connector (socket 6x1)
| 44 (<span id{{=}}"MB1272-SW1">'''[[#Boot related switches|SW1]]'''</span>) || Boot mode selection
 
|-
 
| 45 (<span id{{=}}"MB1272-CN16">'''[[#Arduino Uno connector|CN16]]'''</span>) || Arduino Uno connector (socket 8x1)
 
|-
 
| 46 (<span id{{=}}"MB1272-CN17">'''[[#Arduino Uno connector|CN17]]'''</span>) || Arduino Uno connector (socket 6x1)
 
 
|}
 
|}
 
<br clear=all>
 
<br clear=all>
 
Details about some LEDs:
 
Details about some LEDs:
<references />
+
<references group="LEDs"/>
   
 
==Board connection==
 
==Board connection==
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|board overview]], other connectors are available for these boards (for example HDMI).
+
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|board overview]], other connectors are available for these boards (for example HDMI).
{{:STM32MP157X-DKX - board connections}}
+
{{:STM32MP157x-DKx - board connections}}
   
 
==Boot related switches==
 
==Boot related switches==
 
The following table defines the different combination of the boot mode selection switches:
 
The following table defines the different combination of the boot mode selection switches:
 
{{Info|"Boot 1" is grounded (always 0) on the Discovery kits}}
 
{{Info|"Boot 1" is grounded (always 0) on the Discovery kits}}
{| style="text-align:center"
+
{| class="st-table" style="text-align:center"
 
|+ Boot modes
 
|+ Boot modes
 
! Boot mode !! Boot 0 !! Boot 1 !! Boot 2
 
! Boot mode !! Boot 0 !! Boot 1 !! Boot 2
Line 155: Line 133:
   
 
Below the corresponding configurations of the boot related switches ([[#MB1272-SW1|SW1]] on the board overview picture):
 
Below the corresponding configurations of the boot related switches ([[#MB1272-SW1|SW1]] on the board overview picture):
{|
+
{| class="st-table"
| [[File:STM32MP157X-DKX_boot_switches_forced_USB.png|thumb|center|300px|link=|Forced USB boot for flashing]] || [[File:STM32MP157X-DKX_boot_switches_engineering_mode.png|thumb|center|300px|link=|Engineering boot]] || [[File:STM32MP157X-DKX_boot_switches_microSD_card.png|thumb|center|300px|link=|Boot from microSD card]]
+
| [[File:STM32MP157x-DKx_boot_switches_forced_USB.png|thumb|center|link=|Forced USB boot for flashing]]
  +
|-
  +
| [[File:STM32MP157x-DKx_boot_switches_engineering_mode.png|thumb|center|link=|Engineering boot]]
  +
|-
  +
| [[File:STM32MP157x-DKx_boot_switches_microSD_card.png|thumb|center|link=|Boot from microSD card]]
 
|}
 
|}
 
 
==GPIO mapping==
 
==GPIO mapping==
   
Line 164: Line 145:
 
The pins of the GPIO expansion connector ([[#MB1272-CN2|CN2]] on the board overview picture) are described in the following table:
 
The pins of the GPIO expansion connector ([[#MB1272-CN2|CN2]] on the board overview picture) are described in the following table:
   
{| style="text-align:center;"
+
{| class="st-table" style="text-align:center;"
 
|+ GPIO expansion connector
 
|+ GPIO expansion connector
! Description !! Pin number !! Pin number !! Description
+
! Function !! STM32 pin !! Pin !! Pin !! STM32 pin !! Function
 
|-
 
|-
| 3V3 || 1 || 2 || VIN
+
| 3V3 || - || 1 || 2 || - || 5V
 
|-
 
|-
| I2C5_SDA || 3 || 4 || VIN
+
| GPIO2 / I2C5_SDA || PA12 || 3 || 4 || - || 5V
 
|-
 
|-
| I2C5_SCL || 5 || 6 || GND
+
| GPIO3 / I2C5_SCL || PA11 || 5 || 6 || - || GND
 
|-
 
|-
| MCO1 || 7 || 8 || <span id{{=}}"USART3_TX">USART3_TX</span>
+
| GPIO4 / MCO1 || PA8 || 7 || 8 || PB10 || GPIO14 / <span id{{=}}"USART3_TX">USART3_TX</span>
 
|-
 
|-
| GND || 9 || 10 || USART3_RX
+
| GND || - || 9 || 10 || PB12 || GPIO15 / USART3_RX
 
|-
 
|-
| USART3_RTS || 11 || 12 || SAI2_SCKA
+
| GPIO17 / USART3_RTS || PG8 || 11 || 12 || PI5 || GPIO18 / SAI2_SCKA<ref group="EX" name="SAI2">The SAI2 is shared between the audio codec and the GPIO expansion connector. By default, the SAI2 is connected to the audio codec thanks to Solder Bridge SB13, SB14, SB15, and SB16: more details in the [[STM32MP15 resources#UM2534|STM32MP157x-DKx discovery board user manual]].</ref>
 
|-
 
|-
| SDMMC3_D3 || 13 || 14 || GND
+
| GPIO27 / SDMMC3_D3 || PD7 || 13 || 14 || - || GND
 
|-
 
|-
| SDMMC3_CK || 15 || 16 || SDMMC3_CMD
+
| GPIO22 / SDMMC3_CK || PG15 || 15 || 16 || PF1 || GPIO23 / SDMMC3_CMD
 
|-
 
|-
| 3V3 || 17 || 18 || SDMMC3_D0
+
| 3V3 || - || 17 || 18 || PF0 || GPIO24 / SDMMC3_D0
 
|-
 
|-
| SPI5_MOSI || 19 || 20 || GND
+
| GPIO10 / SPI5_MOSI || PF9 || 19 || 20 || - || GND
 
|-
 
|-
| SPI5_MISO || 21 || 22 || SDMMC3_D1
+
| GPIO9 / SPI5_MISO || PF8 || 21 || 22 || PF4 || GPIO25 / SDMMC3_D1
 
|-
 
|-
| SPI5_SCK || 23 || 24 || SPI5_NSS
+
| GPIO11 / SPI5_SCK || PF7 || 23 || 24 || PF6 || GPIO8 / SPI5_NSS
 
|-
 
|-
| GND || 25 || 26 || PI_GPIO7
+
| GND || - || 25 || 26 || PF3 || GPIO7
 
|-
 
|-
| ID_SD || 27 || 28 || ID_SC
+
| I2C1_SDA<ref group="EX" name="I2C1">Warning: the I2C1 is used to communicate with several on-board peripherals, but is also available on the GPIO expansion connector. So, it is important to ensure that new components added on the I2C1 connection will not disturb the bus behavior.</ref><sup> || PF15 || 27 || 28 || PD12 || I2C1_SCL<ref group="EX" name="I2C1"/>
 
|-
 
|-
| MCO2 || 29 || 30 || GND
+
| GPIO5 / MCO2 || PG2 || 29 || 30 || - || GND
 
|-
 
|-
| TIM5_CH2 || 31 || 32 || TIM4_CH2
+
| GPIO6 / TIM5_CH2 || PH11 || 31 || 32 || PD13 || GPIO12 / TIM4_CH2
 
|-
 
|-
| TIM3_CH2 || 33 || 34 || GND
+
| GPIO13 / TIM3_CH2 || PC7 || 33 || 34 || - || GND
 
|-
 
|-
| SAI2_FSA || 35 || 36 || USART3_CTS
+
| GPIO19 / SAI2_FSA<ref group="EX" name="SAI2"/> || PI7 || 35 || 36 || PB13 || GPIO16 / USART3_CTS
 
|-
 
|-
| SDMMC3_D2 || 37 || 38 || SAI2_SDA
+
| GPIO26 / SDMMC3_D2 || PF5 || 37 || 38 || PI6 || GPIO20 / SAI2_SDA<ref group="EX" name="SAI2"/>
 
|-
 
|-
| GND || 39 || 40 || SAI2_SDB
+
| GND || - || 39 || 40 || PF11 || GPIO21 / SAI2_SDB<ref group="EX" name="SAI2"/>
 
|}
 
|}
  +
<references group="EX"/>
   
 
===Arduino Uno connector===
 
===Arduino Uno connector===
 
The pins of the Arduino Uno connector are described in the following table:
 
The pins of the Arduino Uno connector are described in the following table:
   
{| class="wikitable"
+
{| class="st-table"
! colspan="4" | Arduino Uno connector
+
! colspan="2" | Arduino Uno connector
 
|- style="vertical-align:top;"
 
|- style="vertical-align:top;"
 
|
 
|
{| style="text-align:center;"
+
{| class="st-table" style="text-align:center;"
 
|+ Socket 10x1 ([[#MB1272-CN2|CN13]])
 
|+ Socket 10x1 ([[#MB1272-CN2|CN13]])
! Description !! Pin number
+
! Pin names !! Signal name !! STM32 pin !! Comment
 
|-
 
|-
| I2C5_SCL || D15
+
| 1 || ARD_D8 || PG3 || IO
 
|-
 
|-
| I2C5_SDA || D14
+
| 2 || ARD_D9 || PH6 || TIM12_CH1
 
|-
 
|-
| VREF+ || AVDD
+
| 3 || ARD_D10 || PE11 || SPI4_NSS and TIM1_CH2
 
|-
 
|-
| GND || GND
+
| 4 || ARD_D11 || PE14 || SPI4_MOSI and TIM1_CH4
 
|-
 
|-
| SPI4_SCK || D13
+
| 5 || ARD_D12 || PE13 || SPI4_MISO
 
|-
 
|-
| SPI4_MISO || D12
+
| 6 || ARD_D13 || PE12 || SPI4_SCK
 
|-
 
|-
| TIM1_CH4, SPI4_MOSI || D11
+
| 7 || GND || - || GND
 
|-
 
|-
| TIM1_CH2, SPI4_NSS || D10
+
| 8 || VREFP || - || VREF+
 
|-
 
|-
| TIM12_CH1 || D9
+
| 9 || ARD_D14 || PA12 || I2C5_SDA
 
|-
 
|-
| GPIO || D8
+
| 10 || ARD_D15 || PA11 || I2C5_SCL
 
|}
 
|}
 
||
 
||
{| style="text-align:center;"
+
{| class="st-table" style="text-align:center;"
 
|+ Socket 8x1 ([[#MB1272-CN2|CN14]])
 
|+ Socket 8x1 ([[#MB1272-CN2|CN14]])
! Description !! Pin number
+
! Pin names !! Signal name !! STM32 pin !! Comment
 
|-
 
|-
| GPIO || D7
+
| 1 || ARD_D0 || PE7 || UART7_RX
 
|-
 
|-
| TIM1_CH1 || D6
+
| 2 || ARD_D1 || PE8 || UART7_TX
 
|-
 
|-
| TIM4_CH4 || D5
+
| 3 || ARD_D2 || PE1 || IO
 
|-
 
|-
| GPIO || D4
+
| 4 || ARD_D3 || PD14 || TIM4_CH3
 
|-
 
|-
| TIM4_CH3 || D3
+
| 5 || ARD_D4 || PE10 || IO
 
|-
 
|-
| GPIO || D2
+
| 6 || ARD_D5 || PD15 || TIM4_CH4
 
|-
 
|-
| USART7_TX || D1
+
| 7 || ARD_D6 || PE9 || TIM1_CH1
 
|-
 
|-
| USART7_RX || D0
+
| 8 || ARD_D7 || PD1 || IO
 
|}
 
|}
||
+
|- style="vertical-align:top;"
{| style="text-align:center;"
+
|
  +
{| class="st-table" style="text-align:center;"
 
|+ socket 8x1 ([[#MB1272-CN2|CN16]])
 
|+ socket 8x1 ([[#MB1272-CN2|CN16]])
 
|-
 
|-
! Description !! Pin number
+
! Pin names !! Signal name !! STM32 pin !! Comment
 
|-
 
|-
| ------ || ------
+
| 1 || NC  || - || NC (reserved for test)
 
|-
 
|-
| 3V3 || IOREF
+
| 2 || 3V3 || - || IOREF 3V3
 
|-
 
|-
| RESET || NRST
+
| 3 || NRST || NRST || NRST
 
|-
 
|-
| 3V3 || 3V3
+
| 4 || 3V3 || - || 3V3
 
|-
 
|-
| 5V || 5V
+
| 5 || 5V || - || 5V
 
|-
 
|-
| GND || GND
+
| 6 || GND || - || GND
 
|-
 
|-
| GND || GND
+
| 7 || GND || - || GND
 
|-
 
|-
| ---- || VIN
+
| 8 || VIN || - || Not connected
 
|}
 
|}
 
||
 
||
{| style="text-align:center;"
+
{| class="st-table" style="text-align:center;"
 
|+ Socket 6x1 ([[#MB1272-CN2|CN17]])
 
|+ Socket 6x1 ([[#MB1272-CN2|CN17]])
! Description !! Pin number
+
! Pin names !! Signal name !! STM32 pin !! Comment
 
|-
 
|-
| ADC1_IN0 || A0
+
| 1 || A0 || PF14 || ADC1_IN0
 
|-
 
|-
| ADC1_IN1 || A1
+
| 2 || A1 || PF13 || ADC1_IN1
 
|-
 
|-
| ADC2_IN6 || A2
+
| 3 || A2 || ANA0 || ADC1_IN6
 
|-
 
|-
| ADC2_IN2 || A3
+
| 4 || A3 || ANA1 || ADC1_IN2
 
|-
 
|-
| ADC1_IN13 || A4
+
| 5 || A4 || PC3 / PA12 || ADC1_IN13
 
|-
 
|-
| ADC1_IN6 || A5
+
| 6 || A5 || PF12 / PA11 ||
 
|}
 
|}
 
|}
 
|}
Line 305: Line 288:
 
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.
 
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.
   
{| style="text-align:center;"
+
{| class="st-table" style="text-align:center;"
 
|+ GPIO for user buttons and LEDs
 
|+ GPIO for user buttons and LEDs
 
! LED color and label
 
! LED color and label
Line 311: Line 294:
 
! GPIO
 
! GPIO
 
|-
 
|-
| {{Green|Green}} LD5 (*)
+
| <span style="color: green;">Green</span> LD5 (*)
 
| USER1 (*)
 
| USER1 (*)
 
| PA14
 
| PA14
 
|-
 
|-
| {{Red|Red}} LD6 (*)
+
| <span style="color: red;">Red</span> LD6 (*)
 
| USER2 (*)
 
| USER2 (*)
 
| PA13
 
| PA13
 
|-
 
|-
| {{Orange|Orange}} LD7
+
| <span style="color: orange;">Orange</span> LD7
 
| -
 
| -
 
| PH7
 
| PH7
 
|-
 
|-
| {{Blue|Blue}} LD8
+
| <span style="color: blue;">Blue</span> LD8
 
| -
 
| -
 
| PD11
 
| PD11
Line 329: Line 312:
   
 
{{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).}}
 
{{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).}}
  +
  +
<noinclude>
  +
{{ReviewsComments|File to be reviewed by the marketing communication team}}
  +
{{PublicationRequestId | 8429 | 2018-08-09 | AnneJ}}
  +
[[Category:STM32MP15 Discovery kits|02]]
  +
[[Category:STM32MP15]]
  +
[[Category:ST boards]]
  +
</noinclude>