How to set an exported global storage class for Data Store Memory in Autosar Blockset?

I am unable to set an exported global storage class for Data Store Memory with Autosar.tlc. When I use ert.tlc for the same model, it is available through the Code Mappings Editor. But the setting to an exported global storage class is not available anymore under the Data Stores tab in the Code Mapping Editor after converting to Autosar.tlc from ert.tlc.

 Accepted Answer

In an AUTOSAR model, only ArTypedPerInstanceMemory, StaticMemory, or Auto can be mapped to Autosar SW Component under the Data Stores tab in the Code Mapping Editor.
Also, there is no option to set Storage Class in the Data Store Memory block. Therefore, you need to select the option "Data store name must resolve to Simulink signal object" in the Data Store Memory block > Block Parameters > Signal Attributes. Then you can set the Storage Class to ExportedGobal through the Simulink signal object. Now, you see the Data Store Memory mapped to ExportedGlobal in the Code Mappings Editor as shown in the captured image below.

More Answers (0)

Products

Release

R2021a

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!