Getting the autosar code gneration error

17 vues (au cours des 30 derniers jours)
arun ghadge
arun ghadge le 16 Déc 2019
Please find below error log.
### Using System Target File: C:\Program Files\MATLAB\R2016b\toolbox\rtw\targets\autosar\autosar\autosar.tlc ### Loading TLC function libraries ### Generating TLC interface API for custom data . ### Initial pass through model to cache user defined code . Error: File: C:\Program Files\MATLAB\R2016b\rtw\c\tlc\lib\utillib.tlc Line: 583 Column: 35 Undefined identifier AutosarRTEHeaderFileGeneration Main program: ==> [00] C:\Program Files\MATLAB\R2016b\rtw\c\tlc\lib\utillib.tlc:SLibAutosarGenRTEHeader(583) [01] C:\Program Files\MATLAB\R2016b\rtw\c\tlc\lib\dtypelib.tlc:SLibWriteDatatypeTypedefs(4337) [02] C:\Program Files\MATLAB\R2016b\rtw\c\tlc\mw\commonsetup.tlc:<NONE>(270) Error: File: C:\Program Files\MATLAB\R2016b\rtw\c\tlc\lib\utillib.tlc Line: 583 Column: 69 The == and != operators can only be used to compare values of the same type Main program: ==> [00] C:\Program Files\MATLAB\R2016b\rtw\c\tlc\lib\utillib.tlc:SLibAutosarGenRTEHeader(583) [01] C:\Program Files\MATLAB\R2016b\rtw\c\tlc\lib\dtypelib.tlc:SLibWriteDatatypeTypedefs(4337) [02] C:\Program Files\MATLAB\R2016b\rtw\c\tlc\mw\commonsetup.tlc:<NONE>(270) Error: File: C:\Program Files\MATLAB\R2016b\rtw\c\tlc\lib\utillib.tlc Line: 583 Column: 35 Undefined identifier AutosarRTEHeaderFileGeneration Main program: ==> [00] C:\Program Files\MATLAB\R2016b\rtw\c\tlc\lib\utillib.tlc:SLibAutosarGenRTEHeader(583) [01] C:\Program Files\MATLAB\R2016b\rtw\c\tlc\lib\dtypelib.tlc:SLibWriteDatatypeTypedefs(4776) [02] C:\Program Files\MATLAB\R2016b\rtw\c\tlc\mw\commonsetup.tlc:<NONE>(270) Error: File: C:\Program Files\MATLAB\R2016b\rtw\c\tlc\lib\utillib.tlc Line: 583 Column: 69 The == and != operators can only be used to compare values of the same type Main program: ==> [00] C:\Program Files\MATLAB\R2016b\rtw\c\tlc\lib\utillib.tlc:SLibAutosarGenRTEHeader(583) [01] C:\Program Files\MATLAB\R2016b\rtw\c\tlc\lib\dtypelib.tlc:SLibWriteDatatypeTypedefs(4776) [02] C:\Program Files\MATLAB\R2016b\rtw\c\tlc\mw\commonsetup.tlc:<NONE>(270)
### Build procedure for model: 'XXX' aborted due to an error.
Error: File: C:\Program Files\MATLAB\R2016b\rtw\c\tlc\lib\utillib.tlc Line: 583 Column: 35 Undefined identifier AutosarRTEHeaderFileGeneration
  1 commentaire
Richard Belton
Richard Belton le 16 Juin 2020
Arun, did you ever find a solution for this? I am struggling with the same error myself.

Connectez-vous pour commenter.

Réponses (1)

Richard Belton
Richard Belton le 18 Juin 2020
I also encountered this error when trying to build a model which uses the AUTOSAR framework.
I contacted Mathworks support, who provided the following feedback:
"We have seen a very similar issue reported in the past where the issue was with the installation of the AUTOSAR Support Package and a re-installation of the package resolved the issue. In that specific case, the behaviour was a result of third-party software interfering with the installation files.
Please follow the guidelines in the following MATLAB Answers post to perform a clean re-installation of the support package:

Catégories

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

Community Treasure Hunt

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

Start Hunting!

Translated by