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.

CC3220S: 官方範例at_commands build錯誤

Part Number: CC3220S
Other Parts Discussed in Thread: SYSCONFIG

我使用官方範例at_commands 進行建置然後跳出

**** Build of configuration MCU+Image for project at_commands_CC3220S_LAUNCHXL_freertos_ticlang ****

"C:\\ti\\ccs1200\\ccs\\utils\\bin\\gmake" -k -j 12 all -O

Building file: "../common.syscfg"
Invoking: SysConfig
"C:/ti/sysconfig_1_12_0/sysconfig_cli.bat" -s "C:/ti/simplelink_cc32xx_sdk_7_10_00_13/.metadata/product.json" --script "C:/Users/User/workspace_v12/at_commands_CC3220S_LAUNCHXL_freertos_ticlang/common.syscfg" -o "syscfg" --compiler ticlang
Running script...
subdir_rules.mk:16: recipe for target 'build-913375711' failed
Error: Exception occurred calling addInstance()
at Proxy.<anonymous> (C:\ti\sysconfig_1_12_0\dist\webpack:\src\pinmux\services\scripting\scriptingGuard.ts:34:10)
at scriptFunc (C:\Users\User\workspace_v12\at_commands_CC3220S_LAUNCHXL_freertos_ticlang\common.syscfg:61:28)
at cb (C:\ti\sysconfig_1_12_0\dist\webpack:\src\pinmux\services\scripting\runScript.ts:94:27)
at Object.withDeprecatedAccess (C:\ti\sysconfig_1_12_0\dist\webpack:\src\pinmux\services\deprecatedAccessGuard.ts:14:10)
at Object.runAsUserScript (C:\ti\sysconfig_1_12_0\dist\webpack:\src\pinmux\services\scripting\scriptingGuard.ts:49:3)
at iteratee (C:\ti\sysconfig_1_12_0\dist\webpack:\src\pinmux\services\scripting\runScript.ts:94:5)
at baseEach (C:\ti\sysconfig_1_12_0\dist\webpack:\node_modules\lodash\lodash.js:530:11)
at Function.each (C:\ti\sysconfig_1_12_0\dist\webpack:\node_modules\lodash\lodash.js:9409:52)
at iteratee (C:\ti\sysconfig_1_12_0\dist\webpack:\src\pinmux\services\scripting\runScript.ts:92:6)
at at (C:\ti\sysconfig_1_12_0\dist\webpack:\node_modules\lodash\lodash.js:530:11)
Caused by: Error: Configurable "mode" of "/ti/drivers/SPI": Validation failed: [
{
"keyword": "type",
"dataPath": "/options/0/name",
"schemaPath": "#/definitions/EnumerationOption<number>/properties/name/type",
"params": {
"type": "number"
},
"message": "should be number"
},
{
"keyword": "additionalProperties",
"dataPath": "/options/1",
"schemaPath": "#/definitions/EnumerationOption<string>/additionalProperties",
"params": {
"additionalProperty": "legacyNames"
},
"message": "should NOT have additional properties"
},
{
"keyword": "anyOf",
"dataPath": "",
"schemaPath": "#/anyOf",
"params": {},
"message": "should match some schema in anyOf"
}
]
at validateConfigurable (C:\ti\sysconfig_1_12_0\dist\webpack:\src\pinmux\services\objectManagers\configurable.ts:1255:10)
at Object.createMetaContentConfigurableMgr (C:\ti\sysconfig_1_12_0\dist\webpack:\src\pinmux\services\objectManagers\configurable.ts:1281:3)
at b.createMetaContentConfigurableMgr (C:\ti\sysconfig_1_12_0\dist\webpack:\src\pinmux\services\objectManagers\moduleInstance.ts:761:10)
at iteratee (C:\ti\sysconfig_1_12_0\dist\webpack:\src\pinmux\services\objectManagers\moduleInstance.ts:755:57)
at baseMap (C:\ti\sysconfig_1_12_0\dist\webpack:\node_modules\lodash\lodash.js:653:23)
at Function.map (C:\ti\sysconfig_1_12_0\dist\webpack:\node_modules\lodash\lodash.js:9621:51)
at b.addMetaContentConfigurableMgrs (C:\ti\sysconfig_1_12_0\dist\webpack:\src\pinmux\services\objectManagers\moduleInstance.ts:755:30)
at b.initMetaConfigurables (C:\ti\sysconfig_1_12_0\dist\webpack:\src\pinmux\services\objectManagers\moduleInstance.ts:799:8)
at Function.createInstanceImpl (C:\ti\sysconfig_1_12_0\dist\webpack:\src\pinmux\services\objectManagers\moduleInstance.ts:125:11)
at Function.createInstance (C:\ti\sysconfig_1_12_0\dist\webpack:\src\pinmux\services\objectManagers\moduleInstance.ts:997:28)
gmake: *** [build-913375711] Error 1
gmake: Target 'all' not remade because of errors.

  • 您好,

    根据您提供的报错信息,初步判断是在执行 addInstance() 时出现了异常,导致构建失败。

    但这可能是由于多种原因引起的,需要进一步的调查才能确定确切的解决方法。

    下面是一些可能导致这个错误的常见原因和解决方法:

    1. 编译器或者工具链问题:您需要确保使用的是与CC3220S官方例程兼容的编译器和工具链版本。

    2. 配置文件问题:您需要确保正确设置配置文件,您可以尝试更新 SysConfig 配置文件至1.15版本(或更高版本)

    3. 清理构建环境:您可以尝试清理构建环境,重新构建项目。

    我会先尝试复现该问题,请稍候。

  • . 配置文件问题:您需要确保正确设置配置文件,您可以尝试更新 SysConfig 配置文件至1.15版本(或更高版本)
    我該怎麼做更新呢

  • 您好,

    我 build 该例程,遇到了相同的错误。

    然后,将 SysConfig 更新至 1.15 也是同样的错误。

    根据这个链接的描述,我将版本又更新至 1.61.1 。

    您可以尝试将 SysConfig 更新至 1.61.1 。

    点击此处打开 SysConfig 下载链接,选择 1.61.1 版本。

    右键单击该项目并选择属性,打开 Products -> Edit ,选择版本。

    希望能够帮助到您。

  • 您好,

    您按照上述步骤尝试了吗,解决您的问题了吗。

    期待您的反馈。

  • 很抱歉這麼久才回復;我在 SysConfig這邊無論選擇哪個版本,edit始終為不可選的選項,我該怎麼做呢?

  • 您好,

    这可能是因为没有将 SySconfig 1.61.1 下载到 CCS 中。

    您点击 Edit -> 蓝色字体 Preferences。

    然后弹出以下界面,再点击 Install -> 选择刚下载好的1.61.1 版本既可。

    Install 完成后,您就可以在 Edit 界面选择版本号了。

  • 方便提供一下您的 CCS 版本号吗?

    或许我们使用了 不同的 CCS版本,不过操作也是大同小异。

    您先选择 SysConfig 再点击 Install ,后续步骤是一样的。

  •  SySconfig 1.61.1,但edit依然沒辦法選擇

  • 您在 General -> Products -> Edit 里面试试看。

  • 参照以下步骤:

    右键点击例程,选择 Properties -> General -> Products -> SysConfig -> Edit。

    不是从 Window -> Preferences 打开,您检查一下,打开的方式对吗?

  • 您好,

    请问您这边按照以上步骤尝试过了吗?

    进展如何?

    期待您的反馈。

  • 我已經試著更改成1.16.1但是依然建置失敗

  • **** Build of configuration MCU+Image for project tcpecho_CC3220S_LAUNCHXL_freertos_ticlang ****

    "C:\\ti\\ccs1210\\ccs\\utils\\bin\\gmake" -k -j 12 all -O

    Building file: "syscfg/ti_freertos_portable_config.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-m4 -mfloat-abi=soft -mfpu=none -mlittle-endian -mthumb -Oz -I"C:/Users/User/workspace_v12/tcpecho_CC3220S_LAUNCHXL_freertos_ticlang" -I"C:/Users/User/workspace_v12/tcpecho_CC3220S_LAUNCHXL_freertos_ticlang/MCU+Image" -I"C:/ti/simplelink_cc32xx_sdk_7_10_00_13/source/ti/net/bsd" -I"C:/ti/simplelink_cc32xx_sdk_7_10_00_13/source" -I"C:/ti/simplelink_cc32xx_sdk_7_10_00_13/kernel/freertos" -I"C:/ti/simplelink_cc32xx_sdk_7_10_00_13/source/ti/posix/ticlang" -I"C:/FreeRTOSv202112.00/FreeRTOS/Source/include" -I"C:/FreeRTOSv202112.00/FreeRTOS/Source/portable/GCC/ARM_CM3" -DDeviceFamily_CC3220 -gdwarf-3 -march=armv7e-m -MMD -MP -MF"syscfg/ti_freertos_portable_config.d_raw" -MT"syscfg/ti_freertos_portable_config.o" -I"C:/Users/User/workspace_v12/tcpecho_CC3220S_LAUNCHXL_freertos_ticlang/MCU+Image/syscfg" -o"syscfg/ti_freertos_portable_config.o" "syscfg/ti_freertos_portable_config.c"
    subdir_rules.mk:27: recipe for target 'syscfg/ti_freertos_portable_config.o' failed
    syscfg/ti_freertos_portable_config.c:14:10: fatal error: '../portable/GCC/ARM_CM3/port.c' file not found
    #include <../portable/GCC/ARM_CM3/port.c>
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
    gmake: *** [syscfg/ti_freertos_portable_config.o] Error 1
    Building file: "../main_freertos.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-m4 -mfloat-abi=soft -mfpu=none -mlittle-endian -mthumb -Oz -I"C:/Users/User/workspace_v12/tcpecho_CC3220S_LAUNCHXL_freertos_ticlang" -I"C:/Users/User/workspace_v12/tcpecho_CC3220S_LAUNCHXL_freertos_ticlang/MCU+Image" -I"C:/ti/simplelink_cc32xx_sdk_7_10_00_13/source/ti/net/bsd" -I"C:/ti/simplelink_cc32xx_sdk_7_10_00_13/source" -I"C:/ti/simplelink_cc32xx_sdk_7_10_00_13/kernel/freertos" -I"C:/ti/simplelink_cc32xx_sdk_7_10_00_13/source/ti/posix/ticlang" -I"C:/FreeRTOSv202112.00/FreeRTOS/Source/include" -I"C:/FreeRTOSv202112.00/FreeRTOS/Source/portable/GCC/ARM_CM3" -DDeviceFamily_CC3220 -gdwarf-3 -march=armv7e-m -MMD -MP -MF"main_freertos.d_raw" -MT"main_freertos.o" -I"C:/Users/User/workspace_v12/tcpecho_CC3220S_LAUNCHXL_freertos_ticlang/MCU+Image/syscfg" -o"main_freertos.o" "../main_freertos.c"
    subdir_rules.mk:44: recipe for target 'main_freertos.o' failed
    ../main_freertos.c:42:10: fatal error: 'FreeRTOS.h' file not found
    #include "FreeRTOS.h"
    ^~~~~~~~~~~~
    1 error generated.
    gmake: *** [main_freertos.o] Error 1
    Building file: "syscfg/ti_freertos_config.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1210/ccs/tools/compiler/ti-cgt-armllvm_2.1.2.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-m4 -mfloat-abi=soft -mfpu=none -mlittle-endian -mthumb -Oz -I"C:/Users/User/workspace_v12/tcpecho_CC3220S_LAUNCHXL_freertos_ticlang" -I"C:/Users/User/workspace_v12/tcpecho_CC3220S_LAUNCHXL_freertos_ticlang/MCU+Image" -I"C:/ti/simplelink_cc32xx_sdk_7_10_00_13/source/ti/net/bsd" -I"C:/ti/simplelink_cc32xx_sdk_7_10_00_13/source" -I"C:/ti/simplelink_cc32xx_sdk_7_10_00_13/kernel/freertos" -I"C:/ti/simplelink_cc32xx_sdk_7_10_00_13/source/ti/posix/ticlang" -I"C:/FreeRTOSv202112.00/FreeRTOS/Source/include" -I"C:/FreeRTOSv202112.00/FreeRTOS/Source/portable/GCC/ARM_CM3" -DDeviceFamily_CC3220 -gdwarf-3 -march=armv7e-m -MMD -MP -MF"syscfg/ti_freertos_config.d_raw" -MT"syscfg/ti_freertos_config.o" -I"C:/Users/User/workspace_v12/tcpecho_CC3220S_LAUNCHXL_freertos_ticlang/MCU+Image/syscfg" -o"syscfg/ti_freertos_config.o" "syscfg/ti_freertos_config.c"
    subdir_rules.mk:27: recipe for target 'syscfg/ti_freertos_config.o' failed
    syscfg/ti_freertos_config.c:15:10: fatal error: '../../Source/list.c' file not found
    #include <../../Source/list.c>
    ^~~~~~~~~~~~~~~~~~~~~
    1 error generated.
    gmake: *** [syscfg/ti_freertos_config.o] Error 1
    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****

  • 這些是背景為紅色的部分

    subdir_rules.mk:27: recipe for target 'syscfg/ti_freertos_portable_config.o' failed
    syscfg/ti_freertos_portable_config.c:14:10: fatal error: '../portable/GCC/ARM_CM3/port.c' file not found

    gmake: *** [syscfg/ti_freertos_portable_config.o] Error 1

    subdir_rules.mk:44: recipe for target 'main_freertos.o' failed
    ../main_freertos.c:42:10: fatal error: 'FreeRTOS.h' file not found

    gmake: *** [main_freertos.o] Error 1

    subdir_rules.mk:27: recipe for target 'syscfg/ti_freertos_config.o' failed
    syscfg/ti_freertos_config.c:15:10: fatal error: '../../Source/list.c' file not found

    gmake: *** [syscfg/ti_freertos_config.o] Error 1
    gmake: Target 'all' not remade because of errors.

  • 看来这些失败是由于找不到 freertos 目录造成的。您是否在偏好设置的链接资源中指定了它?

  • OK,原來是我的FREERTOS路徑設置有問題,感謝您

  • 我想請問我有辦法將整個環境設置成1.16.1嗎?
    還是我每次新建專案都要重新做設置?

  • 默认情况下,当您创建新项目时,将选择您已安装的最高版本。

    如果您正在导入项目,则 SysConfig 由您导入的项目的 pojectspec 文件决定。您可以更改项目规范以使 SysConfig 为 1.16.1。这相比更改项目偏好设置(Preference)需要更多工作。

  • 不客气,欢迎随时来论坛交流!