This article shows how to start up a STM32MP157x-DKx Discovery kit (flexible and complete development platform for the STM32MP15 microprocessor devices). It is valid both for the STM32MP157A-DK1 and STM32MP157C-DK2 Discovery kits: the part numbers are specified in the STM32MP15 microprocessor part numbers article.
It lists the required material, points to the board features description, and gives the step-by-step process to set up the system.
Finally, it proposes to run some basic use cases and to discover some of the board capabilities.
1. Starter Package content[edit | edit source]
If you are not yet familiar with the STM32MPU Embedded Software distribution and its Packages, please read the following articles:
- Which STM32MPU Embedded Software Package better suits your needs (and especially the Starter Package chapter)
- STM32MPU Embedded Software distribution
If you are already familiar with the Starter Package for the STM32MPU Embedded Software distribution, the fast links to essential commands might be of interest.
To sum up, this Starter Package provides:
- the software image for the STM32MPU Embedded Software distribution, which includes:
- the binaries for the OpenSTLinux distribution
- one or more firmware example(s) for the STM32Cube MPU Package
- the (STM32CubeProgrammer) tool to install this image on the STM32MP157x-DKx Discovery kit
2. Starter Package step-by-step overview[edit | edit source]
The steps to get the STM32MP157x-DKx Discovery kit up and running, are:
☐ Checking the material
☐ Assembling the board
☐ Installing the tools
☐ Downloading the image and flashing it on the board
☐ Booting the board
Once these steps are achieved, you are able to:
- check the boot sequence
- execute basic commands
- run basic use cases
- discover on your own the capabilities of the STM32MP157x-DKx Discovery kit
3. Checking the material[edit | edit source]
Mandatory
PC | Linux or Windows operating systems. See PC prerequisites for more details on the required configurations. |
STM32MP157x-DKx Discovery kit | Flexible and complete development platform for the STM32MP15 microprocessor device including: |
Power supply | Including:
|
MicroSD card | Populated with OpenSTLinux distribution (Linux software), and providing extra storage capacity. A 2-Gbyte minimum microSD card is needed. |
USB micro-B cable | In order to connect the STM32MP157x-DKx Discovery kit to the PC through the USB micro-B (ST-LINK/V2-1) connector |
USB Type-C™ cable | In order to connect the STM32MP157x-DKx Discovery kit to an USB OTG device through the USB Type-C™ connector |
Optional
USB keyboard and mouse | Thanks to the USB type A connectors, the STM32MP157x-DKx Discovery kit can be equipped with a full-size keyboard and mouse |
Ethernet cable | In order to connect the STM32MP157x-DKx Discovery kit to a network through the RJ45 connector |
HDMI cable | In order to connect the STM32MP157x-DKx Discovery kit to an HDMI monitor (or TV) through the HDMI connector |
Optional, more devices and extension boards might be plugged to the STM32MP157x-DKx Discovery kit thanks to expansion connectors such as:
- the GPIO expansion connector
- the Arduino Uno connector
- ...
The following figure shows the optional material (not included in STM32MP157x-DKx Discovery kit package), that is used with this Starter Package.
4. Assembling the board[edit | edit source]
The STM32MP157x-DKx Discovery kits packages (STM32MP157A-DK1 , STM32MP157D-DK1 , STM32MP157C-DK2 and STM32MP157F-DK2 ) are delivered assembled, and contain the items listed below. A USB Type-C™ cable is also included.
Please note that;
- the STM32MP157A-DK1 and STM32MP157D-DK1 Discovery kits neither include the "WLAN + Bluetooth" component (muRata LBEE5KL1DX), nor the MB1407 daughterboard DSI display
- the STM32MP157C-DK2 and STM32MP157F-DK2 Discovery kits include the "WLAN + Bluetooth" component (muRata LBEE5KL1DX), and the MB1407 daughterboard DSI display
Position | Description |
---|---|
1 | MB1272 motherboard ("WLAN + Bluetooth" component included only for the STM32MP157C-DK2 and STM32MP157F-DK2 Discovery kits) |
2 | MB1407 daughterboard DSI display (480x800 pixels): only for the STM32MP157C-DK2 and STM32MP157F-DK2 Discovery kits |
3 | microSD card |
5. Installing the tools[edit | edit source]
5.1. Installing the STM32CubeProgrammer tool[edit | edit source]
STM32CubeProgrammer for Linux® host PC | STM32CubeProgrammer for Windows® host PC | |
---|---|---|
Download |
Version v2.17.0
| |
Installation |
$> ./SetupSTM32CubeProgrammer-2.17.0.linux
$> export PATH=<my STM32CubeProgrammer install directory>/bin:$PATH
$> ln -s <my STM32CubeProgrammer install directory>/bin/STM32_Programmer_CLI /home/bin/STM32_Programmer_CLI |
|
User manual |
| |
Detailed release note |
|
5.2. Preparing the USB serial link for flashing[edit | edit source]
It is recommended to use the USB (in DFU mode) for flashing rather than the UART, which is too slow.
Below indications on how to install the USB in DFU mode under Linux and Windows OS, respectively.
- For Linux host PC or Windows host PC with VMWare:
The libusb1.0 package (including USB DFU mode) must be installed to be able to connect to the board via the USB port. This is achieved by typing the following command from the host PC terminal:
sudo apt-get install libusb-1.0-0
To allow STM32CubeProgrammer to access the USB port through low-level commands, proceed as follows:
cd <your STM32CubeProgrammer install directory>/Drivers/rules
sudo cp *.* /etc/udev/rules.d/
- For Windows host PC:
Run the “STM32 Bootloader.bat” file to install the STM32CubeProgrammer DFU driver and activate the STM32 microprocessor device in USB DFU mode. This driver (installed by STM32 Bootloader.bat) is provided within the STM32CubeProgrammer release package. It is located in the DFU driver folder, \Drivers\DFU_Driver.
In case of issue, refer to How to proceed when the DFU driver installation fails on Windows host PC.
To validate the installation, the DFU driver functionality can be verified by following the FAQ instructions provided in how to check if the DFU driver is functional.
6. Downloading the image and flashing it on the board[edit | edit source]
6.1. Image download[edit | edit source]
- The STM32MP1 image (binaries) is delivered through one tarball file named
- Download and install the STM32MP1 image (binaries):
The software package is provided AS IS, and by downloading it, you agree to be bound to the terms of the software license agreement (SLA0048). The detailed content licenses can be found here.
STM32MP1 Starter Package image - STM32MP1-Ecosystem-v5.1.0 release | |
---|---|
Download |
|
Installation |
cd <working directory path>/Starter-Package
tar xvf en.FLASH-stm32mp1-openstlinux-6.1-yocto-mickledore-mpu-v24.06.26.tar.gz |
Release note |
Details of the content of this software package are available in the associated STM32 MPU OpenSTLinux release note. |
- The binaries and the Flash layout files are in the <Starter Package installation directory>/stm32mp1-openstlinux-6.1-yocto-mickledore-mpu-v24.06.26/images/stm32mp1/ directory:
stm32mp1 ├── arm-trusted-firmware TF-A binaries for FSBL partitions and supported boot chains │ ├── metadata.bin Meta data binary for METADATA partition for the supported boards │ ├── tf-a-stm32mp135f-dk-optee-sdcard.stm32 TF-A binary for FSBL partition (microSD card boot device) for STM32MP135F-DK → STM32MP13 Discovery kits │ ├── tf-a-stm32mp135f-dk-uart.stm32 TF-A binary for uart serial boot mode (STM32CubeProgrammer) for STM32MP135F-DK → STM32MP13 Discovery kits │ ├── tf-a-stm32mp135f-dk-usb.stm32 TF-A binary for usb serial boot mode (STM32CubeProgrammer) for STM32MP135F-DK → STM32MP13 Discovery kits │ ├── tf-a-stm32mp157a-dk1-optee-sdcard.stm32 TF-A binary for FSBL partition (microSD card boot device) for STM32MP157A-DK1 → STM32MP15 Discovery kits │ ├── tf-a-stm32mp157a-dk1-uart.stm32 TF-A binary for uart serial boot mode (STM32CubeProgrammer) for STM32MP157A-DK1 → STM32MP15 Discovery kits │ ├── tf-a-stm32mp157a-dk1-usb.stm32 TF-A binary for usb serial boot mode (STM32CubeProgrammer) for STM32MP157A-DK1 → STM32MP15 Discovery kits │ ├── tf-a-stm32mp157a-ev1-optee-emmc.stm32 TF-A binary for FSBL partition (eMMC boot device) for STM32MP157A-EV1 → STM32MP15 Evaluation boards │ ├── tf-a-stm32mp157a-ev1-optee-nand.stm32 TF-A binary for FSBL partition (NAND boot device) for STM32MP157A-EV1 → STM32MP15 Evaluation boards │ ├── tf-a-stm32mp157a-ev1-optee-nor.stm32 TF-A binary for FSBL partition (NOR boot device) for STM32MP157A-EV1 → STM32MP15 Evaluation boards │ ├── tf-a-stm32mp157a-ev1-optee-sdcard.stm32 TF-A binary for FSBL partition (microSD card boot device) for STM32MP157A-EV1 → STM32MP15 Evaluation boards │ ├── tf-a-stm32mp157a-ev1-optee-uart.stm32 TF-A binary for uart serial boot mode (STM32CubeProgrammer) for STM32MP157A-EV1 → STM32MP15 Evaluation boards │ ├── tf-a-stm32mp157a-ev1-usb.stm32 TF-A binary for usb serial boot mode (STM32CubeProgrammer) for STM32MP157A-EV1 → STM32MP15 Evaluation boards │ ├── tf-a-stm32mp157c-dk2-optee-sdcard.stm32 TF-A binary for FSBL partition (microSD card boot device) for STM32MP157C-DK2 → STM32MP15 Discovery kits │ ├── tf-a-stm32mp157c-dk2-uart.stm32 TF-A binary for uart serial boot mode (STM32CubeProgrammer) for STM32MP157C-DK2 → STM32MP15 Discovery kits │ ├── tf-a-stm32mp157c-dk2-usb.stm32 TF-A binary for usb serial boot mode (STM32CubeProgrammer) for STM32MP157C-DK2 → STM32MP15 Discovery kits │ ├── tf-a-stm32mp157c-ed1-optee-emmc.stm32 TF-A binary for FSBL partition (eMMC boot device) for STM32MP157C-ED1 → STM32MP15 Evaluation daughter boards │ ├── tf-a-stm32mp157c-ed1-optee-sdcard.stm32 TF-A binary for FSBL partition (microSD card boot device) for STM32MP157C-ED1 → STM32MP15 Evaluation daughter boards │ ├── tf-a-stm32mp157c-ed1-uart.stm32 TF-A binary for uart serial boot mode (STM32CubeProgrammer) for STM32MP157C-ED1 → STM32MP15 Evaluation daughter boards │ ├── tf-a-stm32mp157c-ed1-usb.stm32 TF-A binary for usb serial boot mode (STM32CubeProgrammer) for STM32MP157C-ED1 → STM32MP15 Evaluation daughter boards │ ├── tf-a-stm32mp157c-ev1-optee-emmc.stm32 TF-A binary for FSBL partition (eMMC boot device) for STM32MP157C-EV1 → STM32MP15 Evaluation boards │ ├── tf-a-stm32mp157c-ev1-optee-nand.stm32 TF-A binary for FSBL partition (NAND boot device) for STM32MP157C-EV1 → STM32MP15 Evaluation boards │ ├── tf-a-stm32mp157c-ev1-optee-nor.stm32 TF-A binary for FSBL partition (NOR boot device) for STM32MP157C-EV1 → STM32MP15 Evaluation boards │ ├── tf-a-stm32mp157c-ev1-optee-sdcard.stm32 TF-A binary for FSBL partition (microSD card boot device) for STM32MP157C-EV1 → STM32MP15 Evaluation boards │ ├── tf-a-stm32mp157c-ev1-uart.stm32 TF-A binary for uart serial boot mode (STM32CubeProgrammer) for STM32MP157C-EV1 → STM32MP15 Evaluation boards │ ├── tf-a-stm32mp157c-ev1-usb.stm32 TF-A binary for usb serial boot mode (STM32CubeProgrammer) for STM32MP157C-EV1 → STM32MP15 Evaluation boards │ ├── tf-a-stm32mp157d-dk1-optee-sdcard.stm32 TF-A binary for FSBL partition (microSD card boot device) for STM32MP157D-DK1 → STM32MP15 Discovery kits │ ├── tf-a-stm32mp157d-dk1-uart.stm32 TF-A binary for serial boot mode (STM32CubeProgrammer) for STM32MP157D-DK1 → STM32MP15 Discovery kits │ ├── tf-a-stm32mp157d-dk1-usb.stm32 TF-A binary for usb serial boot mode (STM32CubeProgrammer) for STM32MP157D-DK1 → STM32MP15 Discovery kits │ ├── tf-a-stm32mp157d-ev1-optee-emmc.stm32 TF-A binary for FSBL partition (eMMC boot device) for STM32MP157D-EV1 → STM32MP15 Evaluation boards │ ├── tf-a-stm32mp157d-ev1-optee-nand.stm32 TF-A binary for FSBL partition (NAND boot device) for STM32MP157D-EV1 → STM32MP15 Evaluation boards │ ├── tf-a-stm32mp157d-ev1-nor.stm32 TF-A binary for FSBL partition (NOR boot device) for STM32MP157D-EV1 → STM32MP15 Evaluation boards │ ├── tf-a-stm32mp157d-ev1-optee-sdcard.stm32 TF-A binary for FSBL partition (microSD card boot device) for STM32MP157D-EV1 → STM32MP15 Evaluation boards │ ├── tf-a-stm32mp157d-ev1-uart.stm32 TF-A binary for uart serial boot mode (STM32CubeProgrammer) for STM32MP157D-EV1 → STM32MP15 Evaluation boards │ ├── tf-a-stm32mp157d-ev1-usb.stm32 TF-A binary for usb serial boot mode (STM32CubeProgrammer) for STM32MP157D-EV1 → STM32MP15 Evaluation boards │ ├── tf-a-stm32mp157f-dk2-optee-sdcard.stm32 TF-A binary for FSBL partition (microSD card boot device) for STM32MP157F-DK2 → STM32MP15 Discovery kits │ ├── tf-a-stm32mp157f-dk2-uart.stm32 TF-A binary for uart serial boot mode (STM32CubeProgrammer) for STM32MP157F-DK2 → STM32MP15 Discovery kits │ ├── tf-a-stm32mp157f-dk2-usb.stm32 TF-A binary for usb serial boot mode (STM32CubeProgrammer) for STM32MP157F-DK2 → STM32MP15 Discovery kits │ ├── tf-a-stm32mp157f-ed1-optee-emmc.stm32 TF-A binary for FSBL partition (eMMC boot device) for STM32MP157F-ED1 → STM32MP15 Evaluation daughter boards │ ├── tf-a-stm32mp157f-ed1-optee-sdcard.stm32 TF-A binary for FSBL partition (microSD card boot device) for STM32MP157F-ED1 → STM32MP15 Evaluation daughter boards │ ├── tf-a-stm32mp157f-ed1-uart.stm32 TF-A binary for uart serial boot mode (STM32CubeProgrammer) for STM32MP157F-ED1 → STM32MP15 Evaluation daughter boards │ ├── tf-a-stm32mp157f-ed1-usb.stm32 TF-A binary for usb serial boot mode (STM32CubeProgrammer) for STM32MP157F-ED1 → STM32MP15 Evaluation daughter boards │ ├── tf-a-stm32mp157f-ev1-optee-emmc.stm32 TF-A binary for FSBL partition (eMMC boot device) for STM32MP157F-EV1 → STM32MP15 Evaluation boards │ ├── tf-a-stm32mp157f-ev1-optee-nand.stm32 TF-A binary for FSBL partition (NAND boot device) for STM32MP157F-EV1 → STM32MP15 Evaluation boards │ ├── tf-a-stm32mp157f-ev1-optee-nor.stm32 TF-A binary for FSBL partition (NOR boot device) for STM32MP157F-EV1 → STM32MP15 Evaluation boards │ ├── tf-a-stm32mp157f-ev1-optee-sdcard.stm32 TF-A binary for FSBL partition (microSD card boot device) for STM32MP157F-EV1 → STM32MP15 Evaluation boards │ ├── tf-a-stm32mp157f-ev1-uart.stm32 TF-A binary for uart serial boot mode (STM32CubeProgrammer) for STM32MP157F-EV1 → STM32MP15 Evaluation boards │ └── tf-a-stm32mp157f-ev1-usb.stm32 TF-A binary for usb serial boot mode (STM32CubeProgrammer) for STM32MP157F-EV1 → STM32MP15 Evaluation boards ├── fip FIP binaries for FIP partitions and supported boot chains │ ├── fip-stm32mp135f-dk-fastboot-sdcard.bin FIP binary for FIP partition (optee boot chain for sdcard) for STM32MP135F-DK → STM32MP13 Discovery kits │ ├── fip-stm32mp135f-dk-optee-sdcard.bin FIP binary for FIP partition (optee boot chain for sdcard) for STM32MP135F-DK → STM32MP13 Discovery kits │ ├── fip-stm32mp157a-dk1-fastboot-sdcard.bin FIP binary for FIP partition (optee boot chain for sdcard) for STM32MP157A-DK1 → STM32MP15 Discovery kits │ ├── fip-stm32mp157a-dk1-optee-sdcard.bin FIP binary for FIP partition (optee boot chain for sdcard) for STM32MP157A-DK1 → STM32MP15 Discovery kits │ ├── fip-stm32mp157a-ev1-fastboot-emmc.bin FIP binary for FIP partition (optee boot chain for emmc) for STM32MP157A-EV1 → STM32MP15 Evaluation boards │ ├── fip-stm32mp157a-ev1-fastboot-sdcard.bin FIP binary for FIP partition (optee boot chain for sdcard) for STM32MP157A-EV1 → STM32MP15 Evaluation boards │ ├── fip-stm32mp157a-ev1-optee-emmc.bin FIP binary for FIP partition (optee boot chain for emmc) for STM32MP157A-EV1 → STM32MP15 Evaluation boards │ ├── fip-stm32mp157a-ev1-optee-nand.bin FIP binary for FIP partition (optee boot chain for nand) for STM32MP157A-EV1 → STM32MP15 Evaluation boards │ ├── fip-stm32mp157a-ev1-optee-nor.bin FIP binary for FIP partition (optee boot chain for nor) for STM32MP157A-EV1 → STM32MP15 Evaluation boards │ ├── fip-stm32mp157a-ev1-optee-sdcard.bin FIP binary for FIP partition (optee boot chain for sdcard) for STM32MP157A-EV1 → STM32MP15 Evaluation boards │ ├── fip-stm32mp157c-dk2-fastboot-emmc.bin FIP binary for FIP partition (optee boot chain for emmc) for STM32MP157C-DK2 → STM32MP15 Discovery kits │ ├── fip-stm32mp157c-dk2-fastboot-sdcard.bin FIP binary for FIP partition (optee boot chain for sdcard) for STM32MP157C-DK2 → STM32MP15 Discovery kits │ ├── fip-stm32mp157c-dk2-optee-sdcard.bin FIP binary for FIP partition (optee boot chain for sdcard) for STM32MP157C-DK2 → STM32MP15 Discovery kits │ ├── fip-stm32mp157c-ed1-fastboot-emmc.bin FIP binary for FIP partition (optee boot chain for emmc) for STM32MP157C-ED1 → STM32MP15 Evaluation daughter boards │ ├── fip-stm32mp157c-ed1-fastboot-sdcard.bin FIP binary for FIP partition (optee boot chain for sdcard) for STM32MP157C-ED1 → STM32MP15 Evaluation daughter boards │ ├── fip-stm32mp157c-ed1-optee-emmc.bin FIP binary for FIP partition (optee boot chain for emmc) for STM32MP157C-ED1 → STM32MP15 Evaluation daughter boards │ ├── fip-stm32mp157c-ed1-optee-sdcard.bin FIP binary for FIP partition (optee boot chain for sdcard) for STM32MP157C-ED1 → STM32MP15 Evaluation daughter boards │ ├── fip-stm32mp157c-ev1-fastboot-emmc.bin FIP binary for FIP partition (optee boot chain for emmc) for STM32MP157C-EV1 → STM32MP15 Evaluation boards │ ├── fip-stm32mp157c-ev1-fastboot-sdcard.bin FIP binary for FIP partition (optee boot chain for sdcard) for STM32MP157C-EV1 → STM32MP15 Evaluation boards │ ├── fip-stm32mp157c-ev1-optee-emmc.bin FIP binary for FIP partition (optee boot chain for emmc) for STM32MP157C-EV1 → STM32MP15 Evaluation boards │ ├── fip-stm32mp157c-ev1-optee-nand.bin FIP binary for FIP partition (optee boot chain for nand) for STM32MP157C-EV1 → STM32MP15 Evaluation boards │ ├── fip-stm32mp157c-ev1-optee-nor.bin FIP binary for FIP partition (optee boot chain for nor) for STM32MP157C-EV1 → STM32MP15 Evaluation boards │ ├── fip-stm32mp157c-ev1-optee-sdcard.bin FIP binary for FIP partition (optee boot chain for sdcard) for STM32MP157C-EV1 → STM32MP15 Evaluation boards │ ├── fip-stm32mp157d-dk1-fastboot-sdcard.bin FIP binary for FIP partition (optee boot chain for sdcard) for STM32MP157D-DK1 → STM32MP15 Discovery kits │ ├── fip-stm32mp157d-dk1-optee-sdcard.bin FIP binary for FIP partition (optee boot chain for sdcard) for STM32MP157D-DK1 → STM32MP15 Discovery kits │ ├── fip-stm32mp157d-ev1-fastboot-emmc.bin FIP binary for FIP partition (optee boot chain for emmc) for STM32MP157D-EV1 → STM32MP15 Evaluation boards │ ├── fip-stm32mp157d-ev1-fastboot-sdcard.bin FIP binary for FIP partition (optee boot chain for sdcard) for STM32MP157D-EV1 → STM32MP15 Evaluation boards │ ├── fip-stm32mp157d-ev1-optee-emmc.bin FIP binary for FIP partition (optee boot chain for emmc) for STM32MP157D-EV1 → STM32MP15 Evaluation boards │ ├── fip-stm32mp157d-ev1-optee-nand.bin FIP binary for FIP partition (optee boot chain for nand) for STM32MP157D-EV1 → STM32MP15 Evaluation boards │ ├── fip-stm32mp157d-ev1-optee-nor.bin FIP binary for FIP partition (optee boot chain for nor) for STM32MP157D-EV1 → STM32MP15 Evaluation boards │ ├── fip-stm32mp157d-ev1-optee-sdcard.bin FIP binary for FIP partition (optee boot chain for sdcard) for STM32MP157D-EV1 → STM32MP15 Evaluation boards │ ├── fip-stm32mp157f-dk2-fastboot-sdcard.bin FIP binary for FIP partition (optee boot chain for sdcard) for STM32MP157F-DK2 → STM32MP15 Discovery kits │ ├── fip-stm32mp157f-dk2-optee-sdcard.bin FIP binary for FIP partition (optee boot chain for sdcard) for STM32MP157F-DK2 → STM32MP15 Discovery kits │ ├── fip-stm32mp157f-ed1-fastboot-emmc.bin FIP binary for FIP partition (optee boot chain for emmc) for STM32MP157F-ED1 → STM32MP15 Evaluation daughter boards │ ├── fip-stm32mp157f-ed1-fastboot-sdcard.bin FIP binary for FIP partition (optee boot chain for sdcard) for STM32MP157F-ED1 → STM32MP15 Evaluation daughter boards │ ├── fip-stm32mp157f-ed1-optee-emmc.bin FIP binary for FIP partition (optee boot chain for emmc) for STM32MP157F-ED1 → STM32MP15 Evaluation daughter boards │ ├── fip-stm32mp157f-ed1-optee-nand.bin FIP binary for FIP partition (optee boot chain for nand) for STM32MP157F-ED1 → STM32MP15 Evaluation daughter boards │ ├── fip-stm32mp157f-ed1-optee-nor.bin FIP binary for FIP partition (optee boot chain for nor) for STM32MP157F-ED1 → STM32MP15 Evaluation daughter boards │ ├── fip-stm32mp157f-ed1-optee-sdcard.bin FIP binary for FIP partition (optee boot chain for sdcard) for STM32MP157F-ED1 → STM32MP15 Evaluation daughter boards │ ├── fip-stm32mp157f-ev1-fastboot-emmc.bin FIP binary for FIP partition (optee boot chain for emmc) for STM32MP157F-ED1 → STM32MP15 Evaluation daughter boards │ ├── fip-stm32mp157f-ev1-fastboot-sdcard.bin FIP binary for FIP partition (optee boot chain for sdcard) for STM32MP157F-ED1 → STM32MP15 Evaluation daughter boards │ ├── fip-stm32mp157f-ev1-optee-emmc.bin FIP binary for FIP partition (optee boot chain for emmc) for STM32MP157F-ED1 → STM32MP15 Evaluation daughter boards │ ├── fip-stm32mp157f-ev1-optee-nand.bin FIP binary for FIP partition (optee boot chain for nand) for STM32MP157F-ED1 → STM32MP15 Evaluation daughter boards │ ├── fip-stm32mp157f-ev1-optee-nor.bin FIP binary for FIP partition (optee boot chain for nor) for STM32MP157F-ED1 → STM32MP15 Evaluation daughter boards │ └── fip-stm32mp157f-ev1-optee-sdcard.bin FIP binary for FIP partition (optee boot chain for sdcard) for STM32MP157F-EV1 → STM32MP15 Evaluation daughter boards ├── flashlayout_st-image-weston Flash layout files (description of the partitions) for the supported boot chains on supported boot devices and boards │ ├── extensible Flash layout files for microSD card boot device with no userfs partition but a rootfs partition extended to microSD card size │ │ ├── FlashLayout_sdcard_stm32mp135f-dk-optee.tsv (recommended setup for package repository service) microSD card boot device for STM32MP135F-DK → STM32MP13 Discovery kits │ │ ├── FlashLayout_sdcard_stm32mp157a-dk1-extensible.tsv (recommended setup for package repository service) microSD card boot device with rootfs partition extended to microSD card size for STM32MP157A-DK1 → STM32MP15 Discovery kits │ │ ├── FlashLayout_sdcard_stm32mp157c-dk2-extensible.tsv (recommended setup for package repository service) microSD card boot device with rootfs partition extended to microSD card size for STM32MP157C-DK2 → STM32MP15 Discovery kits │ │ ├── FlashLayout_sdcard_stm32mp157d-dk1-extensible.tsv (recommended setup for package repository service) microSD card boot device with rootfs partition extended to microSD card size for STM32MP157D-DK1 → STM32MP15 Discovery kits │ │ └── FlashLayout_sdcard_stm32mp157f-dk2-extensible.tsv (recommended setup for package repository service) microSD card boot device with rootfs partition extended to microSD card size for STM32MP157F-DK2 → STM32MP15 Discovery kits │ ├── fastboot Flash layout files for flashing via fastboot │ │ ├── FlashLayout_emmc_stm32mp157a-ev1-fastboot.tsv eMMC boot device for STM32MP157A-EV1 → → STM32MP15 Evaluation kits │ │ ├── FlashLayout_emmc_stm32mp157c-ed1-fastboot.tsv eMMC boot device for STM32MP157C-ED1 → → STM32MP15 Evaluation kits │ │ ├── FlashLayout_emmc_stm32mp157c-ev1-fastboot.tsv eMMC boot device for STM32MP157C-ED1 → → STM32MP15 Evaluation kits │ │ ├── FlashLayout_emmc_stm32mp157d-ev1-fastboot.tsv eMMC boot device for STM32MP157D-ED1 → → STM32MP15 Evaluation kits │ │ ├── FlashLayout_emmc_stm32mp157f-ed1-fastboot.tsv eMMC boot device for STM32MP157F-ED1 → → STM32MP15 Evaluation kits │ │ ├── FlashLayout_emmc_stm32mp157f-ev1-fastboot.tsv eMMC boot device for STM32MP157F-EV1 → → STM32MP15 Evaluation kits │ │ ├── FlashLayout_sdcard_stm32mp135f-dk-fastboot.tsv microSD card boot device for STM32MP135F-DK → → STM32MP13 Discovery kits │ │ ├── FlashLayout_sdcard_stm32mp157a-dk1-fastboot.tsv microSD card boot device for STM32MP157F-DK1 → → STM32MP15 Discovery kits │ │ ├── FlashLayout_sdcard_stm32mp157a-ev1-fastboot.tsv microSD card boot device for STM32MP157A-EV1 → → STM32MP15 Evaluation kits │ │ ├── FlashLayout_sdcard_stm32mp157c-dk2-fastboot.tsv microSD card boot device for STM32MP157C-DK2 → → STM32MP15 Discovery kits │ │ ├── FlashLayout_sdcard_stm32mp157c-ed1-fastboot.tsv microSD card boot device for STM32MP157C-ED1 → → STM32MP15 Evaluation kits │ │ ├── FlashLayout_sdcard_stm32mp157c-ev1-fastboot.tsv microSD card boot device for STM32MP157C-EV1 → → STM32MP15 Evaluation kits │ │ ├── FlashLayout_sdcard_stm32mp157d-dk1-fastboot.tsv microSD card boot device for STM32MP157D-DK1 → → STM32MP15 Discovery kits │ │ ├── FlashLayout_sdcard_stm32mp157d-ev1-fastboot.tsv microSD card boot device for STM32MP157D-ED1 → → STM32MP15 Evaluation kits │ │ ├── FlashLayout_sdcard_stm32mp157f-dk2-fastboot.tsv microSD card boot device for STM32MP157F-DK2 → → STM32MP15 Discovery kits │ │ ├── FlashLayout_sdcard_stm32mp157f-ed1-fastboot.tsv microSD card boot device for STM32MP157F-ED1 → → STM32MP15 Evaluation kits │ │ └── FlashLayout_sdcard_stm32mp157f-ev1-fastboot.tsv microSD card boot device for STM32MP157F-EV1 → → STM32MP15 Evaluation kits │ └── optee Flash layout files for optee boot chain │ ├── FlashLayout_emmc_stm32mp157a-ev1-optee.tsv eMMC boot device for STM32MP157A-EV1 → STM32MP15 Evaluation boards │ ├── FlashLayout_emmc_stm32mp157c-ed1-optee.tsv eMMC boot device for STM32MP157C-ED1 → STM32MP15 Evaluation daughter boards │ ├── FlashLayout_emmc_stm32mp157c-ev1-optee.tsv eMMC boot device for STM32MP157C-EV1 → STM32MP15 Evaluation boards │ ├── FlashLayout_emmc_stm32mp157d-ev1-optee.tsv eMMC boot device for STM32MP157D-EV1 → STM32MP15 Evaluation boards │ ├── FlashLayout_emmc_stm32mp157f-ed1-optee.tsv eMMC boot device for STM32MP157F-ED1 → STM32MP15 Evaluation daughter boards │ ├── FlashLayout_emmc_stm32mp157f-ev1-optee.tsv eMMC boot device for STM32MP157F-EV1 → STM32MP15 Evaluation boards │ ├── FlashLayout_nand-4-256_stm32mp157a-ev1-optee.tsv NAND boot device for STM32MP157A-EV1 → STM32MP15 Evaluation boards │ ├── FlashLayout_nand-4-256_stm32mp157c-ev1-optee.tsv NAND boot device for STM32MP157C-EV1 → STM32MP15 Evaluation boards │ ├── FlashLayout_nand-4-256_stm32mp157d-ev1-optee.tsv NAND boot device for STM32MP157D-EV1 → STM32MP15 Evaluation boards │ ├── FlashLayout_nand-4-256_stm32mp157f-ev1-optee.tsv NAND boot device for STM32MP157F-EV1 → STM32MP15 Evaluation boards │ ├── FlashLayout_nor-sdcard_stm32mp157a-ev1-optee.tsv NOR boot device and microSD card device for STM32MP157A-EV1 → STM32MP15 Evaluation boards │ ├── FlashLayout_nor-sdcard_stm32mp157c-ev1-optee.tsv NOR boot device and microSD card device for STM32MP157C-EV1 → STM32MP15 Evaluation boards │ ├── FlashLayout_nor-sdcard_stm32mp157d-ev1-optee.tsv NOR boot device and microSD card device for STM32MP157D-EV1 → STM32MP15 Evaluation boards │ ├── FlashLayout_nor-sdcard_stm32mp157f-ev1-optee.tsv NOR boot device and microSD card device for STM32MP157F-EV1 → STM32MP15 Evaluation boards │ ├── FlashLayout_sdcard_stm32mp135f-dk-optee.tsv (recommended setup) microSD card boot device for STM32MP135F-DK → STM32MP13 Discovery kits │ ├── FlashLayout_sdcard_stm32mp157a-dk1-optee.tsv microSD card boot device for STM32MP157A-DK1 → STM32MP15 Discovery kits │ ├── FlashLayout_sdcard_stm32mp157a-ev1-optee.tsv microSD card boot device for STM32MP157A-EV1 → STM32MP15 Evaluation boards │ ├── FlashLayout_sdcard_stm32mp157c-dk2-optee.tsv microSD card boot device for STM32MP157C-DK2 → STM32MP15 Discovery kits │ ├── FlashLayout_sdcard_stm32mp157c-ed1-optee.tsv microSD card boot device for STM32MP157C-ED1 → STM32MP15 Evaluation daughter boards │ ├── FlashLayout_sdcard_stm32mp157c-ev1-optee.tsv microSD card boot device for STM32MP157C-EV1 → STM32MP15 Evaluation boards │ ├── FlashLayout_sdcard_stm32mp157d-dk1-optee.tsv microSD card boot device for STM32MP157D-DK1 → STM32MP15 Discovery kits │ ├── FlashLayout_sdcard_stm32mp157d-ev1-optee.tsv microSD card boot device for STM32MP157D-EV1 → STM32MP15 Evaluation boards │ ├── FlashLayout_sdcard_stm32mp157f-dk2-optee.tsv microSD card boot device for STM32MP157F-DK2 → STM32MP15 Discovery kits │ ├── FlashLayout_sdcard_stm32mp157f-ed1-optee.tsv microSD card boot device for STM32MP157F-ED1 → STM32MP15 Evaluation daughter boards │ └── FlashLayout_sdcard_stm32mp157f-ev1-optee.tsv microSD card boot device for STM32MP157F-EV1 → STM32MP15 Evaluation boards ├── scripts │ └── create_sdcard_from_flashlayout.sh ├── st-image-bootfs-openstlinux-weston-stm32mp1.ext4 Binary for bootfs partition on eMMC and microSD card devices ├── st-image-bootfs-openstlinux-weston-stm32mp1.manifest ├── st-image-userfs-openstlinux-weston-stm32mp1.ext4 Binary for userfs partition on eMMC and microSD card devices ├── st-image-userfs-openstlinux-weston-stm32mp1.manifest ├── st-image-vendorfs-openstlinux-weston-stm32mp1.ext4 Binary for vendorfs partition on eMMC and microSD card devices ├── st-image-vendorfs-openstlinux-weston-stm32mp1.manifest ├── st-image-weston-openstlinux-weston-stm32mp1.ext4 Binary for rootfs partition on eMMC and microSD card devices ├── st-image-weston-openstlinux-weston-stm32mp1.license ├── st-image-weston-openstlinux-weston-stm32mp1-license_content.html License summary for all packages needed to feed all partitions ├── st-image-weston-openstlinux-weston-stm32mp1.manifest └── st-image-weston-openstlinux-weston-stm32mp1_nand_4_256_multivolume.ubi Binary for bootfs, vendorfs, rootfs and userfs partitions on NAND device
6.2. Image flashing[edit | edit source]
The STM32CubeProgrammer tool is used to flash the STM32MP157x-DKx Discovery kit with the downloaded image.
The microSD card, provided in the box, is used as the Flash device: see the STM32MP15 Flash mapping article if you want to know more about the supported Flash memory technologies, and the Flash partitions.
As explained in the boot chains overview, the trusted boot chain is the default solution delivered by STMicroelectronics. Thus, the steps below use the image for the trusted boot chain.
Let's flash the downloaded image on the microSD card:
- Set the boot switches (1) to the off position
- Connect the USB Type-C™ (OTG) port (2) to the host PC that contains the downloaded image
- Insert the delivered microSD card into the dedicated slot (3)
- Connect the delivered power supply to the USB Type-C™ port (4)
- Press the reset button (5) to reset the board
- Go to the Starter Package directory that contains the binaries and the Flash layout files
cd <Starter Package installation directory>/stm32mp1-openstlinux-4.19-thud-mp1-19-02-20/images/stm32mp1
If you have followed the the proposition to organize the working directory, the command is cd Starter-Package/stm32mp1-openstlinux-4.19-thud-mp1-19-02-20/images/stm32mp1
Information |
The commands below are for a Linux host PC; however, they are similar for a Windows host PC except that STM32_Programmer_CLI is replaced by STM32_Programmer_CLI.exe. |
- Check that the STM32CubeProgrammer tool is installed and accessible; if not, go to the installation procedure (installing the tools)
STM32_Programmer_CLI --h ------------------------------------------------------------------- STM32CubeProgrammer <tool version> -------------------------------------------------------------------
- Get the device port location for the USB link
STM32_Programmer_CLI -l usb ------------------------------------------------------------------- STM32CubeProgrammer <tool version> ------------------------------------------------------------------- Total number of available STM32 device in DFU mode: 1 Device Index : USB1 USB Bus Number : 002 USB Address Number : 002 Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000 Serial number : 000000000000 Firmware version : 0x011a Device ID : 0x0500
- Flash the microSD card with the image for the trusted boot chain
STM32_Programmer_CLI -c port=usb1 -w flashlayout_st-image-weston/FlashLayout_sdcard_stm32mp157c-dk2-trusted.tsv
- This operation takes several minutes (mainly depending of the rootfs size). A successful flashing outputs the following log:
Information |
Please note that the logs that you will obtain, might be slightly different, especially if you use a different software release. |
------------------------------------------------------------------- STM32CubeProgrammer <tool version> ------------------------------------------------------------------- USB speed : High Speed (480MBit/s) Manufacturer ID : STMicroelectronics Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000 Serial number : 000000000000 Firmware version : 0x011a Device ID : 0x0500 AREA NAME SECT.NBR PARTITION.ID SIZE TYPE Partition0 0000 0x00000000 0256 KB RW SECBL 0000 0x00000001 0001 MB RW Partition2 0000 0x00000002 0001 MB RW Partition3 0000 0x00000003 0256 KB RW Partition4 0000 0x00000004 0016 MB RW virtual 0000 0x000000f1 0512 B R Device name : STM32MPxxx Device type : MPU Device CPU : Cortex-A7 Start Embedded Flashing service Memory Programming ... Opening and parsing file: tf-a-stm32mp157c-dk2-trusted.stm32 File : tf-a-stm32mp157c-dk2-trusted.stm32 Size : 228536 Bytes Partition ID : 0x01 Download in Progress: [==================================================] 100% File download complete Time elapsed during the download operation is: 00:00:00.561 RUNNING Program ... PartID: :0x01 Start operation done successfully at partition 0x01 Flashlayout Programming ... [==================================================] 100% Running Flashlayout Partition ... Flashlayout partition started successfully Memory Programming ... Opening and parsing file: u-boot-stm32mp157c-dk2-trusted.stm32 File : u-boot-stm32mp157c-dk2-trusted.stm32 Size : 722945 Bytes Partition ID : 0x03 Download in Progress: [==================================================] 100% File download complete Time elapsed during the download operation is: 00:00:00.665 RUNNING Program ... PartID: :0x03 reconnecting the device ... USB speed : High Speed (480MBit/s) Manufacturer ID : STMicroelectronics Product ID : USB download gadget@Device ID /0x500, @Revision ID /0x0000 Serial number : 0000000000 Firmware version : 0x0110 Device ID : 0x0500 AREA NAME SECT.NBR PARTITION.ID SIZE TYPE fsbl1 0000 0x00000001 0256 KB RW fsbl2 0000 0x00000002 0256 KB RW ssbl 0000 0x00000003 0002 MB RW bootfs 0000 0x00000011 0064 MB RW rootfs 0000 0x00000012 0768 MB RW userfs 0000 0x00000013 6846 MB RW virtual 0000 0x000000f1 0512 B RW OTP 0000 0x000000f2 0512 B RW PMIC 0000 0x000000f4 0008 B RW Start operation done successfully at partition 0x03 Memory Programming ... Opening and parsing file: tf-a-stm32mp157c-dk2-trusted.stm32 File : tf-a-stm32mp157c-dk2-trusted.stm32 Size : 228536 Bytes Partition ID : 0x01 Download in Progress: [==================================================] 100% File download complete Time elapsed during the download operation is: 00:00:00.097 RUNNING Program ... PartID: :0x01 Start operation done successfully at partition 0x01 Memory Programming ... Opening and parsing file: tf-a-stm32mp157c-dk2-trusted.stm32 File : tf-a-stm32mp157c-dk2-trusted.stm32 Size : 228536 Bytes Partition ID : 0x02 Download in Progress: [==================================================] 100% File download complete Time elapsed during the download operation is: 00:00:00.107 RUNNING Program ... PartID: :0x02 Start operation done successfully at partition 0x02 Memory Programming ... Opening and parsing file: u-boot-stm32mp157c-dk2-trusted.stm32 File : u-boot-stm32mp157c-dk2-trusted.stm32 Size : 722945 Bytes Partition ID : 0x03 Download in Progress: [==================================================] 100% File download complete Time elapsed during the download operation is: 00:00:00.326 RUNNING Program ... PartID: :0x03 Start operation done successfully at partition 0x03 Memory Programming ... Opening and parsing file: st-image-bootfs-openstlinux-weston-stm32mp1.ext4 File : st-image-bootfs-openstlinux-weston-stm32mp1.ext4 Size : 64 MBytes Partition ID : 0x11 Download in Progress: [==================================================] 100% File download complete Time elapsed during the download operation is: 00:00:32.392 RUNNING Program ... PartID: :0x11 Start operation done successfully at partition 0x11 Memory Programming ... Opening and parsing file: st-image-weston-openstlinux-weston-stm32mp1.ext4 File : st-image-weston-openstlinux-weston-stm32mp1.ext4 Size : 507952 KBytes Partition ID : 0x12 Download in Progress: [==================================================] 100% File download complete Time elapsed during the download operation is: 00:04:06.544 RUNNING Program ... PartID: :0x12 Start operation done successfully at partition 0x12 Memory Programming ... Opening and parsing file: st-image-userfs-openstlinux-weston-stm32mp1.ext4 File : st-image-userfs-openstlinux-weston-stm32mp1.ext4 Size : 64 MBytes Partition ID : 0x13 Download in Progress: [==================================================] 100% File download complete Time elapsed during the download operation is: 00:00:32.095 RUNNING Program ... PartID: :0x13 Start operation done successfully at partition 0x13 Flashing service completed successfully
Go to the STM32CubeProgrammer article:
- to know more about the flashing operation
7. Booting the board[edit | edit source]
Now that the image is flashed on the STM32MP157x-DKx Discovery kit, let's finalize the system configuration:
- Step 1: check the configuration of the switches
- The figure below shows the position of the boot switches in order to boot from the microSD card.
- Step 2: (optional) connect a USB keyboard and/or a USB mouse (not provided) using the USB type A ports (3 and 4)
- Step 3: (optional) connect an Ethernet cable (not provided) to the dedicated connector (7)
- Step 4: check that the microSD card is inserted into the dedicated slot (2)
- Step 5: connect the provided power supply (5 V, 3 A) to the USB type C connector (8)
- Step 6: (optional) connect the ST-LINK/V2-1 USB micro-B port (5) to a host PC that runs a Terminal program with ST-LINK/V2-1 virtual port (e.g. Minicom on Ubuntu Linux PC or Tera Term on Windows PC)
- install and configure a remote Terminal program onto your host PC
- Step 7: (optional) connect a HDMI monitor (or TV) to the HDMI connector. This option is particularly useful for the STM32MP157A-DK1 and STM32MP157D-DK1 Discovery kits that do not include any DSI display daughterboard
- Step 8: press the reset button (6) to reset the board
The board boots and the system will be available after few seconds.
Subpart - STM32MP15 - Starter Package
8. Examples[edit | edit source]
The examples are under construction: few of them are proposed below; more examples will come with the next releases. |
8.1. Examples running on Cortex-A7[edit | edit source]
The table below gathers links towards articles proposing examples of peripherals usage.
8.2. Examples running on Cortex-M4[edit | edit source]
Please read STM32CubeMP1 Package article.
9. Fast links to essential commands[edit | edit source]
If you are already familiar with the Starter Package for the STM32MPU Embedded Software distribution, fast links to the essential commands are listed below.
Information |
With the links below, you will be redirected to other articles; use the back button of your browser to come back to these fast links |
10. How to go further?[edit | edit source]
Now that the image is flashed on the STM32MP157x-DKx Discovery kit, you might want to switch to the STM32MP1 Developer Package, in order to modify or tune the STM32MPU Embedded Software distribution with your own developments.