Not able to generate Static Code Metrics Report

6 次查看(过去 30 天)
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

请先登录,再进行评论。

回答(1 个)

Lokesh
Lokesh 2024-3-27
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