Lead II
October 3, 2025
Question
"Delete previously generated files when not regenerating" not working for some libraries
- October 3, 2025
- 2 replies
- 346 views
Comparing CMake projects with STM32CubeIDE projects shows many unused libraries added as source for CMake project:
- \Drivers\CMSIS\DSP (44.7MiB)
- \Drivers\CMSIS\Core (1.8MiB)
- \Drivers\CMSIS\NN (1.5MiB)
- \Drivers\CMSIS\RTOS2 (112.KiB)
- \Drivers\CMSIS\RTOS (40.0KiB)
Total size of these extra unused files is 48.1MiB. I think this is because initially I selected "Copy all used libraries into the project folder" (I think this is the default option). But when I check "Copy only necessary library files" they won't be removed when regenerating. Despite "Delete previously generated files when not regenerating" being checked.
If I delete them and generate again then they won't be added again and build works fine. So they clearly are not needed.
I'm using the latest version: STM32CubeMX V6.15.0
