This article explains how to import STM32 Arm® Cortex® MPUs
projects generated with STM32CubeMX in STM32CubeIDE. There are three ways to import a project generated by STM32CubeMX in STM32CubeIDE, three manners explained below.
1. Prerequisites[edit | edit source]
- STM32CubeMX must be installed.
- Projects must have been created with STM32CubeMX, for that refer to How_to_create_STM32MPU_projects_with_STM32CubeMX
- STM32CubeIDE must be installed.
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.
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.
.
By selecting this "Open Project" option, STM32CubeIDE starts automatically and project is successfully imported on into STM32CubeIDE.
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.