Native declaration AUTOSAR for Infineon Tricore
Hello,
I am encountering an issue in the arxml generation similar to the one (NATIVE-DECLARATION generated by embedded coder wrong – MATLAB Answers – MATLAB Central (mathworks.com)).
However, the Hardware Implementation is set for Infineon Tricore and AUTOSAR standard specifies these native platform data type.
typedef unsigned char boolean;
typedef signed char sint8;
typedef unsigned char uint8;
typedef signed short sint16;
typedef unsigned short uint16;
typedef signed long sint32;
typedef signed long long sint64;
typedef unsigned long uint32;
typedef unsigned long long uint64;
typedef unsigned long uint8_least;
typedef unsigned long uint16_least;
typedef unsigned long uint32_least;
typedef signed long sint8_least;
typedef signed long sint16_least;
typedef signed long sint32_least;
typedef float float32;
typedef double float64;
The sint32 in the arxml is defined as signed int instead of signed long as you can see in the extract from arxml, below
<SW-BASE-TYPE UUID="36d31887-a2ee-597b-2081-a1b40f0e6b5c">
<SHORT-NAME>sint32</SHORT-NAME>
<CATEGORY>FIXED_LENGTH</CATEGORY>
<BASE-TYPE-SIZE>32</BASE-TYPE-SIZE>
<BASE-TYPE-ENCODING>2C</BASE-TYPE-ENCODING>
<NATIVE-DECLARATION>signed int</NATIVE-DECLARATION>
</SW-BASE-TYPE>
How can I control the NATIVE-DECLARATION with Embedded Coder and AUTOSAR Blockset?
Below the configuration of the model
Hardware Implementation: Infineon TriCore
Code Generation/System target file: autosar.tlc
Code Generation/Language standard: C89/C90 (ANSI)
AUTOSAR Code Generation Options/Generate XML file for schema version: 4.2
Thank you in advance.Hello,
I am encountering an issue in the arxml generation similar to the one (NATIVE-DECLARATION generated by embedded coder wrong – MATLAB Answers – MATLAB Central (mathworks.com)).
However, the Hardware Implementation is set for Infineon Tricore and AUTOSAR standard specifies these native platform data type.
typedef unsigned char boolean;
typedef signed char sint8;
typedef unsigned char uint8;
typedef signed short sint16;
typedef unsigned short uint16;
typedef signed long sint32;
typedef signed long long sint64;
typedef unsigned long uint32;
typedef unsigned long long uint64;
typedef unsigned long uint8_least;
typedef unsigned long uint16_least;
typedef unsigned long uint32_least;
typedef signed long sint8_least;
typedef signed long sint16_least;
typedef signed long sint32_least;
typedef float float32;
typedef double float64;
The sint32 in the arxml is defined as signed int instead of signed long as you can see in the extract from arxml, below
<SW-BASE-TYPE UUID="36d31887-a2ee-597b-2081-a1b40f0e6b5c">
<SHORT-NAME>sint32</SHORT-NAME>
<CATEGORY>FIXED_LENGTH</CATEGORY>
<BASE-TYPE-SIZE>32</BASE-TYPE-SIZE>
<BASE-TYPE-ENCODING>2C</BASE-TYPE-ENCODING>
<NATIVE-DECLARATION>signed int</NATIVE-DECLARATION>
</SW-BASE-TYPE>
How can I control the NATIVE-DECLARATION with Embedded Coder and AUTOSAR Blockset?
Below the configuration of the model
Hardware Implementation: Infineon TriCore
Code Generation/System target file: autosar.tlc
Code Generation/Language standard: C89/C90 (ANSI)
AUTOSAR Code Generation Options/Generate XML file for schema version: 4.2
Thank you in advance. Hello,
I am encountering an issue in the arxml generation similar to the one (NATIVE-DECLARATION generated by embedded coder wrong – MATLAB Answers – MATLAB Central (mathworks.com)).
However, the Hardware Implementation is set for Infineon Tricore and AUTOSAR standard specifies these native platform data type.
typedef unsigned char boolean;
typedef signed char sint8;
typedef unsigned char uint8;
typedef signed short sint16;
typedef unsigned short uint16;
typedef signed long sint32;
typedef signed long long sint64;
typedef unsigned long uint32;
typedef unsigned long long uint64;
typedef unsigned long uint8_least;
typedef unsigned long uint16_least;
typedef unsigned long uint32_least;
typedef signed long sint8_least;
typedef signed long sint16_least;
typedef signed long sint32_least;
typedef float float32;
typedef double float64;
The sint32 in the arxml is defined as signed int instead of signed long as you can see in the extract from arxml, below
<SW-BASE-TYPE UUID="36d31887-a2ee-597b-2081-a1b40f0e6b5c">
<SHORT-NAME>sint32</SHORT-NAME>
<CATEGORY>FIXED_LENGTH</CATEGORY>
<BASE-TYPE-SIZE>32</BASE-TYPE-SIZE>
<BASE-TYPE-ENCODING>2C</BASE-TYPE-ENCODING>
<NATIVE-DECLARATION>signed int</NATIVE-DECLARATION>
</SW-BASE-TYPE>
How can I control the NATIVE-DECLARATION with Embedded Coder and AUTOSAR Blockset?
Below the configuration of the model
Hardware Implementation: Infineon TriCore
Code Generation/System target file: autosar.tlc
Code Generation/Language standard: C89/C90 (ANSI)
AUTOSAR Code Generation Options/Generate XML file for schema version: 4.2
Thank you in advance. autosar blockset, native declaration, data type, embedded coder MATLAB Answers — New Questions