Not able to generate Static Code Metrics Report
20 views (last 30 days)
Show older comments
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 Comments
Sam
on 10 Mar 2022
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
Answers (1)
Lokesh
on 27 Mar 2024
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:
0 Comments
See Also
Categories
Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!