My Simulink model contains an internal data type whose definition is not being exported to "Rte_Type.h". When generating code for my model with AUTOSAR, I get the following error when the generated code is compiled for SIL testing:
error: unknown type name 'myEnumType'
The data type is an enumeration which I define by executing the following code in MATLAB, setting the header file to "Rte_type.h":
Simulink.defineIntEnumType( 'myEnumType', ... {'a','b','c'}, ... [0 1 2], ... 'DefaultValue', 'a', ... 'StorageType', 'uint8', ... 'HeaderFile', 'Rte_Type.h', ... 'AddClassNameToEnumNames', true);
Best Answer