Why do I receive the error of "Unrecognized method, property, or field 'DataTypeMapping' for class 'Simulink.​metamodel.​arplatform​.port.Serv​erPort' " while bulilding an AUTOSAR model?

28 vues (au cours des 30 derniers jours)
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.

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 19 Sep 2019
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. 

Plus de réponses (0)

Catégories

En savoir plus sur AUTOSAR Blockset dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by