2026-06-07 3:30 AM
Question 1: STM32CubeMX and STM32CubeIDE Integration Issue
When I create a project using STM32CubeMX (with .ioc file) and then open it in STM32CubeIDE, the IDE shows Import Successful. However, when I try to build the project in IDE, I get the following error:
Errors occurred during the build.
Errors running builder 'CDT Builder' on project 'M33LED_CM33'.
Cannot invoke "com.st.stm32cube.common.mx.registry.IIdeHelper.getRootProject(org.eclipse.core.resources.IProject)" because the return value of "com.st.stm32cube.common.mx.registry.MxRegistry.getIdeHelper()" is nullI have searched through many posts and forums regarding this issue, but there doesn't seem to be a definitive solution. Most users have either switched to CMake or abandoned the IDE for compilation entirely.
This error only issue while importing the mx project into IDE. As compare, while I creating some empty STM32 or CMAKE project in IDE and build them, all work well.
Question 2: CMake Project Generation
It appears that STM32CubeMX can only create STM32CubeIDE project files, and there is no option to generate CMake projects. Is this correct?
If so, what is the most convenient workflow for resource configuration and code generation for STM32MP2 M33 bare-metal development?
Specifically:
Additional Context:
Development Environment:
related issue:
https://community.st.com/t5/stm32cubeide-mcus/errors-building-a-project/m-p/688419#M28261
2026-06-07 3:39 AM
Sidekick tells:
To create a CMake project using STM32CubeMX, follow these steps:
To create a CMake project with STM32CubeMX:
2026-06-07 3:42 AM
while using mx generate a cmake code and import it in ide. I can only see some includes files. the src, common, drivers file eventually disappeared.
2026-06-07 4:21 AM - edited 2026-06-07 4:23 AM
> However, when I try to build the project in IDE, I get the following error:
When you generate a project with CubeMX, make sure to generate for CubeIDE. Older CubeMX versions by default generate for IAR.
After importing the project, do Refresh, then Properties -> C/C++ Build-> Settings; see if it looks good.
Avoid using unsupported exotic Linux versions; for best results use Windows (it just works).
> It appears that STM32CubeMX can only create STM32CubeIDE project files, and there is no option to generate CMake projects. Is this correct?
No. You can select the project type, including CMake.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.