Code Generator Panel¶
Overview¶
The Code Generator panel is used to run the code generation flow, which translates a Sensor Controller Studio project into a Sensor Controller Interface (SCIF) driver. The generated files are written to the directory specified in the Project Panel .
The code generation output also includes documentation-related files:
- A tailored how-to-use guide (HTML document) for the generated SCIF driver, with code snippets that can be copied and pasted directly into the application
- A doxyfile (that is, a project file for Doxygen), and a Windows batch file for running Doxygen on the generated SCIF driver
Shortcut : Ctrl + G
Current Project¶
Select the project to be processed by the code generator. It is possible to select any currently opened project, and also to load a project directly from the Code Generator panel.
Code generation is triggered by entering the Code Generator panel, or by changing the current project selection.
Memory Usage¶
The AUX RAM is a limited resource that stores both code and data for the Sensor Controller. If the code generator completes AUX RAM image generation successfully, a detailed profiling of the AUX RAM utilization is displayed:
The following segments are displayed, one per row:
- Firmware framework functionality (task control and execution, power management and handshaking with the System CPU driver)
- Procedure library (subroutines that are not duplicated for each procedure call)
- Compiled task code blocks for each individual Sensor Controller task
- Totals
Each segment is further divided into the following:
- Code: Number of 16-bit words used for instructions
- Data: Number of 16-bit words used for variables
- Code + data: Total number of 16-bit words
- Code + data: Percentage of the AUX RAM size
Code Output and Event Log¶
The code generation log displays normal events and errors.
If code generation is successful, the driver source files can be written to the code output directory:
- Automatically: Select the Output SCIF driver files automatically option. This option is enabled by default.
- Manually: Press the Output SCIF driver files button.
To quickly access the generated files, press the View output directory button.