2023-07-24 07:05 AM
Hi - I'm using the STM32CubeIDE v1.13. Whenever I generate code from an .ioc then any resource exclusions I've made are removed/lost. This was also true of v1.12 and previous versions.
Is there a way to persist the resource exclusions across code generations? The code generation creates a new .cproject, where the exclusions reside. This is a pseudo xml file. Alternatively, is there a reliable way to edit this file programmatically - either from Python or a bat file?
2023-07-24 07:16 AM
> Is there a way to persist the resource exclusions across code generations?
The simplest way, easiest to understand: after successful build of the project, commit the project files (.project, .cproject) to your version control. If a bad change happens because of repeated generation or whatever else - revert these changes. Easy, safe.
2023-07-24 03:22 PM
And what to do when one actually needs to regenerate the code? Merge the project file versions manually? :beaming_face_with_smiling_eyes:
Alternatively, is there a reliable way to edit this file programmatically - either from Python or a bat file?
C code is generated by another code - CubeMX application. CubeMX uses even more code - templates. You can see that such "automation" doesn't actually work. But, of course, the solution is to add yet another layer of code... :rolling_on_the_floor_laughing:
2023-07-25 01:58 PM