cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX deletes Paths and Libraries info.

J?�lv
Associate

Hi all,

I'm using STM32CubeMX 5.3.0 (integrated into STM32CubeIDE):

When I save the .ioc and Re-generate code, all the info for Paths and Libraries gets deleted.

I must to add again include dirs and external source files each time I change the configuration.

This is similar to what is stated here (v 4.26): https://community.st.com/s/question/0D50X00009XkWD5SAN/cubemx-deleted-all-my-custom-includes-and-libraries-

but I don't get the code between /* USER CODE */ tags deleted.

Thanks.

3 REPLIES 3
Markus GIRDLAND
ST Employee

Would you say your problem is similar to the one in this thread?

https://community.st.com/s/question/0D50X0000BFzqKOSQZ/prebuild-and-post-build-step-deleted-when-the-project-is-regenerated-from-cubemx

Or is this a new type of problem?

Oskar Wróbel
Associate

Can't speak for Jose, but for me it is very similar. Thread you mentioned starts with pre-/ postbuild steps, but in fact all of project custom settings (additional folders/includes/libraries etc.) are lost on *.ioc rebuild. That leads to errors building project (includes not found, etc.) Which is extremely frustrating. Actually it is hard to believe you did not encounter this problem in testing [you guys do testing, right? ;)].

My guess is CubeMX blindly recreates all project configuration files without regard to user changes. Which is obviously very wrong. Your workflow blindly implies that each and every change to the project came from CubeMX which is false as soon as you add one external library. I think you should at least warn user, that their custom changes will be lost on rebuild instead of silently deleting them.

Cartu38 OpenDev
Lead II

Definitively a bug.

Sounds some improvements have been done Thanks STM32CubeIDE V1.1.0 just released on st.com