This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LAUNCHXL-F28379D: Error generating Static Code Matrices - Simulink Code generation Report

Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: C2000WARE, CONTROLSUITE

Hi Friends,

I'm working in a control project using LAUNCHXL-F28379D. I have installed all the third-party software "TI ControlSuite 3.4.2 / TI CCS 8 / TI C2000ware 1.00.04" and the Simulink Embedded coder support package "Embedded Coder Support Package for Texas Instruments C2000 Processors - version 18.1.0". 

I'm trying to get the Static Code Matrices report, but I got these errors:

Where can I found the file "stdbool.h" ?

Looking in the file F2837xD_device.h, we can see that there are the";"

Thank you very much,

Fare

  • Hello,

    stdbool.h can be found in the compiler include directory. For example, C:\ti\ccsv8\tools\compiler\ti-cgt-c2000_18.1.1.LTS\include\stdbool.h

    I'm not sure what's going on with the semicolon errors though. You may need to contact MathWorks support.

    Whitney
  • Hi Whitney,

    Thank you for the response.

    I found the file but I don't know how to make Simulink found/read it ?! Do you have any idea ?
  • Unfortunately I'm not familiar with Simulink. I think there's someone from MathWorks who monitors the forum who may be able to comment. It may be best to just contact their support directly though.

    www.mathworks.com/.../contact_us.html

    Whitney

  • Hello Fare,

    We do not yet officially support CCSv8, so I'm not sure if this is causing your issue. Here is the compatibility support table: http://processors.wiki.ti.com/index.php/MatLab_and_CCS

    If you walk through the installation of the C2000 support, it should direct you to download a set a compatible tools and helps you install them in the directories needed to make the tools work together  Double check to make sure everything is compatible.

    If everything checks out, then please contact MathWorks Technical Support for assistance.

    Cheers,

    -Brian

  • Hi Brian,

    Thank you for the response.

    After a quick search, I have found those things:

    1. The embedded coder support package for TI requires the CCSv8, see attached picture.

    2. From the Mathworks Install support for TI

    www.mathworks.com/.../install-support-for-c2000-processors.html

  • Hi,

    Please ensure the support package install is correct.

    You may look out for C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\ and ensure the files are intact.

    The stdbool.h is also located here

    C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\tic2000codegentools.instrset\ti-cgt-c2000_16.9.2.LTS\include\

    Please ensure the file is present.

    If the install looks corrupt, delete all folders and start fresh with install of support package.

  • Hi Fares,

    One more point to add, during support package configuration where we specify the toolchain path, please ensure the file is present in that toolchain package. If you are not providing explicitly the toolchain path and just going ahead with default toolchain option during configuration then the above path are correct.
  • Hi Venkatesh,

    Thank you for the response.

    The third-party software are installed in the folder  C:\ti\     as the support package suggest, and there are intact.

    The stdbool.h is located here

    C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\tic2000codegentools.instrset\ti-cgt-c2000_16.9.2.LTS\include\

    and here

    C:\ti\ccsv8\tools\compiler\ti-cgt-c2000_18.1.1.LTS\include\

    Note that the code generation tool (CGT) version is not the same in the two folders !!!! In addition  the  ti-cgt-c2000_16.9.2 version is not exist in TI folders !!

    I have another issue, see please picture below

    Thank you again,

    Fares Marjieh

    Control Engineer

  • Hi Fares,

    Please can you send the snapshot of the following:

    1. Go to Hardware Implementation -> Build Options - Send a snap of this page.

    2. Run targetupdater and complete the process. In the end you will get a summary page of all the versions of the 3rd party tools. Please send us a snapshot of the same.

    You may also consider contacting Mathworks Tech Support and through this channel we can WebEx and solve the problem more efficiently.

  • Hi Venkatesh,

    See below attached pictures.

    Build Options:

    Summary third-party installation:

    MathWorks answer:

    Unfortunately, this is currently a limitation for the Static Code Metrics Report, and right now we do not have a workaround for it. The static code metrics only support ANSI C semantics, and not support platform dependent code. These platform dependent codes usually require a set of specific header files to parse the code. In your case, "stdbool.h" is not in ANSI C, so the static code metrics report will show error messages.
    Our development team has been aware of this issue and we will document this limitation in a further release.

    Thank you,
    Fares Marjieh | Control Engineer

  • MathWorks answer:

    Unfortunately, this is currently a limitation for the Static Code Metrics Report, and right now we do not have a workaround for it. The static code metrics only support ANSI C semantics, and not support platform dependent code. These platform dependent codes usually require a set of specific header files to parse the code. In your case, "stdbool.h" is not in ANSI C, so the static code metrics report will show error messages.
    Our development team has been aware of this issue and we will document this limitation in a further release.

    Fares Marjieh | Control Engineer
  • MathWorks answer:

    Unfortunately, this is currently a limitation for the Static Code Metrics Report, and right now we do not have a workaround for it. The static code metrics only support ANSI C semantics, and not support platform dependent code. These platform dependent codes usually require a set of specific header files to parse the code. In your case, "stdbool.h" is not in ANSI C, so the static code metrics report will show error messages.
    Our development team has been aware of this issue and we will document this limitation in a further release.