Code Generation
R2026bAfter creating and developing a Simulink® representation of an AUTOSAR adaptive software component, generate code for testing or for integration into the AUTOSAR Run-time for Adaptive Applications (ARA). 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.
Functions
coder.asap2.export | Generate ASAP2 (A2L) file according to ASAM MCD-2 MC standards |
linux.getXCPServiceConfiguration | Retrieve XCP service configuration status for model (Since R2026b) |
linux.setXCPServiceConfiguration | Set XCP service configuration for model (Since R2026b) |
removeNetworkBinding | Delete AUTOSAR properties related to network binding from AUTOSAR dictionary (Since R2026a) |
Topics
- 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.
- Generate AUTOSAR Adaptive C++ Code and XML Descriptions
Generate AUTOSAR-compliant C++ code and export AUTOSAR XML (ARXML) descriptions from AUTOSAR adaptive component model.
- Verify AUTOSAR Code with SIL and PIL Simulations
Verify AUTOSAR software component code with software-in-the-loop (SIL) and processor-in-the-loop (PIL) simulations.
- Verify AUTOSAR Adaptive Software Component Code With SIL
Verify generated C++ code for AUTOSAR Adaptive software components in architecture models with software-in-the-loop (SIL) simulations (requires System Composer™ and Embedded Coder and Simulink Coder).
- Configure AUTOSAR Adaptive Data for Run-Time Calibration and Measurement
Generate XCP Server function calls and ASAP2 (A2L) file for calibrating AUTOSAR adaptive model data.
- Configure AUTOSAR Adaptive Model for External Mode Simulation
Configure AUTOSAR Adaptive model for external simulation using XCP communication channel.
- Configure Run-Time Logging for AUTOSAR Adaptive Executables
Forward AUTOSAR adaptive event logging information to a console, file or network.
- 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.
- Limitations and Tips
Limitations that apply to AUTOSAR code generation.