Last edited 3 weeks ago

How to install the Yocto Project SDK in STM32CubeIDE

Applicable for STM32MP13x lines, STM32MP15x lines



This article explains the way STM32CubeIDE is managing the Yocto Project® SDK provided by OpenSTLinux.

1. Overview[edit | edit source]

From STM32CubeIDE release 1.4.0 on Linux® host ONLY, STM32CubeIDE supports OpenSTLinux projects and its associated Yocto Project® SDK. Inside STM32CubeIDE, this support means two new Eclipse® plugins (SDK & Sources) to be installed, directly from the embedded CA7 project menu context:

  • Setup OpenSTLinux
  • Import an OpenSTLinux Project...
OpenSTLinux Contextual Menu

Two flavors are proposed for installing the Yocto Project® SDK:

  • Yocto SDK is already installed on the host workstation, typically after a download of the STM32MP1 OpenSTLinux Developer Package. In that case, only a setup is needed for STM32CubeIDE to use it.
  • Yocto SDK is not present on the host workstation. It can be installed via STM32CubeIDE.

The choice is proposed after the Setup OpenSTLinux menu, selecting Use existing.

OpenSTLinux SDK Installation Menu

Note that setup OpenSTLinux phase includes also download and installation of OpenSTLinux Sources plugin.

2. Using already installed Yocto Project® SDK[edit | edit source]

You must provide the Yocto Project® SDK Install Root Path in the STM32Cube Preferences. Typically if using the default Developper pakage directory tree under : <working root directory >/Developer-Package/SDK.

OpenSTLinux SDK Manager

3. Installing Yocto Project® SDK via STM32CubeIDE[edit | edit source]

This corresponds to the Download choice where OpenSTLinux SDK plugin is installed. Note that missing OpenSTLinux required packages leads to unpredictable Yocto Project® SDK usage.

Warning white.png Warning
OpenSTLinux development requires specific packages on the host workstation. See PC_prerequisites.


It is then possible to install the Yocto Project® SDK as:

  • external, on the host workstation disk, outside STM32CubeIDE scope; Yocto SDK removal is under final user responsibility
  • embedded inside the STM32CubeIDE; Yocto SDK removal is managed by STM32CubeIDE via plugin OpenSTLinux SDK


OpenSTLinux SDK Install Location

After accepting unsigned content installation warning, the Yocto Project® SDK installation script is launched and appears in an STM32CubeIDE console.

Installation Security Warning


OSTL SDK Install Script
OSTL-SDK-Install-Success.png

.