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

29 次查看(过去 30 天)
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 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by