cancel
Showing results for 
Search instead for 
Did you mean: 

Bug: CubeMX adding "Startup" directory to the config of the .cproject file after every regeneration

Heiko_Gericke
Associate II

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

3 REPLIES 3
Ghofrane GSOURI
ST Employee

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.

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:

Heiko_Gericke_0-1751632641823.png

 

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.