Why do I get the error "Unsupported custom storage class 'Default' for symbolic dimension"?
40 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 18 de Mzo. de 2020
Editada: MathWorks Support Team
el 17 de Dic. de 2024 a las 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.
Respuesta aceptada
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.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Integrate External C/C++ Code Using C Function Blocks en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!