Custom memory section for subsystem not showing up in block
Mostra commenti meno recenti
I have been following the Embedded Coder guide to use custom memory sections for Subsystem.
I have created a new package with my memory section that has the pre and post direction #pragma blabla.
I have linked my data dictionary to this package, so I can see that memory section.

But whatever I do, the memory section doesn't appear in the subsystem drop down.

I must have missed something, but I can't figure it out.
I also tried adding a Function custom template. When I do, I can add it to the "Function Default" in the code mapping editor, but I don't want to change the default, I want to move one function subsystem only!
Thanks,
Quentin
1 Commento
Quentin Coret
il 21 Nov 2024
Risposta accettata
Più risposte (1)
Satwik
il 21 Nov 2024
0 voti
Hi Quentin,
I observe that you have set the 'Function packaging' to 'Nonreusable function'. To enable configuration of memory sections in this case, the 'Function with separate data' option needs to be selected. If you do not select 'Function with separate data', the subsystem data inherits memory sections from the model.
This is mentioned in the same documentation, I have highlighted the section under which this requirement is mentioned:
I hope this helps!
1 Commento
Quentin Coret
il 21 Nov 2024
Modificato: Quentin Coret
il 21 Nov 2024
Categorie
Scopri di più su Deployment, Integration, and Supported Hardware in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


