I am trying to compile hci_lpuart for thingy91_nrf52840, but I have these issue.
hci_lpuart:
/opt/nordic/ncs/v2.9.0/bootloader/mcuboot/boot/zephyr/serial_adapter.c
In file included from /opt/nordic/ncs/v2.9.0/zephyr/include/zephyr/sys/util_macro.h:34,
from /opt/nordic/ncs/v2.9.0/zephyr/include/zephyr/irq_multilevel.h:16,
from /opt/nordic/ncs/v2.9.0/zephyr/include/zephyr/devicetree.h:20,
from /opt/nordic/ncs/v2.9.0/zephyr/include/zephyr/device.h:12,
from /opt/nordic/ncs/v2.9.0/zephyr/include/zephyr/drivers/uart.h:28,
from /opt/nordic/ncs/v2.9.0/bootloader/mcuboot/boot/zephyr/serial_adapter.c:18:
/opt/nordic/ncs/v2.9.0/bootloader/mcuboot/boot/zephyr/serial_adapter.c: In function 'boot_uart_fifo_init':
/opt/nordic/ncs/v2.9.0/zephyr/include/zephyr/sys/util.h:97:55: error: size of unnamed array is negative
97 | #define ZERO_OR_COMPILE_ERROR(cond) ((int) sizeof(char[1 - 2 * !(cond)]) - 1)
| ^
/opt/nordic/ncs/v2.9.0/zephyr/include/zephyr/sys/util_internal.h:72:26: note: in definition of macro '__DEBRACKET'
72 | #define __DEBRACKET(...) __VA_ARGS__
| ^~~~~~~~~~~
/opt/nordic/ncs/v2.9.0/zephyr/include/zephyr/sys/util_internal.h:64:9: note: in expansion of macro '__GET_ARG2_DEBRACKET'
64 | __GET_ARG2_DEBRACKET(one_or_two_args _if_code, _else_code)
| ^~~~~~~~~~~~~~~~~~~~
/opt/nordic/ncs/v2.9.0/zephyr/include/zephyr/sys/util_internal.h:59:9: note: in expansion of macro '__COND_CODE'
59 | __COND_CODE(_XXXX##_flag, _if_1_code, _else_code)
| ^~~~~~~~~~~
/opt/nordic/ncs/v2.9.0/zephyr/include/zephyr/sys/util_macro.h:180:9: note: in expansion of macro 'Z_COND_CODE_1'
180 | Z_COND_CODE_1(_flag, _if_1_code, _else_code)
| ^~~~~~~~~~~~~
/opt/nordic/ncs/v2.9.0/zephyr/include/zephyr/device.h:297:9: note: in expansion of macro 'COND_CODE_1'
297 | COND_CODE_1(DT_HAS_COMPAT_STATUS_OKAY(compat), \
| ^~~~~~~~~~~
/opt/nordic/ncs/v2.9.0/zephyr/include/zephyr/device.h:299:22: note: in expansion of macro 'ZERO_OR_COMPILE_ERROR'
299 | (ZERO_OR_COMPILE_ERROR(0)))
| ^~~~~~~~~~~~~~~~~~~~~
/opt/nordic/ncs/v2.9.0/bootloader/mcuboot/boot/zephyr/serial_adapter.c:217:20: note: in expansion of macro 'DEVICE_DT_GET_ONE'
217 | uart_dev = DEVICE_DT_GET_ONE(zephyr_cdc_acm_uart);
| ^~~~~~~~~~~~~~~~~
[260/325] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/opt/nordic/ncs/v2.9.0/modules/hal/nordic/nrfx/helpers/nrfx_ram_ctrl.c.obj
ninja: build stopped: subcommand failed.
[10/20] No configure step for 'hci_lpuart'
FAILED: _sysbuild/sysbuild/images/bootloader/mcuboot-prefix/src/mcuboot-stamp/mcuboot-build /opt/nordic/ncs/v2.9.0/nrf/samples/bluetooth/hci_lpuart/build/_sysbuild/sysbuild/images/bootloader/mcuboot-prefix/src/mcuboot-stamp/mcuboot-build
cd /opt/nordic/ncs/v2.9.0/nrf/samples/bluetooth/hci_lpuart/build/mcuboot && /opt/nordic/ncs/toolchains/b8efef2ad5/Cellar/cmake/3.21.0/bin/cmake --build .
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/b8efef2ad5/bin/cmake --build /opt/nordic/ncs/v2.9.0/nrf/samples/bluetooth/hci_lpuart/build
Any ideas on how to solve this? I'd really appreciate it.
And if you have any examples for sending data from an nRF7002, that would help.