STM32MP157F-DK2

The STM32MP157F-DK2 is a development board starring the STM32MP157F system on a chip and a ton of peripherals.

This board is a newer revision of the STM32MP157C-DK2 and as far as I can tell all STM32MP157C-DK2 hardware documentation applies to the STM32MP157F-DK2.

Almost all you need to know about this board and its chips is available without signing any kind of NDA or jumping through hoops. Very very convenient.

Specifications
Core details:
 * 32-bit Dual Core Cortex-A7 800MHz ARM chip
 * 32-bit Cortex-M4 coprocessor
 * 512MiB DDR3 RAM
 * 5V 3A power supplied over Type-C
 * ST-LINK/V2-1 debugging

Storage:
 * $109 USD from Mouser (as of 2022-01-29)


 * microSD card slot

Networking:


 * Wi-Fi 802.11b/g/n
 * Bluetooth Low Energy

USB: Video: Audio: Other IO:
 * 10/100/1000 Gigabit Ethernet
 * 4 USB 2.0 host type-A ports
 * Dual-role USB 2.0 host or device type-C port
 * 4 inch 480x800 LCD touch screen
 * HDMI
 * Stereo headset jack with microphone input
 * Raspberry Pi 40-pin compatible header
 * Arduino Uno V3 compatible headers (3.3v only)
 * 4 user LEDs
 * 2 user buttons

Documentation
System on chip documentation:

Board documentation:
 * STM32MP157F web page is the first resource for documentation on the chip
 * STM32MP157F datasheet gives an exhaustive overview on the chip
 * STM32MP157 reference manual provides information for driver writing
 * stm32mpu wiki has a large amount of documentation for all levels of development


 * STM32MP157F-DK2 web page is again the first resource for board documentation
 * STM32MP157 discovery kits data brief is a good quick overview
 * STM32MP157 discovery kits user manual has everything you need to know about the board
 * stm32mpu wiki Category:STM32MP15 Discovery kits re-iterates some of user manual in wiki format
 * stm32mpu wiki STM32MP157x-DK2 Getting started book is a good guide for getting set up

Chip documentation:
 * STM32MP157F-DK2 CAD resources has schematics and PCB files


 * STPMIC1 data brief
 * STPMIC1 datasheet
 * CS42L51 web page
 * CS42L51 datasheet
 * Sil9022 datasheet
 * MT41K256M16 web page
 * MT41K256M16 datasheet
 * RTL8211F web page
 * RTL8211F datasheet ("confidential")
 * LBEE5KL1DX web page
 * LBEE5KL1DX data sheet
 * ST-LINK/V2 web page
 * ST-LINK/V2 data brief



Software
ST's provides STM32CubeMP1 as this board's support package. It contains:

Most of this is open source and the forks are being mainlined to the parent projects.
 * ST's Linux fork
 * ST's u-boot fork
 * ST's ARM Trusted Firmware fork
 * ST's OP-TEE fork
 * STM32CubeMP1

ST-Link can be used by the following software:


 * GNU Screen or any terminal emulator for serial connections
 * OpenOCD for JTAG



Bugs
Bugs we've found when porting the board to Buildroot:


 * You need to probe the snd_soc_cs42l51_i2c module manually to get audio running
 * The Wi-Fi uses a Broadcom chipset which can be a little buggy sometimes

Pinouts
See the STM32MP157F-DK2/40 pin pinout page for a textual description of the Pi header.