Last edited 3 hours ago

How to install the Yocto Project SDK in STM32CubeIDE

Applicable for STM32MP13x lines, STM32MP15x lines, STM32MP23x lines, STM32MP25x lines

This article explains how to install Yocto Project® SDK provided by OpenSTLinux in STM32CubeIDE.

1. Overview[edit | edit source]

On Linux® host, STM32CubeIDE supports OpenSTLinux projects and its associated Yocto Project® SDK. In order to build a given OpenSTLinux, it is mandatory to use the recommended Yocto SDK: one for STM32MP1 , one for STM32MP2


2. OpenSTLinux SDK Manager[edit | edit source]

The Yocto Project® SDK is first install on local disk, in an installation directory, thanks to STM32MPU_Developer_Package#Installing_the_SDK chapter.

Then inside STM32CubeIDE, a setup allows to point this installation directory. This wizard is available from "Window > Preferences" menu selecting OpenSTLinux SDK Manager menu from STM32Cube preferences. Its purpose is to fill the Install Root Path.

OpenSTLinux SDK Manager: install STM32MP1 version


It is then possible to install/uninstall the Yocto Project® SDK providing an empty Install Root Path.

OpenSTLinux SDK Manager: uninstall

Yocto SDK removal is under final user responsibility.

Warning white.png Warning

In version STM32CubeIDE 1.17.0 there is no way to install both version of Yocto Project® SDK, 32-bit & 64-bit. A special attention is needed to set-up the appropriate version: the STM32MP1 SDK version for STM32MP1-based project, the STM32MP2 SDK version for STM32MP2-based project.

3. Setup OpenSTLinux[edit | edit source]

Setup OpenSTLinux contextual menu available from the Cortex®-A sub-project (named <project-name>_CA7 on STM32MP1, <projet-name>_CA35 on STM32MP2) is checking Yocto SDK set-up.

OpenSTLinux contextual menu


If no Yocto SDK is defined, it proposes to open OpenSTLinux SDK Manager.

OpenSTLinux SDK Installation Menu


Warning white.png Warning
Even if Yocto SDK is defined, it is recommended to check that the appropriate version is used: mp1 SDK version for STM32MP1-based project, mp2 SDK version for STM32MP2-based project.


OpenSTLinux source support plugin is then installed:

  • STM32MP1 source support plugin for STM32MP1-based project
  • STM32MP2 source support plugin for STM32MP2-based project

These Eclipse® plugins allow to easily import OpenSTLinux projects.

To import OpenSTLinux projects, go in Help > About STM32CubeIDE, then STM32CubeIDE Installation Details and finally Installed Software.

'OSTL source support' plugin installed


.