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 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
MathWorks Support Team
il 19 Set 2019
Risposto: MathWorks Support Team
il 30 Dic 2020
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.
Risposta accettata
MathWorks Support Team
il 19 Set 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.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su AUTOSAR Blockset in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!