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.

[参考译文] LP-EM-CC2340R5:Zephyr 蓝牙示例'外设'未构建

Guru**** 2401965 points
Other Parts Discussed in Thread: LP-EM-CC2340R5, CC2340R5

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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1533897/lp-em-cc2340r5-zephyr-bluetooth-sample-example-peripheral-does-not-build

器件型号:LP-EM-CC2340R5
主题中讨论的其他器件: CC2340R5

工具/软件:

您好、

我想 使用 Zephyr 对 LP-EM-CC2340R5 评估板进行编程、并从样片/蓝牙中的“外设“示例开始。

但是、我的编译当前失败、并出现以下错误:

In file included from C:/Users/ekb6fe/zephyrproject/zephyr/include/zephyr/arch/arm/arch.h:20,
                 from C:/Users/ekb6fe/zephyrproject/zephyr/include/zephyr/arch/cpu.h:19,
                 from C:/Users/ekb6fe/zephyrproject/zephyr/include/zephyr/kernel_includes.h:36,
                 from C:/Users/ekb6fe/zephyrproject/zephyr/include/zephyr/kernel.h:17,
                 from C:/Users/ekb6fe/zephyrproject/zephyr/include/zephyr/fs/nvs.h:11,
                 from C:/Users/ekb6fe/zephyrproject/zephyr/subsys/settings/include/settings/settings_nvs.h:11,
                 from C:/Users/ekb6fe/zephyrproject/zephyr/subsys/settings/src/settings_nvs.c:12:
C:/Users/ekb6fe/zephyrproject/zephyr/subsys/settings/src/settings_nvs.c: In function 'settings_backend_init':
C:/Users/ekb6fe/zephyrproject/zephyr/include/zephyr/devicetree.h:196:36: error: 'DT_N_NODELABEL_storage_partition_PARTITION_ID' undeclared (first use in this function)
  196 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)

以下是我的设置的一些详细信息:

  • CMake 版本:4.0.3
  • Python3: 3.10
  • Zephyr 版本:4.1.99
  • 工具链:Zephyr 0.17.1
  • 板:lp_em_cc2340r5、限定符:cc2340r5
  • 西: 1.4.0
  • DTC: 1.6.1

在建筑时、我还会收到以下警告:

warning: Deprecated symbol BUILD_NO_GAP_FILL is enabled.

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

    我按照 Zephyr 网站上的入门指南下载了 SDK 和工具链: https://docs.zephyrproject.org/latest/develop/getting_started/index.html

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

    您好:

    感谢您联系我们! 这当然是意料之外的行为。 我对此有几个问题。

    1. 您使用了哪个版本的 TI Zephyr 下游?
    2. 构建基本示例(如基本文件夹中的 blanky)是否可以工作?
    3. 您是否对原始外设示例进行了任何更改?

    回答这些问题将帮助我找出问题。 期待您的答复!

    此致、

    Tarek D