Adjusting the Project Settings for the SWC

Note

This task can only be performed when ASCET‑SE is installed.

  1. Open the project or default project of the software component.
  2. Click the Project Properties button.

    The Project Properties dialog window opens in the Build node.

  3. 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.

  4. If your SWC directly or indirectly contains a matrix, set up the ANSI-C target as follows:

    1. Follow the Edit Target Settings link.

      The ASCET options window opens in the Targets\ANSI-C\Build node.

    2. 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.

    3. Close the ASCET options window with OK.
  5. In the Compiler combo box, select a suitable compiler for the target.
  6. In the Operating System combo box, select RTE-AUTOSAR *.

    Other operating systems cannot be used for AUTOSAR code generation.

  7. Configure the AUTOSAR XML output for the selected AUTOSAR version.
  8. It is recommended that you open the Code Generation node and select the casting strategy MISRA compliant.
  9. Click OK to confirm the settings and close the Project Properties dialog window.

See also

Configuring the AUTOSAR XML Output

Project Properties – Build Node

Project Properties – Code Generation Node

Generating AUTOSAR Code