2025-05-23 10:36 AM
I created a project using STMCubeMX and imported into STM IDE. All went without errors. However in the IDE, Build project is disabled. When I click on Run As.., I got the following error.
How can I get the build project enabled ?
This is my first time using STM IDE. Previously I used Arduino and it worked fine for my basic projects.
2025-05-23 10:52 AM - edited 2025-05-23 10:52 AM
In CubeMX, change the toolchain from EWARM to STM32CubeIDE in project settings. Then, after generating code, select the open project option.
Or generate from within stm32cubeide from the start.
2025-05-23 2:18 PM
Thank you TDK. My project is already set to IDE.
2025-05-26 5:24 PM
The issue is that it was not imported properly probably because it was an EWARM project. Note that there is an EWARM directory. The icons in the project explorer are also clues that show it was not imported properly.
Delete the project.
Remake it in CubeMX as an STM32CubeIDE project and select "open project" after generating code. Or make it directly within STM32CubeIDE in which case this will be done automatically.
This is what it looks like when done correctly: