Error importing ARXML (TYPE_REFERENCE)

3 Ansichten (letzte 30 Tage)
Diana Torres
Diana Torres am 25 Jul. 2019
Bearbeitet: Ayush am 29 Nov. 2024
I'm trying to import an AUTOSAR ARXML to MATLAB but the following error appears:
Error using arxml.importer/createComponentAsModel (line 120)
The arxml import failed because of the following errors:
Error in AVPIM_AUTOSAR (line 266)
SWC_sys_handler = createComponentAsModel(ar,swc_import_pkg_path,...
Caused by:
Reference to implementation data type is missing from implementation data type element 'loc' of category TYPE_REFERENCE in file
C:/Inputs/Arxml/DataTypes.arxml:38487.
Reference to implementation data type is missing from implementation data type element 'location' of category TYPE_REFERENCE in file
C:/Inputs/Arxml/DataTypes.arxml:38500.
Element {} of type Simulink.metamodel.types.StructElement has no property named {}BaseType
Element {} of type Simulink.metamodel.types.StructElement has no property named {}BaseType

Antworten (2)

Diana Torres
Diana Torres am 25 Jul. 2019
Embedded Coder Version 7.2 (R2019a)

Ayush
Ayush am 28 Nov. 2024
Bearbeitet: Ayush am 29 Nov. 2024
I have also encountered a similar issue. The problem was with the parser's ability to handle certain nested structures in ARXML files. Specifically, the nesting of elements within types, such as arrays and structures, led to confusion during the import process.
A possible workaround is to adjust the ARXML export configuration to use type references instead of nesting definitions. This approach helps align the structure with the parser's expectations.
However, I checked nesting structures are supported from R2020a release onwards.

Kategorien

Mehr zu AUTOSAR Blockset finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by