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:CC2340R5 的 Zephyr 构建失败–在蓝牙示例构建期间、“缺少 HCI 的 DT Selected property “

Guru**** 2647825 points

Other Parts Discussed in Thread: LP-EM-CC2340R5, CC2340R5

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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1580428/cc2340r5-zephyr-build-failure-for-cc2340r5-missing-dt-chosen-property-for-hci-during-bluetooth-sample-build

器件型号:CC2340R5


尊敬的团队:

我正在尝试periodic_adv_rsp为构建 Zephyr 蓝牙样片 LP-EM-CC2340R5 开发板、使用最新的 Zephyr 主分支。

 

Build 命令: West build -b lp_em_cc2340r5 -p always Zephyr/samples/Bluetooth/periodic_Adv_rsp

 

但是、编译失败、并出现以下错误:  

错误:静态断言失败:“HCI 缺少已选择的 DT 属性“ 
BUILD_ASSERT (IS_ENABLED (CONFIG_ZTEST)、“Missing DT Selected property for HCI“);


完整构建日志:

--板: lp_em_cc2340r5,限定符: cc2340r5.
- Zephyr 版本:4.2.99
...
错误:静态断言失败:“HCI 缺少已选择的 DT 属性“


示例显示器件树中需要一个/selected{Zephyr、bt-HCI =&uart0;}条目、但 CC2340R5 电路板 DTS 默认情况下未定义一个条目。

问题:  

  1. 对于 CC2340R5 平台、是否会将蓝牙栈构建为 自包含控制器 (无外部 HCI)、还是推荐使用 HCI UART 绑定 其他变量?

  2. CC2340R5 是否有正确支持蓝牙定期广播样本的 Zephyr 配置或叠加示例?

  3. 我们zephyr,bt-hciprj.conf是否应该修改主板 dts 以包括、或禁用中的 HCI 相关配置?

 

环境:

  • 板:LP-EM-CC2340R5

  • Zephyr SHA:(最新的主分支 4.2.99 版)

  • Zephyr SDK:0.16.8

  • 西部版本:1.5.0

  • Windows 10 x64

 

 

此致

Vaibhav