- Download the zipped image folder containing the latest STM32MP1 image from the STM32MP1 OpenSTLinux Starter Package page.
Note
You may have to create an ST account (it's free) to get access to software downloads.
- Unzip the folder to a known location.
- Download and Install the STM32CubeProgrammer software (the utility for flashing the image to the device).
- Set up the STM32MP135F-DK board for flashing:
-
Set all 4 of the the dip-switches to "OPEN" for flashing
-
Power the board with a USB-C cable connected to the "PWR_IN" USB-C port connected to a 5VDC supply with at least 1.0A of output.
-
Connect the USB-C "USB" port of your board to your PC with the included USB-C cable.
- If your PC does not have a USB-C port, you may use a USB-A to USB-C cable and connect it to a normal USB-A port on your PC.
-
Insert the included SD card into the SD card slot on the board.
-
Push the "RESET" button on your board to ensure it boots into flashing mode (the LCD display of the board should be black when it has booted into flashing mode).
-
- Run the STM32CubeProgrammer software and click on the "Open file" tab.
- Navigate to the directory where you have the unzipped image folder, and then navigate through the folder to get to this directory: {Your preliminary directory}{downloaded image name}\images\stm32mp1\flashlayout_st-image-weston\optee
- Select the FlashLayout_sdcard_stm32mp135F-dk-optee.tsv file and then click "Open."
- Next, click on the "Browse" button to select the binaries path.
- Navigate once again to the directory where you have the unzipped image folder, and then navigate through the folder to get to this directory: {Your preliminary directory}{downloaded image name}\images\stm32mp1
- Select the stm32mp1 folder and then click "Select folder."
- Back in the STM32CubeProgrammer window, on the right-hand side of the screen, if the "Port" is listed as "No DFU...," make sure your USB cable is connected both to your PC and the board, and then click the revolving arrows icon.
- When the device is recognized by the software, the port listing will be "USB" followed by a number, such as 1. The serial number of your board should also be listed beneath the port name.
- You are ready to flash. Click the "Download" button to begin the flashing process.
Note
The STM32MP135F-DK will turn off and on several times throughout the flashing process. It is important to not unplug or disturb it during the process. Given the size of the image it will usually take several minutes to flash. It is worth noting that the LCD screen on the board will turn on with some output text during the flash process, so do not be alarmed.
- When the flash has completed successfully, this pop-up in the STM32CubeProgrammer window will appear.
- Flip dipswitches 1 and 3 to the "closed" position while leaving dipswitches 2 and 4 in the "OPEN" position. Push the reset button to properly boot the new image from the SD card.
Note
For the first boot after flashing, the board may take a few minutes to turn on.
-
Using a USB-A to micro-USB cable, connect your board to your PC at the ST-LINK connector.
-
Check and note which COM port the board is utilizing
-
Connect to the STM32MP135F-DK in a terminal emulator using these serial settings (your COM port number may be different):
Note
After connecting to the board over serial, you may need to press ENTER in the terminal window to get the actual terminal prompt text.
-
Connect the board to the internet using an Ethernet connection
-
Execute
sudo apt-get update
to check for and install updates for the system -
Execute
sudo apt-get install python3-pip -y
to install the pip python3 package manager -
Navigate to the "/home/weston" directory with the command
cd /home/weston
-
For the rest of the basic demo setup and execution processes, follow the instructions in the Python Lite SDK Quickstart Guide
Important
If planning to use an expansion demo, make sure to create your device using the proper template for that demo as outlined in that demo's specific README instead of the template provided in the Python Lite SDK Quickstart Guide.