Getting the autosar code gneration error
17 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
Richard Belton
el 16 de Jun. de 2020
Arun, did you ever find a solution for this? I am struggling with the same error myself.
Respuestas (1)
Richard Belton
el 18 de Jun. de 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:
0 comentarios
Ver también
Categorías
Más información sobre AUTOSAR Blockset en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!