Why do I receive the error of "Unrecognized method, property, or field 'DataTypeMapping' for class 'Simulink.metamodel.arplatform.port.ServerPort' " while bulilding an AUTOSAR model?
27 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2019 年 9 月 19 日
回答済み: MathWorks Support Team
2020 年 12 月 30 日
I had a working model that was validating and generating code which I later realized was not created with the relevant SWC name. Within the AUTOSAR Dictionary, I had changed the name, and then remade the package structure, and finally remapped all the AUTOSAR elements to folders inside the package structure. After these steps, the model correctly validated the code mapping however, the Code Generation of this code mapping produces the following error message(s):
=== Update Diagram (Elapsed: 0.823 sec) ===
=== Build (Elapsed: 5 sec) ===
### Starting build procedure for model: TirePressureServiceSWC_bottomUp
### Build procedure for model: 'TirePressureServiceSWC_bottomUp' aborted due to an error.
Error:The call to Ford_AUTOSAR_make_rtw_hook, during the entry hook generated the following error:
No appropriate method, property, or field 'DataTypeMapping' for class 'Simulink.metamodel.arplatform.port.ServerPort'.
The build process will terminate as a result.
Caused by:
No appropriate method, property, or field 'DataTypeMapping' for class 'Simulink.metamodel.arplatform.port.ServerPort'.
=== AUTOSAR Validation (Elapsed: 0.239 sec) ===
Error:Dot indexing is not supported for variables of this type.
NOTE: Updating the model does not lead to any errors.
採用された回答
MathWorks Support Team
2019 年 9 月 19 日
It seems like in the process of configuring the packages you have defined a server port to have the same qualified path as the application component. The easiest way to fix this would be to rename the server port in the AUTOSAR dictionary to make it distinguishable (the API will be responsive following this).
I would then recommend to review the packaging to make sure the application component has a unique qualified path/name.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で AUTOSAR Blockset についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!