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.

CC2340R5: Blank items cannot use Zigbee.

Part Number: CC2340R5

我在CCS中创建一个空白项目empty,并在其上开启zigbee选项,却报这个错误([4]"D:/TI/CCS/ccs/tools/compiler/ti-cgt-armllvm_4.0.3.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -Oz -I"D:/CC2340_Project/workspace_v20/empty_LP_EM_CC2340R5_nortos_ticlang" -I"D:/CC2340_Project/workspace_v20/empty_LP_EM_CC2340R5_nortos_ticlang/Debug" -I"C:/TI/simplelink_lowpower_f3_sdk_9_10_00_83/source" -I"C:/TI/simplelink_lowpower_f3_sdk_9_10_00_83/kernel/nortos" -I"C:/TI/simplelink_lowpower_f3_sdk_9_10_00_83/kernel/nortos/posix" -gdwarf-3 -MMD -MP -MF"syscfg/ti_zigbee_config.d_raw" -MT"syscfg/ti_zigbee_config.o" -I"D:/CC2340_Project/workspace_v20/empty_LP_EM_CC2340R5_nortos_ticlang/Debug/syscfg" @"syscfg/ti_utils_build_compiler.opt" -o"syscfg/ti_zigbee_config.o" "syscfg/ti_zigbee_config.c"
[5]In file included from syscfg/ti_zigbee_config.c:31:
[6]syscfg\ti_zigbee_config.h:36:10: fatal error: 'zboss_api.h' file not found
[7] 36 | #include "zboss_api.h")是为什么

  • 您好

    已经收到了您的案例,调查需要些时间,感谢您的耐心等待

  • 您好,

    我相信错误本身源于syscfg试图调用Zigbee文件,但其中一些文件不知道Zigbee堆栈的"location"(这是在源第三方)。

    我通常建议我们从SDK中已存在的任何Zigbee示例项目开始,并根据您的需要对它们进行修改,因为它们已经安装了环境设置,但是我们可能能够获取syscfg生成的导致错误的文件,并通过重新定义位置手动更正错误:

    #include "zboss_api.h" -> #include <C:\ti\sdk_download_location\source\third_party\zigbee\zboss_r23\include\zboss_api.h>