필터 지우기
필터 지우기

How can I solution the problem that Static code metrics report was not successfully generated becuase of the following errors?

조회 수: 3 (최근 30일)
C:\ti\controlSUITE\device_support\f2806x\v151\F2806x_headers\include\F2806x_Device.h 79 expected a ";" C:\ti\controlSUITE\device_support\f2806x\v151\F2806x_headers\include\F2806x_Device.h 80 expected a ";" C:\ti\controlSUITE\device_support\f2806x\v151\F2806x_headers\include\F2806x_PieVect.h 26 expected a ";" C:\ti\controlSUITE\device_support\f2806x\v151\F2806x_headers\include\F2806x_PieVect.h 35 identifier "PINT" is undefined C:\ti\controlSUITE\device_support\f2806x\v151\F2806x_headers\include\F2806x_PieVect.h 36 identifier "PINT" is undefined C:\ti\controlSUITE\device_support\f2806x\v151\F2806x_headers\include\F2806x_PieVect.h 37 identifier "PINT" is undefined C:\ti\controlSUITE\device_support\f2806x\v151\F2806x_headers\include\F2806x_PieVect.h 38 identifier "PINT" is undefined C:\ti\controlSUITE\device_support\f2806x\v151\F2806x_headers\include\F2806x_PieVect.h 39 identifier "PINT" is undefined<</matlabcentral/answers/uploaded_files/74136/error.png>>
  댓글 수: 4

댓글을 달려면 로그인하십시오.

답변 (1개)

Lokesh
Lokesh 2024년 3월 27일
Hi CHEN,
It is my understanding that you are encountering issues with generating Static Code Metrics Report.
The following are the limitations of Static Code Metrics Report:
Static code metrics are not available if the target configuration for a model results in generated code that:
  • Includes a header file that is not generated by the model hierarchy and is not a system header file
  • Uses a macro that is not recognized
The static code metrics tool accepts many dialects of C/C++ (gnu, msvc, upc). However, the 'TI' keywords are not recognized by it. Hence the error occurs.
Please refer to the following documentation for more information about Static Code Metrics Report:

카테고리

Help CenterFile Exchange에서 Simulink Report Generator에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by