Issue on peripheral HR example using nrf5340DK

Hello,

I’m using the nRF Connect extension for VS Code, and I encountered an error while trying to compile the peripheral_hr sample code.

I'm using SDK 2.9.0 with toolchain 2.9.0.

Here is the error log I received:


lto-wrapper.exe: warning: using serial compilation of 2 LTRANS jobs
lto-wrapper.exe: note: see the '-flto' option documentation for more information
c:/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: C:\Users\DRIBOL~1\AppData\Local\Temp\ccFvCKw3.ltrans0.ltrans.o: in function `tx_thread':
C:/ncs/v2.9.0/zephyr/samples/bluetooth/hci_ipc/src/main.c:211: undefined reference to `__device_dts_ord_82'
c:/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: C:\Users\DRIBOL~1\AppData\Local\Temp\ccFvCKw3.ltrans0.ltrans.o: in function `bg_thread_main':
C:/ncs/v2.9.0/zephyr/samples/bluetooth/hci_ipc/src/main.c:274: undefined reference to `__device_dts_ord_82'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
[10/16] No configure step for 'peripheral_hr'
FAILED: _sysbuild/hci_ipc-prefix/src/hci_ipc-stamp/hci_ipc-build C:/ncs/peripheral_hr/build/_sysbuild/hci_ipc-prefix/src/hci_ipc-stamp/hci_ipc-build

I configured the project with nrf5340dk/nrf5340/cpuapp/ns.

Has anyone else faced the same issue? Can someone help me understand and fix this problem?

Thank you in advance!

Related