Not able to generate Static Code Metrics Report

조회 수: 6 (최근 30일)
A Preetham Venkatesh
A Preetham Venkatesh 2021년 2월 4일
답변: Lokesh 2024년 3월 27일 8:48
I get the following error when I try to generate a Static Code Metrics Report for my Code Generation Model that I have built for TMS320F28021 processor:
Error Report
Static code metrics report was not successfully generated because of the following errors.
FileLineDescription
C:\ti\controlSUITE\device_support\f2802x\v230\f2802x_headers\include\F2802x_Device.h108identifier "_Bool" is undefined
C:\ti\controlSUITE\device_support\f2802x\v230\f2802x_headers\include\F2802x_Device.h51expected a ";"
C:\ti\controlSUITE\device_support\f2802x\v230\f2802x_headers\include\F2802x_Device.h52expected a ";"
C:\ti\controlSUITE\device_support\f2802x\v230\f2802x_headers\include\F2802x_PieVect.h26expected a ";"
C:\ti\controlSUITE\device_support\f2802x\v230\f2802x_headers\include\F2802x_PieVect.h35identifier "PINT" is undefined
C:\ti\controlSUITE\device_support\f2802x\v230\f2802x_headers\include\F2802x_PieVect.h36identifier "PINT" is undefined
C:\ti\controlSUITE\device_support\f2802x\v230\f2802x_headers\include\F2802x_PieVect.h37identifier "PINT" is undefined
C:\ti\controlSUITE\device_support\f2802x\v230\f2802x_headers\include\F2802x_PieVect.h38identifier "PINT" is undefined
C:\ti\controlSUITE\device_support\f2802x\v230\f2802x_headers\include\F2802x_PieVect.h39identifier "PINT" is undefined
C:\ti\controlSUITE\device_support\f2802x\v230\f2802x_headers\include\F2802x_PieVect.h40identifier "PINT" is undefined
C:\ti\controlSUITE\device_support\f2802x\v230\f2802x_headers\include\F2802x_PieVect.h41identifier "PINT" is undefined
C:\ti\controlSUITE\device_support\f2802x\v230\f2802x_headers\include\F2802x_PieVect.h42identifier "PINT" is undefined
C:\ti\controlSUITE\device_support\f2802x\v230\f2802x_headers\include\F2802x_PieVect.h43identifier "PINT" is undefined
C:\ti\controlSUITE\device_support\f2802x\v230\f2802x_headers\include\F2802x_PieVect.h44identifier "PINT" is undefined
C:\ti\controlSUITE\device_support\f2802x\v230\f2802x_headers\include\F2802x_PieVect.h45identifier "PINT" is undefined
C:\ti\controlSUITE\device_support\f2802x\v230\f2802x_headers\include\F2802x_PieVect.h46identifier "PINT" is undefined
C:\ti\controlSUITE\device_support\f2802x\v230\f2802x_headers\include\F2802x_PieVect.h47identifier "PINT" is undefined
C:\ti\controlSUITE\device_support\f2802x\v230\f2802x_headers\include\F2802x_PieVect.h50identifier "PINT" is undefined
C:\ti\controlSUITE\device_support\f2802x\v230\f2802x_headers\include\F2802x_PieVect.h51identifier "PINT" is undefined
C:\ti\controlSUITE\device_support\f2802x\v230\f2802x_headers\include\F2802x_PieVect.h52identifier "PINT" is undefined
I would appreciate a reply with solution ASAP.
Thanks in advance.
  댓글 수: 2
Sam
Sam 2022년 3월 10일
It would be very nice if MATLAB could fix this issue. I encounter the same error message fpr the TI C2000, 28379D. C:\ti\controlSUITE\device_support\F2837xD\v190\F2837xD_headers\include\F2837xD_pievect.h
seynaser
seynaser 2023년 1월 5일
Hi
me too...
did you find any solution?
thank you

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

답변 (1개)

Lokesh
Lokesh 2024년 3월 27일 8:48
Hi Preetham,
As per my understanding you are encountering issues with generating Static Code Metrics Report for the Model buillt for 'TMS320F28021' processor.
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에서 Embedded Coder에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by