Main Content

Code Generation

Generate AUTOSAR-compliant C++ code and XML descriptions for production integration; build Linux executables or libraries for testing

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

From an adaptive model, you can build a Linux executable or library. For Linux testing, you can configure run-time calibration, measurement, and logging.


coder.asap2.exportGenerate ASAP2 (A2L) file according to ASAM MCD-2 MC standards
createManifestCreate manifest file for AUTOSAR adaptive model


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.

Build Library or Executable from AUTOSAR Adaptive Model

Generate libraries and executables from AUTOSAR adaptive model.

Build Out of the Box Linux Executable from AUTOSAR Adaptive Model

Generate Linux executable for AUTOSAR adaptive model.

Configure Run-Time Logging for AUTOSAR Adaptive Executables

Forward AUTOSAR adaptive event logging information to a console, file or network.

Limitations and Tips

Limitations that apply to AUTOSAR code generation.