STM32CubeMP2 Package - Getting started

Revision as of 11:40, 7 December 2023 by Registered User
Applicable for STM32MP25x lines


The STM32CubeMP25 Package / STM32CubeMP2 Package is part of the STM32 MPU embedded software offer. It runs on the Arm® Cortex®-M33 coprocessor.
It is included in the three software packages proposed by the Linux® Yocto-based embedded software:

  • in the starter package as pre-built examples (firmware),
  • in the developer package as full source code for development (associated with an IDE),
  • in the distribution package as a dedicated recipe (that integrates the full source code) in the OpenSTLinux distribution.

Therefore, this article explains how to develop, build and run existing or new examples thanks to these three software packages.

1. Prerequisites[edit source]

In the next chapters, it is assumed that the selected board is assembled according to the information provided in its hardware description article (e.g., STM32MP257x-EV1 - hardware description for STM32MP257x-EV1 Evaluation boards), and that the different boot related switches of the board are also known (e.g., boot related switches for STM32MP257x-EV1 Evaluation boards).

Refer also to the Which Package better suits your needs article for further information on all packages.

The firmware is loaded into the Arm® Cortex®-M33 coprocessor by the Arm® Cortex®-A35 processor running the Linux® distribution making use of the Linux Remote Proc framework. This method is also referred to as Production Mode


2. Starter Package for STM32CubeMP25[edit source]

The Linux Yocto-based starter packages (STM32MP25 Evaluation boards - Starter_Package) contain pre-built examples (firmware) that are located in the Linux file system (userfs folder: /usr/local/Cube-M33-examples/<board_name>/Examples), and that be run from a host console thanks to a dedicated script (fw_cortex_m33.sh).

This chapter, and its sub-chapters, aims to explain all steps needed to run an existing example.

2.1. User file system for Arm® Cortex®-M33 examples[edit source]

The folder structure of Linux User File System for STM32Cube M33 firmware is described below for STM32MP257F-EV1 board:


STM32CubeMP2MPUPackageLinuxStructure2.png


3. Developer Package for STM32CubeMP25[edit source]

The STM32MPU Developer Package article explains how to get the source code for the STM32CubeMP25 Package, and the associated tools (e.g., IDE).

This chapter and its sub-chapters aim to explain all steps needed to run an existing example using STM32CubeIDE. Once done, you can jump to the chapter #How to go further with the Developer Package to enhance your experience with the STM32CubeMP2 Developer Package.

3.1. Developer Package prerequisites[edit source]

Warning white.png Warning
  • Be sure to have installed the STM32CubeMP2 Package and the STM32CubeIDE.
  • Be sure also to have connected ST-Link and Ethernet cables to your board.

3.2. How to Build and run an existing example with the Eclipse IDE[edit source]

  • Open the folder containing the example and double-click on file .project to open Eclipse IDE:

File:MP2IDECubeExampleFolderStructure2.png