Processor Expert in MCU10 generates a lot of files for me. But sometimes I need to tweak things a bit. I change the generated sources to fit my needs, and then I want to prevent that my changes get overwritten by the next code generation.
First, I need to know which files are generated: the information in “Dissection of MCU10 Projects” helps me to identify them. But how can I prevent code generation for each component? Or for other generated files? Or how to completely disable code generation?
For each component: If I have made a modification in the generated code, I can disable this with a the context menu:
I notice that the Icon of the component changes to show that code generation is disabled:
With this I can control the code generation for each Processor Expert Embedded Component. But what about the shared Files maintained by Processor Expert? Here I find the settings in the project properties (Project > Properties > Processor Expert) panel:
That way I can prevent creation of the shared module completely with the ‘Do not generate’ setting. Or having code created, but not changed afterwards with the ‘Create, but do not change’ setting.
To disable code generation completely, I use the ‘Freeze code generation‘ setting:
The same dialog gives me control over the build process: If I want to disable code generation when I do a build, I can control this with the ‘Generate code before build automatically‘ setting.
If I need to do changes in the linker file as outlined in “USB or not: CDC with Processor Expert”, then I can disable this in the CPU component. I use the Inspector View on the CPU and disable linker file generation in the ‘Build options‘ tab: Here I can disable not only the linker file generation, but as well the debugger configuration files:
With this I have complete control over my code generation.
Happy Disabling 🙂