CONFIG_SERIAL=n causes compilation to fail

I’ve been playing around with battery life on the nRF52840DK and I’m not trying to get the same code running on the XIAO nRF52840.

When I try to compile it, I get this error (I cut some paths info out as I couldn’t post otherwise!)

[316/321] Linking C executable zephyr\zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map ...cmake.exe -E true""
zephyr/drivers/console/libdrivers__console.a(uart_console.c.obj): in function `uart_console_init':
G:/ncs/v2.9.0/zephyr/drivers/console/uart_console.c:609: undefined reference to `__device_dts_ord_123'
g:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/drivers/console/libdrivers__console.a(uart_console.c.obj): in function `console_out':
G:/ncs/v2.9.0/zephyr/drivers/console/uart_console.c:111: undefined reference to `__device_dts_ord_123'

I then tried the Zephyr Blinky sample and the issue seems to lie with the CONFIG_SERIAL setting.

When this is false, I cannot compile Blinky for the XIAO board.

The guidance from Nordic is that the CONFIG_SERIAL should be false to reduce power consumption.

What’s the solution? Do I need to remove any devices or peripherals from the Overlay?

Hi there,

Have you tried with an older toolchain 2.6.1 ?
same error?
If not then Your more than likely missing an update from the Zephyr Realm
HTH
GL :slight_smile: PJ :v: