Code generation

As soon as you have a configuration without any error (i.e. without any red markers), the tool will generate the C code corresponding to the current configuration, in the folder identified by the "outputFolder" keyword.

This code generation is automatic, and is done each time the configuration file is saved.

Figure 1. Code generated from the configuration

The registers are generated with a comment indicating an explanation of the correponding values, instead of just the hexadecimal values.

On the contrary, the reset code, i.e. the code corresponding to the POR state of all registers will be generated only on demand, in the "src-gen" folder of the project.

Generation of the reset code is accessible (when a "noccfg" file is selected) through the project exporer contextual menu, with the option "Generate reset values".

Figure 2. Reset code generation

The resulting code looks like following picture:

Figure 3. Reset code generated