2026-03-17 9:17 AM - last edited on 2026-04-15 7:57 AM by Sara BEN HADJ YAHYA
The STM32CubeIDE project output setting is not present in STM32CubeMX2. Is there a way to generate a project that STM32CubeIDE can use? How do I do this?
I did try the "CMake" option but wasn't able to get a project to import correctly.
Solved! Go to Solution.
2026-03-17 6:18 PM - edited 2026-03-17 6:18 PM
Hello @TDK ,
This is the recommended way to use an STM32CubeMX2 CMake project with STM32CubeIDE (v2.1.1 recommended):
The project will then appear as an STM32 CMake project, and the normal Build option will be available.
2026-03-17 10:49 AM
I only do small try, but you can import cmake project,
2026-03-17 3:00 PM
I believe ST is focusing more on VS Code and moving away from Eclipse IDE.
2026-03-17 3:50 PM
Hi @TDK
in stm32cubemx2 Cmake project is usable for both stm32cubeide eclipse and vscode
if you encounter issues please share it and we will be happy to help
2026-03-17 4:25 PM
This post is me encountering issues and asking for assistance.
Is there a workflow? The "File -> Import -> Existing Projects..." option imports a project but there is no "build" option.
2026-03-17 6:18 PM - edited 2026-03-17 6:18 PM
Hello @TDK ,
This is the recommended way to use an STM32CubeMX2 CMake project with STM32CubeIDE (v2.1.1 recommended):
The project will then appear as an STM32 CMake project, and the normal Build option will be available.
2026-03-17 6:46 PM
There should be notes, unless I skipped over it on the STM32CubeMX2 documentation, that when using STM32CubeMX2 and want to import the CMake project with STM32CubeIDE, that you need a minimum of V2.x.x. I'm still on 1.19.0 because of the V2.0.0 bugs. I don't see the STM32 CMake Project option you've mentioned.
2026-03-17 7:44 PM - edited 2026-03-17 7:45 PM
Thanks. I was running into the same difficulty that @Karl Yamashita mentions below. With the stop in development in STM32CubeIDE, I didn't expect the file options to be changing.
Once updated to the latest version, the instructions work and I can build a CMake based STM32CubeMX2 project.
Older versions don't have a STM32C5 chip to be able to select, so updating seems to be the only choice.