Hi Team,
I’m trying to build the Zephyr Bluetooth sample periodic_adv_rsp for the LP-EM-CC2340R5 board using the latest Zephyr main branch.
Build command: west build -b lp_em_cc2340r5 -p always zephyr/samples/bluetooth/periodic_adv_rsp
However, the build fails with the following error:
error: static assertion failed: "Missing DT chosen property for HCI"
BUILD_ASSERT(IS_ENABLED(CONFIG_ZTEST), "Missing DT chosen property for HCI");
Complete build log:
-- Board: lp_em_cc2340r5, qualifiers: cc2340r5
-- Zephyr version: 4.2.99
...
error: static assertion failed: "Missing DT chosen property for HCI"
It appears the sample expects a /chosen { zephyr,bt-hci = &uart0; }; entry in the device tree, but the CC2340R5 board DTS does not define one by default.
Questions:
-
For the CC2340R5 platform, should the Bluetooth stack be built as a self-contained controller (without external HCI), or is there a recommended HCI UART binding that needs to be added?
-
Is there a Zephyr configuration or overlay example available for CC2340R5 that correctly supports Bluetooth Periodic Advertising samples?
-
Should we modify the board DTS to include
zephyr,bt-hci, or disable HCI-related configs inprj.conf?
Environment:
-
Board: LP-EM-CC2340R5
-
Zephyr SHA: (latest main branch, version 4.2.99)
-
Zephyr SDK: 0.16.8
-
west version: 1.5.0
-
Windows 10 x64
Regards
Vaibhav
