Last edited 2 months ago

How to import STM32MPU project generated by STM32CubeMX in STM32CubeIDE

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

This article explains how to import STM32 Arm® Cortex® MPUs More info.png projects generated with STM32CubeMX in STM32CubeIDE. There are three ways to import a project generated by STM32CubeMX in STM32CubeIDE, three manners explained below.

Warning DB.png Important
In this article, project are created for specific ST boards. Nevertheless, similar procedure can be done for specific STM32 Arm® Cortex® MPUs More info.png device used on customer boards. In this article, the "MP15" project is used for the screenshots but the procedure is for any generated project..

1. Prerequisites[edit | edit source]


2. Import generated project in STM32CubeIDE from folder containing the project - Option1[edit | edit source]

For that, just after the project generation in STM32CubeMX, select "Open Folder" in last pop up windows or go in the root directory containing the generated project.

In order to set STM32CubeIDE as default application to open STM32CubeMX project, select the STM32CubeIDE application from "Project folder":
".project > Open with > STMicroelectronics STM32CubeIDE 1.19.0" then click on "Select" button.

Several .project files are generated in the structure. To import a project in STM32CubeIDE, only the .project file available in the first level of the project can be used.

With this option, all STM32CubeMX projects, created with STM32CubeIDE as toolchain, are imported directly on STM32CubeIDE.

STM32CubeIDE default STM32CubeMX open project

3. Import generated project directly in STM32CubeIDE - Option2[edit | edit source]

This is the preferred option as fully automated. or that, just after the project generation in STM32CubeMX, select "Open Project" in last pop up window.

Warning white.png Warning
For this option, a Linux environment is mandatory and the OpenSTLinux STM32MPU SDK plugin must be installed. How to install this plugin is explained here

.

By selecting this "Open Project" option, STM32CubeIDE starts automatically and project is successfully imported on into STM32CubeIDE.

STM32CubeMX MP15 project Import start from STM32CubeMX

4. Import generated project from STM32CubeIDE - Option3[edit | edit source]

Open STM32CubIDE.

In menu "File > Import > Existing Projects into workspace > Next > select project from your disk > Finish.

STM32CubeMX STM32MP15 project import through STM32CubeIDE
STM32CubeMX STM32MP15 project import through STM32CubeIDE