Last edited one month ago

How to install the Yocto Project SDK in STM32CubeIDE

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

This article explains:

  • how to install OpenSTLinux SDK in STM32CubeIDE,
  • how install the OpenSTLinux plugin enabling the import of sources of a project in STM32CubeIDE.
Warning DB.png Important
This article has been written with the example with STM32MP15x lines More info.png but it is also applicable to any STM32 Arm® Cortex® MPUs More info.png.

1. Prerequisites[edit | edit source]

  • Linux® environment is mandatory.

2. Install OpenSTLinux SDK in STM32CubeIDE[edit | edit source]

Inside STM32CubeIDE, a setup allows to point this installation directory.
This wizard is available from Window > Preferences menu selecting STM32Cube > OpenSTLinux SDK Manager menu.

  • Fill the Install Root Path with the folder where you installed the SDK.
  • Click on Apply to see the SDK in Available OpenSTLinux SDK.
  • Select it and Apply and close
OpenSTLinux SDK Manager
Warning white.png Warning
In STM32CubeIDE, there is no way to install both versions of Yocto Project®/OpenSTLinux SDK, 32-bit & 64-bit. A special attention is needed to set-up the appropriate "Arch": "arm" for STM32MP1-based project, "arm64" for STM32MP2-based project.

Later, if you need to uninstall the Yocto Project® SDK, the Install Root Path must be empty then press Apply and close .

OpenSTLinux SDK Manager: uninstall

Yocto SDK removal, from the disk, is under final user responsibility.

3. Install OpenSTLinux plugin sources[edit | edit source]

Prerequisites:


The OpenSTLinux plugin allows to easily import OpenSTLinux projects sources.

To install the OpenSTLinux plugin, go into Window > Preferences > Install/update > Available Software Sites, it is then recommended to disable all the update sites except OpenSTLinux update site. Select it and click on Reload.

Select OpenSTLinux update site

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

OpenSTLinux SDK Installation Menu

Setup is finalized thanks to Cortex®-A contextual menu in the Project Explorer: Setup OpenSTLinux.

OpenSTLinux plugin install

During OpenSTLinux plugin installation, you have to trust Update Site thanks to corresponding checkbox.

OpenSTLinux check boxes

Now, you can check that OpenSTLinux plugin has been installed:Help > About STM32CubeIDE >Installation Details.

OpenSTLinux plugin installed

OpenSTLinux plugin is then installed.

.