STM32CubeIDE 1.18.1 removes middleware folder after re-generating
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-25 1:12 AM - last edited on ‎2025-06-25 1:20 AM by Andrew Neil
Hi.
I add the "x-cube-eeprom-v8-0-0" library to my project manually:
I create folder Middlewares and copy sources the folder as expected,
I specify the paths in the project settings,
I uncheck the "Delete previously generated files when not re-generated" on the Project Manager tab in Device Configuration Tool,
but the folder is still deleted when regenerating after changing the any settings in ioc.
What am I doing wrong?
Solved! Go to Solution.
- Labels:
-
STM32CubeIDE
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-25 3:05 AM - edited ‎2025-06-25 3:06 AM
Hello @Foregit
CubeMX strictly manages certain folders like Middlewares, Src, Inc, etc.
During regeneration, CubeMX cleans up files and folders inside these managed directories that it does not recognize as part of the generated project.
I recommend you to rename your folder and move it outside Middlewares.
YourProject/
MyMiddlewares/
x-cube-eeprom-v8-0-0/ <-- safe
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-25 3:05 AM - edited ‎2025-06-25 3:06 AM
Hello @Foregit
CubeMX strictly manages certain folders like Middlewares, Src, Inc, etc.
During regeneration, CubeMX cleans up files and folders inside these managed directories that it does not recognize as part of the generated project.
I recommend you to rename your folder and move it outside Middlewares.
YourProject/
MyMiddlewares/
x-cube-eeprom-v8-0-0/ <-- safe
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.
