Why do I get the error "Unsupported custom storage class 'Default' for symbolic dimension"?

40 次查看(过去 30 天)
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
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 个)

标签

尚未输入任何标签。

产品


版本

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by