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

40 visualizaciones (últimos 30 días)
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.

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 17 de Dic. de 2024 a las 0:00
Editada: MathWorks Support Team el 17 de Dic. de 2024 a las 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.

Más respuestas (0)

Etiquetas

Aún no se han introducido etiquetas.

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by