Not able to generate Static Code Metrics Report

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 日

0 投票

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:

カテゴリ

ヘルプ センター および File ExchangeDeployment, Integration, and Supported Hardware についてさらに検索

製品

リリース

R2020b

質問済み:

2021 年 2 月 4 日

回答済み:

2024 年 3 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by