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.

[FAQ] [参考译文] [常见问题解答]如何修复由于"无效参数'--product&#39而未生成的 SysConfig CCS 项目;:没有名为&quot 的产品;C2000WARE"以及 version"?

Guru**** 656470 points
Other Parts Discussed in Thread: SYSCONFIG, C2000WARE
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1178986/faq-how-do-i-fix-a-sysconfig-ccs-project-which-is-not-building-due-to-invalid-argument---product-no-product-with-name-c2000ware-and-version

Thread 中讨论的其他器件:SysConfigC2000WARE

我向 CCS 工程添加了 SysConfig 文件、现在由于 SysConfig 工具导致的错误、工程无法编译。 误差如下所示:

无效参数'--product':没有名为"C2000WARE"和版本的产品

如何解决此问题?

为什么上述问题出现在我的 CCS 项目中?

C2000培训视频:https://training.ti.com/search-catalog/field_language/ZH-CN?keywords=C2000&start%5Bdate%5D=&end%5Bdate%5D=

C2000培训小程序码

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    SysConfig 软件产品由 CCS/SysConfig 通过以下两种方式之一进行标识:

    1.设置 CCS 工程属性:CCS 工程属性中的条目标识 C2000WARE 安装中的 product.json/SDK.json 的路径

    2.未  设置 CCS 工程属性:在这种情况下、SysConfig (类似于基于独立/非 CCS 的工具中的设置)会查看工程中的.syscfg 文件并解析文件顶部的标头、如以下示例所示。

    /**
     * These arguments were used when this file was generated. They will be automatically applied on subsequent loads
     * via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
     * @cliArgs --device "F2838x" --package "176pin" --part "F2838x_176pin" --product "C2000WARE@4.01.00.00"
     * @versions {"tool":"1.11.0+2225"}
     */

    仅当未使用#1且执行#2中的场景时、此线程中讨论的错误才会发生。

    为了使方案#2正常工作、CCS 中集成的 SysConfig 工具必须在某个点使用.syscfg 文件顶部的注释标题中标识的 C2000WARE 产品版本。 这样、它就会在内部缓存 product.json/sdk.json 的位置。 如果 CCS 中集成的 SysConfig 工具从未使用、而是缓存了 product.json/sdk.json 的位置、该位置是指标头提到的软件产品、则将无法找到它。

    在这种情况下、用户必须设置 CCS 工程属性以指向 product.json/sdk.json 的路径。 这在下面常见问题解答的步骤6中显示:

    https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/910829/faq-how-do-i-add-sysconfig-support-pinmux-and-peripheral-initialization-to-an-existing-driverlib-project

    一旦在工程属性中设置了此设置、SysConfig 工具在启动.syscfg 文件时将不会在特殊注释标题中查找--product 条目。