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?
조회 수: 28 (최근 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!