Getting the autosar code gneration error

4 visualizzazioni (ultimi 30 giorni)
arun ghadge
arun ghadge il 16 Dic 2019
Risposto: Richard Belton il 18 Giu 2020
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 Commento
Richard Belton
Richard Belton il 16 Giu 2020
Arun, did you ever find a solution for this? I am struggling with the same error myself.

Accedi per commentare.

Risposte (1)

Richard Belton
Richard Belton il 18 Giu 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:

Categorie

Scopri di più su Simulink Coder 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!

Translated by