Code Generation

Generate AUTOSAR-compliant C++ code and XML descriptions for testing or integration

After creating and developing a Simulink® representation of an AUTOSAR adaptive software component, generate code for testing or for integration into the AUTOSAR run-time environment. AUTOSAR code generation requires Simulink Coder™ and Embedded Coder®.

Functions

autosar.code.exporta2lGenerate ASAP2 (A2L) file for model

Topics

Generate AUTOSAR Adaptive C++ Code and XML Descriptions

Generate AUTOSAR-compliant C++ code and export AUTOSAR XML (ARXML) descriptions from AUTOSAR adaptive component model.

Configure AUTOSAR Adaptive Code Generation

Configure code generation for AUTOSAR adaptive model.

Model Configuration Parameters: Code Generation AUTOSAR (Embedded Coder)

Parameters for controlling AUTOSAR code generation.

Configure AUTOSAR Adaptive Data for Run-Time Measurement and Calibration

Generate XCP Slave function calls and ASAP2 (A2L) file for calibrating AUTOSAR adaptive model data.

Create Linux Executable for Run-Time Calibration

Generate Linux executable from AUTOSAR adaptive model.

Limitations and Tips

Limitations that apply to AUTOSAR code generation.