You can create a custom memory section using the Custom Storage Class Designer. The following steps are used to define a custom memory section:
1. Run the following command in the MATLAB command window to open the Custom Storage Class Designer tool.
2. Select the "tic2000demospkg" package as shown below:
3. Go to the "Memory Section" tab and create a new memory section and write the pragma statement in the "Pre statement" section:
4. Now click on the "Custom Storage Class" tab, create a new custom storage class, and select the previously created memory section for it:
5. Click "Apply" and close the window. Save the package when prompted. You may need to restart MATLAB to use the new storage class.
6. Continue below for your version of MATLAB:
a. For R2020a and before: Apply your new Storage class to "tic2000demospkg.Signal" and "tic2000demospkg.Parameter" objects and in block parameters where needed.
b. For R2020b and beyond: In R2020b, the Code Mappings Editor became the primary location to configure model data elements for code generation. Please refer to the following link about R2020b Release Notes for more information:
So instead of setting the “Signal object class” and “Storage class” in the “Block Parameters” of your “DataStoreMemory” (as you did in R2020a), that information would be defined using the Code Mappings Editor. To view the release-specific documentation, execute the following command in the MATLAB R2020b command window:
>> web(fullfile(docroot, 'rtw/ref/codemappingseditor.html'))
For specific Code Mappings settings used for CLA, please refer to the screenshots under “Data Exchange between the CLA and the C28x CPU” by executing the following command in the MATLAB R2020b command window:>> web(fullfile(docroot, 'supportpkg/texasinstrumentsc2000/examples/using-the-control-law-accelerator-cla.html'))
Please follow the below link to search for the required information regarding the current release: