Problems importing DATA_REFERENCE data types in AUTOSAR for Embedded Coder

4 次查看(过去 30 天)
I'm trying to import a couple of arxml files with "arxml.importer". I'm running into trouble with pointer data types (see snippet below).
I'm getting this error: Implementation data type in file "xxx" uses unsupported category "TYPE_REFERENCE". Maybe someone give me hint.
Thanks, Manuel
<IMPLEMENTATION-DATA-TYPE>
<SHORT-NAME>NAME</SHORT-NAME>
<CATEGORY>DATA_REFERENCE</CATEGORY>
<SW-DATA-DEF-PROPS>
<SW-DATA-DEF-PROPS-VARIANTS>
<SW-DATA-DEF-PROPS-CONDITIONAL>
<SW-POINTER-TARGET-PROPS>
<TARGET-CATEGORY>TYPE_REFERENCE</TARGET-CATEGORY>
<SW-DATA-DEF-PROPS>
<SW-DATA-DEF-PROPS-VARIANTS>
<SW-DATA-DEF-PROPS-CONDITIONAL>
<IMPLEMENTATION-DATA-TYPE-REF DEST="IMPLEMENTATION-DATA-TYPE">/Path/to/ImplementationDataType</IMPLEMENTATION-DATA-TYPE-REF>
<SW-IMPL-POLICY>CONST</SW-IMPL-POLICY>
</SW-DATA-DEF-PROPS-CONDITIONAL>
</SW-DATA-DEF-PROPS-VARIANTS>
</SW-DATA-DEF-PROPS>
</SW-POINTER-TARGET-PROPS>
</SW-DATA-DEF-PROPS-CONDITIONAL>
</SW-DATA-DEF-PROPS-VARIANTS>
</SW-DATA-DEF-PROPS>
</IMPLEMENTATION-DATA-TYPE>

回答(2 个)

Zhenwei Sun
Zhenwei Sun 2018-9-11
hello, you should firstly get the datatype xml.

Robert Maxim
Robert Maxim 2024-7-8
This question is very misleading and even confusing. DATA_REFERENCE is not a datatype, but a category which can be set for ImplementationDataTypes. AUTOSAR 4 handles them differently than previous versions.
I would suggest to edit the title, as your problem comes from the TYPE_REFERENCE not being found, rather then the category set for the IDT.

类别

Help CenterFile Exchange 中查找有关 AUTOSAR Blockset 的更多信息

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by