필터 지우기
필터 지우기

Simulink/Autosar: Unsupported m3iType class M3I.Object for addReferencedType

조회 수: 25 (최근 30일)
Attila
Attila 2024년 2월 28일
답변: Kausthub 2024년 3월 28일
I try to build a Simulink/Autosar system with SystemComposer.
During "Code and ARXML export" I get the following error message:
The call to autosar_make_rtw_hook, during the after_tlc hook generated the following error:
Unsupported m3iType class M3I.Object for addReferencedType.
The build process will terminate as a result.
Caused by:
Unsupported m3iType class M3I.Object for addReferencedType.
What does this error message mean?
Is there any information available to what this error relates to?
What are situations where such an error might occure?
To what part of Simulink/Autosar is this related?
What is a m3iType and where is it used?
  댓글 수: 1
Attila
Attila 2024년 3월 12일
Update:
It seems as if at some point Simulink saved inconsistend data to the used Simulink DataDictonary for one/multiple stored DataTypes.
In contrast to Matlab/Simulink in the past, where everything could be fixed by just manually correcting the file in an text editor, this inconsistency cannot be fixed easily anymore, since the sldd file format, despite only beeing an archive with xml files, is not actually human readable and therefore not "human fixable".
My "solution" was to recreate the entire DataDictonary.
It is sad to see, that Mathworks seems to try more and more to prevent users from finding workarounds for the many issues Matlab/Simulink has.

댓글을 달려면 로그인하십시오.

답변 (1개)

Kausthub
Kausthub 2024년 3월 28일
Hi Attila,
A workaround for this issue would be to remove the synthesized AUTOSAR datatypes from the dictionary. For this you can use "AUTOSARProperties" to delete references that could not be removed.
arProps = autosar.api.getAUTOSARProperties("Interfaces.sldd")
arProps.delete("referencePath")
Hope this help!

카테고리

Help CenterFile Exchange에서 AUTOSAR Blockset에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by