2019-09-18 06:53 AM
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.
2019-09-20 06:11 AM
Would you say your problem is similar to the one in this thread?
Or is this a new type of problem?
2019-09-23 02:45 AM
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.
2019-10-15 12:04 PM
Definitively a bug.
Sounds some improvements have been done Thanks STM32CubeIDE V1.1.0 just released on st.com