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

5 views (last 30 days)
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

MathWorks Support Team
MathWorks Support Team on 25 Nov 2022
Edited: MathWorks Support Team on 25 Nov 2022
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)

Tags

No tags entered yet.

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!