Skip to main content
Associate
March 6, 2026
Solved

New CubeMX-created project does not build in CubeIDE v2.1.0

  • March 6, 2026
  • 3 replies
  • 437 views

Split from STM32CubeIDE version 2.1.0 won't generate IOC project file as this is a new question.

Please keep to one question per thread.


Thanks both Ghofrane GSOURI & Andrew Neil for pointers. Adopting the method shown in the presentation. I have selected a nucleo development board to create an STM32MX project. I have then created a STM32CubeIDE projecfrom the MX project. Having not written any code yet, I'm getting compilation errors but have no idea why? The errors are relating to files marked with a red x below:

 

STM32CudeIDE first compilation errors.jpg

Best answer by Ghofrane GSOURI

Hello @GChol.1 

I have just run a test using your IOC file, and the project builds successfully, as shown in the screenshot below.

 

build 0 error.png

Please try the following on your side:

1- Move your IOC file to a new, empty folder.
2- Open this IOC file in STM32CubeMX.
3- Generate the code for your IDE from STM32CubeMX.
5- Open the generated project in the IDE and rebuild it.

THX

Ghofrane

3 replies

Andrew Neil
Super User
March 6, 2026

@Geoff104 wrote:

 

Thanks both Ghofrane GSOURI & Andrew Neil for pointers. Adopting the method shown in the presentation. I have selected a nucleo development board to create an STM32MX project. I have then created a STM32CubeIDE projecfrom the MX project.


You're welcome.

Please mark the solution in that other thread.

 

Which version of CubeMX did you use?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Geoff104Author
Associate
March 6, 2026

CubeMX V6.17.0. I have also tried with CubeIDE V2.0.0 and V2.1.0

Ghofrane GSOURI
Technical Moderator
March 6, 2026

Hello @Geoff104 

Could you please provide your IOC?

I will be waiting for your feedback.

THX

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
GChol.1
Visitor II
March 9, 2026

Hi @Ghofrane GSOURI , Geoff104 here (Had to use work account as I seem to be locked out of my personal account) Please see attached *.ioc file

Ghofrane GSOURI
Ghofrane GSOURIBest answer
Technical Moderator
March 9, 2026

Hello @GChol.1 

I have just run a test using your IOC file, and the project builds successfully, as shown in the screenshot below.

 

build 0 error.png

Please try the following on your side:

1- Move your IOC file to a new, empty folder.
2- Open this IOC file in STM32CubeMX.
3- Generate the code for your IDE from STM32CubeMX.
5- Open the generated project in the IDE and rebuild it.

THX

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
GChol.1
Visitor II
March 11, 2026

@Ghofrane GSOURI Many thanks, suggestions worked!

Ghofrane GSOURI
Technical Moderator
March 11, 2026

Hello @GChol.1 

Please mark the post that helped you as the best answer.

THX

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.