How to suppress TI C2000 Compiler Warning

3 ビュー (過去 30 日間)
Gergely Szabó
Gergely Szabó 2021 年 2 月 15 日
編集済み: Gergely Szabó 2021 年 12 月 21 日
Hello everyone,
In one of my configuration reference I use set the Device Board to None, the Device Vendor to Texas Instruments and the Device Type to C2000.
During code generation I get the following warning:
Warning: "Texas Instruments Code Composer Studio (C2000)" is selected as Toolchain on
the "Code Generation" pane of the configuration parameters. "None", selected as "Target
Hardware" on the same pane, is not known to be compatible with the tool chain, in which
case errors may follow. Consider selecting a "Target Hardware" compatible with the tool
chain.
How can I suppress this warning? I don't want to set the Device Board to one of the Launcpads or ControlCard, since they add many additional files, which I don't want ot use.

採用された回答

Abhishek Gupta
Abhishek Gupta 2021 年 2 月 18 日
Hi,
Referring to the following MATLAB documentation, which might help you in suppressing the warning: -
  2 件のコメント
Gergely Szabó
Gergely Szabó 2021 年 2 月 21 日
編集済み: Gergely Szabó 2021 年 2 月 21 日
Thanks for the tip!
It came out that the warning was caused by this event:
TIC2000:codegen:BoardNotSupportedForToolchain
Does someone in the Embedded Coder team can confirm that the suppression of this warning with the setup above will not cause any unexpected bug in the code generation ?
Gergely Szabó
Gergely Szabó 2021 年 12 月 21 日
編集済み: Gergely Szabó 2021 年 12 月 21 日
Sorry for the late answer.
So the following code snippet solved my problem :
warning('off','TIC2000:codegen:BoardNotSupportedForToolchain')
During codegen I wanted and still want to see as low as possible warning, that is the reason by I asked this question. Since the C2000 support package comes with many additional code replacement functions, the C2000 toolchain is worht to select. In our project the HW resources are governed by hand written code, therefore the usage of device board is obsolate.

サインインしてコメントする。

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by