Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build BLE samples for the nrf52840 #84157

Closed
Nianmi opened this issue Jan 17, 2025 · 1 comment
Closed

Cannot build BLE samples for the nrf52840 #84157

Nianmi opened this issue Jan 17, 2025 · 1 comment
Labels
bug The issue is a bug, or the PR is fixing a bug

Comments

@Nianmi
Copy link

Nianmi commented Jan 17, 2025

Describe the bug
Cannot build any ble Examples. I tried to build multiple examples an i always get the same error:

C:/ncs/v2.9.0/zephyr/include/zephyr/drivers/entropy.h:93: undefined reference to `__device_dts_ord_77'

Im using the default nrf52840 DK nrf52840 board.
Examples i have tried:
SMP server
Peripheral NUS
I have changed nothing inside the device tree. Also changed nothing inside the prj.conf file

To Reproduce

  1. Open VS code
  2. Create a new project
  3. Copy on of the samples i have mention Peripheral NUS seams to be the less complex sample
  4. Select the target platform nrf52840 DK nrf52840
  5. Press build
  6. See the error in build output

Expected behavior
Build should be successful

Impact
Cannot implement ble.

Logs and console output

C:/ncs/v2.9.0/zephyr/subsys/random/random_xoshiro128.c:51: undefined reference to `__device_dts_ord_77'
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: zephyr/subsys/bluetooth/host/libsubsys__bluetooth__host.a(hci_core.c.obj):(.data.bt_dev+0x16c): undefined reference to `__device_dts_ord_134'
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: zephyr/subsys/bluetooth/controller/ll_sw/nordic/libsubsys__bluetooth__controller__ll_sw__nordic.a(lll.c.obj): in function `z_impl_entropy_get_entropy':
C:/ncs/v2.9.0/zephyr/include/zephyr/drivers/entropy.h:93: undefined reference to `__device_dts_ord_77'

Environment (please complete the following information):

  • OS: Windows
  • Toolchain: v2.9.0.
  • SDK: Zephyr 3.7.99*
  • Commit SHA: 1f8f3dc291420c70cd39e77a5cdc954561d4a08f
  • Commit Version: v3.7.99-ncs2
@Nianmi Nianmi added the bug The issue is a bug, or the PR is fixing a bug label Jan 17, 2025
@Nianmi
Copy link
Author

Nianmi commented Jan 17, 2025

Uninstalled all toolchains and all SDK's.
Reinstalled them. Now it works.

@Nianmi Nianmi closed this as completed Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

No branches or pull requests

1 participant