2026-04-19 11:27 PM
I have tried using STM32CubeMX 6.17.0 to generate an STM32F429 DISC1 project.
The generated project opened in STM32CubeIDE could not be compiled unless I add <root folder> in Project -> Properties -> C/C++ General -> Path and Symbols, the source location tab.
I don't know how this happen. It's disturbing to modify project settings each time after modifying the CubeMX and generating the project.
It's probably that should happened after I add some source folders to the projects.
Solved! Go to Solution.
2026-04-21 1:30 AM
Hello @NEdom.1
While generating the code with STM32CubeMX 6.17, I did not get build errors.
Thanks.
Mahmoud
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.
2026-04-20 12:13 AM - edited 2026-04-20 1:40 AM
Hello @NEdom.1
Let me thank you for posting.
The behavior described was not reproduced by my side.
The compilation completed without errors.
For more investigation, I recommend that you provide your Ioc.File.
Thanks.
Mahmoud
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.
2026-04-20 9:55 PM
Thank you for your reply , @Mahmoud Ben Romdhane.
Here is the .ioc file from STM32F429 Discovery board template.
2026-04-21 1:30 AM
Hello @NEdom.1
While generating the code with STM32CubeMX 6.17, I did not get build errors.
Thanks.
Mahmoud
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.
2026-04-21 5:08 AM
Thank you for the try. I added some code to the project.
It seems sometimes it lost the root folder, while sometimes not.
Anyhow, I know how to handle this. If there are red errors, I add the root folder manually. That's OK.