Adjusting the Project Settings for the SWC
Note |
|---|
This task can only be performed when ASCET‑SE is installed. |
- Open the project or default project of the software component.
Click the
Project Properties button.The Project Properties dialog window opens in the Build node.
In the Target combo box, select the ANSI-C target.
Only the ANSI-C target can be used for AUTOSAR code generation.
The Code Generator is selected automatically.
If your SWC directly or indirectly contains a matrix, set up the ANSI-C target as follows:
Follow the Edit Target Settings link.
The ASCET options window opens in the Targets\ANSI-C\Build node.
In that node, set the Number of dimensions for fixed matrices option to Two-dimensional.
Note
If Number of dimensions for fixed matrices is set to One-dimensional, a warning WMdl653 is issued during code generation. By default, the warning is promoted to an error.
- Close the ASCET options window with OK.
- In the Compiler combo box, select a suitable compiler for the target.
In the Operating System combo box, select RTE-AUTOSAR *.
Other operating systems cannot be used for AUTOSAR code generation.
- Configure the AUTOSAR XML output for the selected AUTOSAR version.
- It is recommended that you open the Code Generation node and select the casting strategy MISRA compliant.
- Click OK to confirm the settings and close the Project Properties dialog window.
See also
Configuring the AUTOSAR XML Output
Project Properties – Build Node