Why do I get the error "Unsupported custom storage class 'Default' for symbolic dimension"?
40 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2020-3-18
编辑: MathWorks Support Team
2024-12-17,18:11
When I generate code for my model with Embedded Coder, I see the following error in the diagnostic viewer during the build:
Unsupported custom storage class 'Default' for symbolic dimension A. Specify one of the following custom storage classes:
- Define or ImportedDefine with header file specified
- CompilerFlag - SystemConstant (AUTOSAR.Parameter)
- User-defined custom storage class that defines data as a macro in a specified header fileTo disable symbolic dimension propagation, search for 'Allow symbolic dimension specification' in the Configuration Parameters dialog box and clear the checkbox.
采纳的回答
MathWorks Support Team
2024-12-17,0:00
编辑:MathWorks Support Team
2024-12-17,18:11
Simulink.Parameter is used to define the port dimension of a signal. Symbolic dimensions appear as compile time macros in the code, e.g. my_vector [my_dim], when my_dim is defined as a compiler flag or macro. Therefore, they have to be associated with a Storage Class that generates such constants in the code, and the error message is clear what Storage Classes need to be used. See following doc for more details:
If you do not want your size to be compile time tunable, then disable "symbolic dimension propagation" as the error message suggests.
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!