Compilation error when enabling the bluetooth (CONFIG_BT=y)

Hello,

I use NCS 2.8.0 and toolchain 2.8.0 for my build. Also, the boad is a custom board with NRF52840.

My zephyr application is structured as show in this link : https://github.com/nrfconnect/ncs-example-application 

My problem is that the program cannot be built when CONFIG_BT=y.

The following errors occur at the end of the compilation :

 [220/225] Linking C executable zephyr\zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map ....

............

./../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/subsys/bluetooth/host/libsubsys__bluetooth__host.a(
hci_core.c.obj):(.data.bt_dev+0x16c): undefined reference to `__device_dts_ord_98'

collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Thank you for your help.

Best regards,

Related