AUTOSAR Component Designer
R2026bGenerate AUTOSAR compliant C or C++ code and export ARXML descriptions for processors used in automotive systems
Description
Use the AUTOSAR Component Designer app to generate C or C++ code and ARXML descriptions from an AUTOSAR component model. When you open the app, an AUTOSAR tab is added to the toolstrip. The AUTOSAR tab represents groups of tasks in the AUTOSAR Blockset workflow. The AUTOSAR tab provides different options depending on if the opened model is configured for the AUTOSAR Classic Platform or for the AUTOSAR Adaptive Platform.
To configure models for the AUTOSAR Classic Platform, you set the output to AUTOSAR. For models configured for the AUTOSAR Classic Platform, the AUTOSAR tab provides this toolstrip.

To configure models for the AUTOSAR Adaptive Platform, you set the output to AUTOSAR Adaptive. For models configured for the AUTOSAR Adaptive Platform, the AUTOSAR tab provides this toolstrip.

Open the AUTOSAR Component Designer App
From the MATLAB® Toolstrip, on the Apps tab, under Code Generation, click the app icon.
Examples
- Create AUTOSAR Software Component in Simulink
- Design and Simulate AUTOSAR Components and Generate Code
- Configure and Simulate AUTOSAR Classic Models with Simulink Real-Time
- Create and Configure AUTOSAR Adaptive Software Component
- Generate AUTOSAR Adaptive C++ Code and XML Descriptions
- Build Out of the Box Linux Executable from AUTOSAR Adaptive Model
Parameters
Tips
To generate code for a model in a modeling hierarchy, open the AUTOSAR Component Designer app in the Simulink Editor window from the top model for which you want to generate code. On the AUTOSAR tab, the functionalities apply to the top model of the hierarchy that is open in the editor.
To configure and view code for a referenced model, navigate to the model in the hierarchy and use the AUTOSAR Dictionary, Code Mappings editor (for AUTOSAR Classic models), Service Mappings editor (for AUTOSAR Adaptive models), and Code view. These views apply to the active model, which can be the top model or a referenced model.
Version History
Introduced in R2019b
