Getting the autosar code gneration error

14 ビュー (過去 30 日間)
arun ghadge
arun ghadge 2019 年 12 月 16 日
回答済み: Richard Belton 2020 年 6 月 18 日
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 件のコメント
Richard Belton
Richard Belton 2020 年 6 月 16 日
Arun, did you ever find a solution for this? I am struggling with the same error myself.

サインインしてコメントする。

回答 (1 件)

Richard Belton
Richard Belton 2020 年 6 月 18 日
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:

カテゴリ

Help Center および File ExchangeAUTOSAR Blockset についてさらに検索

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by