- Open your Simulink model.
- Go to the C Code tab and click on Code Interface in the Embedded Coder section.
- Select Embedded Coder Dictionary & navigate to Storage Classes.
- Click Add and define the name and properties of your new storage class.
- Now, open Code Mappings via Code Inteface > Code Mappings.
- Select the data elements to customize.
- Choose your custom storage class from the Storage Class dropdown.
- https://mathworks.com/help/ecoder/ug/design-custom-storage-classes-and-memory-sections.html?searchHighlight=customize%20Storage%20Class&s_tid=srchtitle_support_results_1_customize%20Storage%20Class