cancel
Showing results for 
Search instead for 
Did you mean: 

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

Geoff104
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

7 REPLIES 7
Andrew Neil
Super User

@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.

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

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
Associate II

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

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
Associate II

@Ghofrane GSOURI Many thanks, suggestions worked!

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.