Code generation copies many unused files (CMSIS headers) into project
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-10 2:22 AM
I'm using CubeIDE 1.4.2 and created a new project with the setting "copy only the necessary library files".
After creation, I see there are 21 header files in the project's subdirectory \Drivers\CMSIS\Include\ . Most of them are definitely not needed as they are CMSIS definitions for e.g. different ARM cores or compilers. When I delete the unnecessary ones, compilation still works fine.
However, after every code generation from the .ioc file in the Device Configuration Tool, all those unneeded files are again created although they are never used. The IDE does have all the info to know which files are required, so what is the point in cluttering the project with all those headers? Can I somehow disable this?
- Labels:
-
STM32CubeIDE
-
STM32CubeMX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-10 4:35 AM
> Can I somehow disable this?
Nope, that's just how it works currently.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-10 4:43 AM
Well, that's very poor for a dynamic code generator... But thanks for the clarification at least.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-10 5:29 AM
I agree. I didn't write it. Free software is what it is.
