AUTOSAR Component Configuration
After you create an AUTOSAR software component model in Simulink®, use the Code Mappings editor and the AUTOSAR Dictionary to further develop the AUTOSAR component. The Code Mappings editor and the AUTOSAR Dictionary provide mapping and properties views of the component model, which can be used separately and together to configure the AUTOSAR component:
Code Mappings editor — Using a tabbed table format, displays entry-point functions, inports, outports, and other Simulink elements relevant to your AUTOSAR platform. Use this view to map model elements to AUTOSAR component elements from a Simulink model perspective.
AUTOSAR Dictionary — Using a tree format, displays a mapped AUTOSAR component and its elements, communication interfaces, computation methods, software address methods, and XML options. Use this view to configure AUTOSAR elements from an AUTOSAR component perspective.
Alternatively, you can configure AUTOSAR mapping and properties programmatically. See Configure and Map AUTOSAR Component Programmatically.
In a model for which an AUTOSAR system target file
autosar_adaptive.tlc) is selected, create or open a
mapped view of the AUTOSAR model. In the model window, do one of the following:
From the Apps tab, open the AUTOSAR Component Designer app.
Click the perspective control in the lower-right corner and select Code.
If the model has not yet been mapped to an AUTOSAR software component, the AUTOSAR Component Quick Start opens. To configure the model for AUTOSAR component development, work through the quick-start procedure and click Finish. For more information, see Create Mapped AUTOSAR Component with Quick Start.
The model opens in the AUTOSAR Code perspective. This perspective displays the model and directly below the model, the Code Mappings editor. Here are the perspectives for the Classic and Adaptive Platforms.
The Code Mappings editor provides in-canvas access to AUTOSAR mapping information, with batch editing, element filtering, easy navigation to model elements and AUTOSAR properties, and model element traceability. To view and modify additional AUTOSAR attributes for an element, select the element and click the icon.
To open an AUTOSAR properties view of the component model, either click the AUTOSAR Dictionary button in the Code Mappings editor or, on the AUTOSAR tab, select Code Interface > AUTOSAR Dictionary. The AUTOSAR Dictionary opens.
As you progressively configure the model representation of the AUTOSAR component, you can:
Freely switch between the Simulink and AUTOSAR perspectives, by selecting AUTOSAR tab menu entries or by clicking buttons.
Use the Filter contents field (where available) to selectively display some elements, while omitting others, in the current view.
In the Code Mappings editor, click the Update button to update the Simulink to AUTOSAR mapping of the model with changes to Simulink entry-point functions, data transfers, and function callers.
In the Code Mappings editor, click the Validate button to validate the AUTOSAR component configuration.
In the Code Mappings editor, with an element selected, click the Edit icon to view and modify additional AUTOSAR attributes for the element.