HCI Low Power UART Sample code unable to compile

Hi,

       I'm trying to develop a Bluetooth Mesh Network using 3 Thingy52s and one Thingy91 that acts as a gateway to Azure IoT Hub. I saw the sample code LTE BLE Gateway for the thingy91 that do pretty much the same thing except it's talking to the nRF Cloud. However, when I'm building the hci_lpuart sample code for the nRF52840 SoC on the thingy91, it fails to compile. The error message is as following

C:\Users\harry\ncs\v1.7.0\zephyr\include\device.h:80:39: error: '__device_dts_ord_DT_CHOSEN_zephyr_bt_c2h_uart_ORD' undeclared here (not in a function)
   80 | #define DEVICE_NAME_GET(name) _CONCAT(__device_, name)
      |                                       ^~~~~~~~~
C:\Users\harry\ncs\v1.7.0\zephyr\include\device.h:232:37: note: in expansion of macro 'DEVICE_NAME_GET'
  232 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_NAME(node_id))
      |                                     ^~~~~~~~~~~~~~~
C:\Users\harry\ncs\v1.7.0\zephyr\include\device.h:246:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
  246 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
      |                                  ^~~~~~~~~~~~~~~~~~
C:\Users\harry\ncs\v1.7.0\zephyr\samples\bluetooth\hci_uart\src\main.c:34:2: note: in expansion of macro 'DEVICE_DT_GET'
   34 |  DEVICE_DT_GET(DT_CHOSEN(zephyr_bt_c2h_uart));
      |  ^~~~~~~~~~~~~

My current setup

DK: Thingy91

SDK Version: v.1.7.0

IDE: VSCode and SEGGER (same error)

I even tried reinstalling the SDK and the toolchain thinking that maybe some files got corrupted but it doesn't help. Anyone know what to do from here?

Parents Reply Children
No Data
Related