2025-07-04 3:59 AM
Bug Description:
When regenerating a CubeMX Project with the STM32CubeIDE Toolchain selected, CubeMX will change the ".cproject" file and add a "./Startup/" directory to the source locations of the project if the following conditions are present:
1. In the root directory of the project (where the .ioc file is located) you need to have a directory with a name that is alphabetically closer to 'A' than the "./Core/" Directory. For example "./Application/"
2. In this directory there needs to be a "main.c" file, which would be created by the user.
This will cause CubeIDE to output a warning message on each build, stating that "./Startup/" could not be found.
If the directory name comes after "Core" alphabetically everything is working like expected and no "Startup" directory is added as a source location to the project configuration.
Version:
This behaviour is reproducible with CubeMX version 6.14.0. I currently have no easy way to test if this problem is also present on the most recent vesion 6.14.1
2025-07-04 5:02 AM - edited 2025-07-04 5:24 AM
Hello @Heiko_Gericke
First let me thank you for posting.
I'm currently investigating this , i will get back to you asap.
You mentioned that "This will cause CubeIDE to output a warning message on each build, stating that "./Startup/" could not be found."
Could you please share a screenshot of the warning message that you are facing.
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.
2025-07-04 5:38 AM
Hey Ghofrane,
thanks for the quick response.
Here is a screenshot of the warning in CubeIDE as well as the entry in the project source locations that gets added by CubeMX:
2025-07-04 6:44 AM
Hello @Heiko_Gericke
Your detailed description is much appreciated.
Issue has been raised to dev team .
Internal ticket number : 213509
I will keep you posted with updates.
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.