2026-02-16 2:10 AM
Hi,
this is a small but annoying little bug: Sometimes after running code generation, apparently the STM32CubeMX application keeps some files open in the "cmake" subdirectory. This then prevents me from modifying or deleting (to force re-generation on the next code generation run) the files. It also interferes with my Post Generation user script which modifies those files.
This can be seen e.g. via ProcessExplorer:
It would be helpful if STM32CubeMX would close all file handles after code generation, ideally before calling the post generation user scripts.
Thanks!
Solved! Go to Solution.
2026-02-16 5:29 AM
Hello @Erlkoenig
Your change request has been forwarded to dev team under internal ticket ID 227258 for further investigation and feasibility check .
I will keep you posted with updates.
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.
2026-02-16 2:14 AM
Hello @Erlkoenig
I'm currently investigating this behaviour.I will get back to you ASAP.
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.
2026-02-16 5:29 AM
Hello @Erlkoenig
Your change request has been forwarded to dev team under internal ticket ID 227258 for further investigation and feasibility check .
I will keep you posted with updates.
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.
2026-02-16 6:57 AM
Thank you very much!