ARXML and Code Generation
R2026bExport composition and component AUTOSAR XML (ARXML) descriptions and generate component code (requires Embedded Coder). You can export an entire architecture model, a nested composition, or a single component. If you initiate an export that includes a composition, the export includes XML descriptions of the composition, component prototypes, and composition ports and connectors. When you export ARXML you can create a ZIP file to package build artifacts from the model hierarchy for relocation and integration.
You can export an ECU configuration from an AUTOSAR architecture model as an
extract that maps the software components in a composition to an AUTOSAR ECU. You can
export composition ARXML descriptions and generate ASAP2 (.a2l)
files.
Functions
validate | Validate AUTOSAR properties and mappings for Software Composition block or AUTOSAR architecture model (Since R2023b) |
slbuild | Generate and compile standalone or model reference code from model |
export | Export ARXML, ASAP2 files from AUTOSAR Blockset architecture models, and generate component code |
exportDictionary | Export interface, data type, and platform-specific definitions from Architectural Data section of data dictionary (Since R2022b) |
save | Save AUTOSAR architecture model |
close | Close AUTOSAR architecture model |
destroy | Remove and delete AUTOSAR architecture element |
Topics
- Configure AUTOSAR Adaptive Code Generation
Configure code generation for AUTOSAR adaptive model.
- Configure AUTOSAR Code Generation
Configure code generation for AUTOSAR model.
- Configure and Export ARXML from AUTOSAR Classic Software Architectures
Generate and optionally package AUTOSAR XML descriptions and C code from AUTOSAR software architectures.
- 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™).
- Define Safety Levels for AUTOSAR Architecture Model Elements
Add safety extension ASIL to a component, port, composition, and runnable.
- Generate ASAP2 File for AUTOSAR Architecture Models
Generate ASAP2 file for AUTOSAR architecture models.
- Export AUTOSAR Architecture ECU Extract
You can export ECU extracts from compositions in an AUTOSAR classic architecture model.



