NATIVE-DECLARATION generated by embedded coder wrong
21 views (last 30 days)
Created example matlab model to generate code with embeded code and Autosar
i see there is problem in generated arxml
The <NATIVE-DECLARATION> suppose to be 'unsigned char' but it's generated as uint8
Is there a solution to generate the actula native type ?
Andreas Apostolatos on 8 Oct 2021
I would like to follow-up on this question, in case someone else stumbles upon the same issue.
For the <NATIVE-DECLARATION> Simulink uses the AUTOSAR platform types, as they are defined in the AUTOSAR standard. This is mentioned in the following documentation page,
Please note that these types are used in the generated code and are in turn defined in the header-file Platform_Types.h.
In case you wish to customize the <NATIVE-DECLARATION> data types, then the RTE generator that is used should provide its own header-file Platform_Types.h with the necessary type definitions based on the specific target, since the header-file Platform_Types.h file that is by default provided in Simulink is a stub file intended only for SIL testing.
I hope that this information helps.