Custom Storage Class and Memory Section not visible in Code Mappings
이전 댓글 표시
Hello,
I am trying to use a custom memory section in the generated code to add specific memmap definitions and includes around certain global variables. As I am using external dictionary, idea is to add these memory section/storage class definitions as part of it:



All these settings (previews) look good, but I cannot find them available in Code Mappings.

As per Model Explorer they are already linked to my model, I am not sure what are aditional steps to make them visible to the Code Mappings editor. Could you please provide some hints in order to make connections between custom memory sections and variables in the generated code?
I use grtl.tlc in code generation settings.
EDIT:
답변 (1개)
Sumukh
2024년 10월 3일
0 개 추천
Hi Djordje,
Based on the images provided, my understanding is that a custom storage class has been created in Embedded Coder Dictionary and the custom class is not appearing as an option in the Storage Class dropdown for Global data stores data element.
Global data stores are data stores defined by a signal object in the base workspace or in a data dictionary. These stores cannot be mapped to a custom storage class defined in the Embedded Coder dictionary, excluding the predefined storage classes. You can refer to the following documentation that states this limitation for global data stores:
I hope this answers your query.
카테고리
도움말 센터 및 File Exchange에서 Simulink Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!