Getting the autosar code gneration error

17 views (last 30 days)
arun ghadge
arun ghadge on 16 Dec 2019
Answered: Richard Belton on 18 Jun 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 Comment
Richard Belton
Richard Belton on 16 Jun 2020
Arun, did you ever find a solution for this? I am struggling with the same error myself.

Sign in to comment.

Answers (1)

Richard Belton
Richard Belton on 18 Jun 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:

Categories

Find more on AUTOSAR Blockset in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!