zephyr_pre0.elf and zephyr_pre0.map link fails

Trying to add a board config to a hello world example; wondering why zephyr_pre0.elf and zephyr_pre0.map link fails and any possible solutions to the problem.

HREAD_INFO:STRING="y"

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: C:/ncs/nrf_connect_test/hello_world_sample
-- Found Python3: C:/ncs/toolchains/v2.0.0/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Cache files will be written to: C:/ncs/v2.0.0/zephyr/.cache
-- Zephyr version: 3.0.99 (C:/ncs/v2.0.0/zephyr)
-- Found west (found suitable version "0.13.1", minimum required is "0.7.1")
-- Board: epn11292_a_52840
-- Found host-tools: zephyr 0.14.1 (C:/ncs/toolchains/v2.0.0/opt/zephyr-sdk)
-- Found dtc: C:/ncs/toolchains/v2.0.0/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: zephyr 0.14.1 (C:/ncs/toolchains/v2.0.0/opt/zephyr-sdk)
-- Found BOARD.dts: C:/ncs/v2.0.0/zephyr/boards/arm/epn11292_a_52840/epn11292_a_52840.dts
-- Generated zephyr.dts: C:/ncs/nrf_connect_test/hello_world_sample/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/ncs/nrf_connect_test/hello_world_sample/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/ncs/nrf_connect_test/hello_world_sample/build/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: C:/ncs/nrf_connect_test/hello_world_sample/build/zephyr/dts.cmake
Parsing C:/ncs/v2.0.0/zephyr/Kconfig
Loaded configuration 'C:/ncs/v2.0.0/zephyr/boards/arm/epn11292_a_52840/epn11292_a_52840_defconfig'
Merged configuration 'C:/ncs/nrf_connect_test/hello_world_sample/prj.conf'
Merged configuration 'C:/ncs/nrf_connect_test/hello_world_sample/build/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to 'C:/ncs/nrf_connect_test/hello_world_sample/build/zephyr/.config'
Kconfig header saved to 'C:/ncs/nrf_connect_test/hello_world_sample/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 10.3.0
-- The CXX compiler identification is GNU 10.3.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/ncs/toolchains/v2.0.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
-- Configuring done
-- Generating done
-- Build files have been written to: C:/ncs/nrf_connect_test/hello_world_sample/build
-- west build: building application
[1/155] Generating include/generated/version.h
-- Zephyr version: 3.0.99 (C:/ncs/v2.0.0/zephyr), build: v3.0.99-ncs1
[2/155] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[3/155] Generating include/generated/driver-validation.h
[4/155] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[5/155] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[6/155] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
[7/155] Generating include/generated/offsets.h
[8/155] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi_on_reset.S.obj
[9/155] Building C object zephyr/arch/common/CMakeFiles/arch__common.dir/sw_isr_common.c.obj
[10/155] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault_s.S.obj
[11/155] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/isr_wrapper.S.obj
[12/155] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/exc_exit.S.obj
[13/155] Building C object zephyr/arch/common/CMakeFiles/isr_tables.dir/isr_tables.c.obj
[14/155] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/vector_table.S.obj
[15/155] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi.c.obj
[16/155] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap.c.obj
[17/155] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/reset.S.obj
[18/155] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/prep_c.c.obj
[19/155] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/cpu_idle.S.obj
[20/155] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/time/gmtime.c.obj
[21/155] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/irq_init.c.obj
[22/155] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/irq_manage.c.obj
[23/155] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fpu.c.obj
[24/155] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/scb.c.obj
[25/155] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/fprintf.c.obj
[26/155] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtol.c.obj
[27/155] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/thread_abort.c.obj
[28/155] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/stdout_console.c.obj
[29/155] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/bsearch.c.obj
[30/155] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoul.c.obj
[31/155] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoll.c.obj
[32/155] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/fatal.c.obj
[33/155] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strstr.c.obj
[34/155] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strncasecmp.c.obj
[35/155] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/atoi.c.obj
[36/155] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/sprintf.c.obj
[37/155] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoull.c.obj
[38/155] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_core_mpu.c.obj
[39/155] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/qsort.c.obj
[40/155] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/abort.c.obj
[41/155] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/string.c.obj
[42/155] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/malloc.c.obj
[43/155] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/exit.c.obj
[44/155] Building C object zephyr/soc/arm/common/cortex_m/CMakeFiles/soc__arm__common__cortex_m.dir/arm_mpu_regions.c.obj
[45/155] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strspn.c.obj
[46/155] Building C object zephyr/soc/arm/nordic_nrf/nrf52/CMakeFiles/soc__arm__nordic_nrf__nrf52.dir/soc.c.obj
[47/155] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.0.0/modules/hal/nordic/nrfx/helpers/nrfx_flag32_allocator.c.obj
[48/155] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/nanosleep.c.obj
[49/155] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/nrfx_glue.c.obj
[50/155] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/pthread_common.c.obj
[51/155] Building C object zephyr/soc/arm/nordic_nrf/nrf52/CMakeFiles/soc__arm__nordic_nrf__nrf52.dir/power.c.obj
[52/155] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_mpu.c.obj
[53/155] Linking C static library zephyr\arch\common\libisr_tables.a
[54/155] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault.c.obj
[55/155] Building C object modules/nrf/drivers/hw_cc310/CMakeFiles/..__nrf__drivers__hw_cc310.dir/hw_cc310.c.obj
[56/155] Generating linker_zephyr_pre0.cmd
[57/155] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
[58/155] Building C object zephyr/kernel/CMakeFiles/kernel.dir/xip.c.obj
[59/155] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.0.0/modules/hal/nordic/nrfx/mdk/system_nrf52840.c.obj
[60/155] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/nrf_rtc_timer.c.obj
[61/155] Building C object zephyr/drivers/clock_control/CMakeFiles/drivers__clock_control.dir/clock_control_nrf.c.obj
[62/155] Linking C static library zephyr\soc\arm\common\cortex_m\libsoc__arm__common__cortex_m.a
[63/155] Linking C static library zephyr\lib\posix\liblib__posix.a
[64/155] Linking C static library zephyr\soc\arm\nordic_nrf\nrf52\libsoc__arm__nordic_nrf__nrf52.a
[65/155] Building C object modules/nrf/lib/fatal_error/CMakeFiles/..__nrf__lib__fatal_error.dir/fatal_error.c.obj
[66/155] Linking C static library zephyr\lib\libc\minimal\liblib__libc__minimal.a
[67/155] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timeout.c.obj
[68/155] Linking C static library zephyr\arch\arch\arm\core\aarch32\mpu\libarch__arm__core__aarch32__mpu.a
[69/155] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj
[70/155] Linking C static library zephyr\arch\common\libarch__common.a
[71/155] Building C object zephyr/kernel/CMakeFiles/kernel.dir/condvar.c.obj
[72/155] Linking C static library zephyr\arch\arch\arm\core\aarch32\cortex_m\libarch__arm__core__aarch32__cortex_m.a
[73/155] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.0.0/modules/hal/nordic/nrfx/drivers/src/nrfx_clock.c.obj
[74/155] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timer.c.obj
[75/155] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mempool.c.obj
[76/155] Linking C static library modules\nrf\drivers\hw_cc310\lib..__nrf__drivers__hw_cc310.a
[77/155] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj
[78/155] Building C object zephyr/kernel/CMakeFiles/kernel.dir/main_weak.c.obj
[79/155] Building C object zephyr/kernel/CMakeFiles/kernel.dir/version.c.obj
[80/155] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mem_slab.c.obj
[81/155] Building C object zephyr/kernel/CMakeFiles/kernel.dir/kheap.c.obj
[82/155] Linking C static library modules\nrf\lib\fatal_error\lib..__nrf__lib__fatal_error.a
[83/155] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
[84/155] Building C object zephyr/kernel/CMakeFiles/kernel.dir/idle.c.obj
[85/155] Building C object zephyr/kernel/CMakeFiles/kernel.dir/system_work_q.c.obj
[86/155] Building C object zephyr/kernel/CMakeFiles/kernel.dir/fatal.c.obj
[87/155] Building C object zephyr/kernel/CMakeFiles/kernel.dir/init.c.obj
[88/155] Linking C static library modules\hal_nordic\nrfx\libmodules__hal_nordic__nrfx.a
[89/155] Building C object zephyr/kernel/CMakeFiles/kernel.dir/msg_q.c.obj
[90/155] Building C object zephyr/kernel/CMakeFiles/kernel.dir/stack.c.obj
[91/155] Building C object zephyr/kernel/CMakeFiles/kernel.dir/sched.c.obj
[92/155] Linking C static library zephyr\drivers\clock_control\libdrivers__clock_control.a
[93/155] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mailbox.c.obj
[94/155] Linking C static library zephyr\drivers\timer\libdrivers__timer.a
[95/155] Building C object zephyr/kernel/CMakeFiles/kernel.dir/thread.c.obj
[96/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[97/155] Building C object zephyr/kernel/CMakeFiles/kernel.dir/queue.c.obj
[98/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[99/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[100/155] Building C object zephyr/kernel/CMakeFiles/kernel.dir/sem.c.obj
[101/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[102/155] Building C object CMakeFiles/app.dir/src/main.c.obj
[103/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[104/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[105/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[106/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[107/155] Building C object zephyr/kernel/CMakeFiles/kernel.dir/work.c.obj
[108/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[109/155] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mutex.c.obj
[110/155] Building ASM object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/common/soc_nrf_common.S.obj
[111/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[112/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[113/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/multi_heap.c.obj
[114/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[115/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[116/155] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[117/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[118/155] Building C object zephyr/kernel/CMakeFiles/kernel.dir/pipes.c.obj
[119/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[120/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[121/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[122/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[123/155] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_base_addresses.c.obj
[124/155] Building C object zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj
[125/155] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/state.c.obj
[126/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[127/155] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj
[128/155] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_enabled_instances.c.obj
[129/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/reboot.c.obj
[130/155] Linking C static library app\libapp.a
[131/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[132/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[133/155] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/policy.c.obj
[134/155] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/debug/thread_info.c.obj
[135/155] Building C object zephyr/CMakeFiles/zephyr.dir/C_/ncs/v2.0.0/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_abort_zephyr.c.obj
[136/155] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[137/155] Generating linker_zephyr_pre1.cmd
[138/155] Linking C static library zephyr\kernel\libkernel.a
[139/155] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/thread.c.obj
[140/155] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[141/155] Building C object zephyr/CMakeFiles/zephyr.dir/C_/ncs/v2.0.0/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_mutex_zephyr.c.obj
[142/155] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/pm.c.obj
[143/155] Linking C static library zephyr\arch\arch\arm\core\aarch32\libarch__arm__core__aarch32.a
[144/155] Linking C static library zephyr\libzephyr.a
[145/155] Linking C executable zephyr\zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map
cmd.exe /C "cd . && C:\ncs\toolchains\v2.0.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe   zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr\zephyr_pre0.elf  -Wl,-T  zephyr/linker_zephyr_pre0.cmd  -Wl,-Map=C:/ncs/nrf_connect_test/hello_world_sample/build/zephyr/zephyr_pre0.map  -Wl,--whole-archive  app/libapp.a  zephyr/libzephyr.a  zephyr/arch/common/libarch__common.a  zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a  zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a  zephyr/arch/arch/arm/core/aarch32/mpu/libarch__arm__core__aarch32__mpu.a  zephyr/lib/libc/minimal/liblib__libc__minimal.a  zephyr/lib/posix/liblib__posix.a  zephyr/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.a  zephyr/soc/arm/nordic_nrf/nrf52/libsoc__arm__nordic_nrf__nrf52.a  zephyr/drivers/clock_control/libdrivers__clock_control.a  zephyr/drivers/timer/libdrivers__timer.a  modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a  modules/nrf/drivers/hw_cc310/lib..__nrf__drivers__hw_cc310.a  modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a  -Wl,--no-whole-archive  zephyr/kernel/libkernel.a  zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj  -L"c:/ncs/toolchains/v2.0.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/thumb/v7e-m/nofp"  -LC:/ncs/nrf_connect_test/hello_world_sample/build/zephyr  -lgcc  zephyr/arch/common/libisr_tables.a  -no-pie  -mcpu=cortex-m4  -mthumb  -mabi=aapcs  -mfp16-format=ieee  -Wl,--gc-sections  -Wl,--build-id=none  -Wl,--sort-common=descending  -Wl,--sort-section=alignment  -Wl,-u,_OffsetAbsSyms  -Wl,-u,_ConfigAbsSyms  -nostdlib  -static  -Wl,-X  -Wl,-N  -Wl,--orphan-handling=warn  C:/ncs/v2.0.0/nrfxlib/crypto/nrf_cc310_platform/lib/cortex-m4/soft-float/no-interrupts/libnrf_cc310_platform_0.9.14.a && cmd.exe /C "cd /D C:\ncs\nrf_connect_test\hello_world_sample\build\zephyr && C:\ncs\toolchains\v2.0.0\opt\bin\cmake.exe -E echo ""
c:/ncs/toolchains/v2.0.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.exe: app/libapp.a(main.c.obj): in function `k_sleep':
C:\ncs\nrf_connect_test\hello_world_sample\build\zephyr\include\generated\syscalls\kernel.h:100: undefined reference to `__device_dts_ord_9'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'c:\ncs\toolchains\v2.0.0\opt\bin\cmake.EXE' --build 'c:\ncs\nrf_connect_test\hello_world_sample\build'
The terminal process terminated with exit code: 1.

Parents
  • turns out CONFIG_GPIO=y needed to be added to the prj.conf file or the board_defconfig file.

  • Thanks, your answer helped me.

    I encountered a similar error during building a BLE Mesh application (calling bt_mesh_cdb_create()). Thought I would mention it for other people: if you have got linker issues when calling zephyr sdk functions, check the if the required CONFIG_X values are set in the prj.conf configuration.

  • Can you please tell me all the config setting required for BLE Mesh Application?
    I am getting this same error and I don't know what I am missing?

    #CONFIG_INIT_STACKS=y
    CONFIG_MAIN_STACK_SIZE=2048
    CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
    # The Bluetooth API should not be used from a preemptive thread:
    CONFIG_MAIN_THREAD_PRIORITY=-2
    
    CONFIG_BT=y
    #CONFIG_BT_DEBUG_LOG=y
    CONFIG_BT_OBSERVER=y
    CONFIG_BT_BROADCASTER=y
    
    CONFIG_BT_CTLR_DUP_FILTER_LEN=0
    CONFIG_BT_CTLR_LE_ENC=n
    CONFIG_BT_CTLR_LE_PING=n
    CONFIG_BT_DATA_LEN_UPDATE=n
    CONFIG_BT_PHY_UPDATE=n
    CONFIG_BT_CTLR_MIN_USED_CHAN=n
    CONFIG_BT_CTLR_PRIVACY=n
    CONFIG_BT_CTLR_CHAN_SEL_2=n
    
    CONFIG_BT_MESH=y
    CONFIG_BT_MESH_SUBNET_COUNT=1
    CONFIG_BT_MESH_APP_KEY_COUNT=1
    CONFIG_BT_MESH_ADV_BUF_COUNT=10
    CONFIG_BT_MESH_TX_SEG_MSG_COUNT=3
    CONFIG_BT_MESH_RX_SEG_MAX=32
    CONFIG_BT_MESH_MODEL_GROUP_COUNT=2
    CONFIG_BT_MESH_LABEL_COUNT=0
    CONFIG_BT_MESH_CFG_CLI=y
    CONFIG_BT_MESH_HEALTH_CLI=y
    CONFIG_BT_MESH_BEACON_ENABLED=n
    CONFIG_BT_MESH_RELAY=y
    CONFIG_BT_MESH_RELAY_RETRANSMIT_COUNT=3
    
    CONFIG_BT_MESH_PROVISIONER=y
    CONFIG_BT_MESH_PROVISIONEE=n
    CONFIG_BT_MESH_CDB=y
    CONFIG_BT_MESH_CDB_NODE_COUNT=16
    CONFIG_BT_MESH_CDB_SUBNET_COUNT=3
    CONFIG_BT_MESH_CDB_APP_KEY_COUNT=3
    
    CONFIG_BT_SETTINGS=y
    CONFIG_FLASH=y
    CONFIG_FLASH_PAGE_LAYOUT=y
    CONFIG_FLASH_MAP=y
    CONFIG_NVS=y
    CONFIG_SETTINGS=y
    CONFIG_BT_MESH_RPL_STORE_TIMEOUT=600
    
    CONFIG_BT_MESH_RPR_CLI=y
    CONFIG_BT_EXT_ADV=y
    CONFIG_BT_MESH_DK_PROV=y
    #CONFIG_BT_EXT_ADV_MAX_ADV_SET=5
    
    
    
    

Reply
  • Can you please tell me all the config setting required for BLE Mesh Application?
    I am getting this same error and I don't know what I am missing?

    #CONFIG_INIT_STACKS=y
    CONFIG_MAIN_STACK_SIZE=2048
    CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
    # The Bluetooth API should not be used from a preemptive thread:
    CONFIG_MAIN_THREAD_PRIORITY=-2
    
    CONFIG_BT=y
    #CONFIG_BT_DEBUG_LOG=y
    CONFIG_BT_OBSERVER=y
    CONFIG_BT_BROADCASTER=y
    
    CONFIG_BT_CTLR_DUP_FILTER_LEN=0
    CONFIG_BT_CTLR_LE_ENC=n
    CONFIG_BT_CTLR_LE_PING=n
    CONFIG_BT_DATA_LEN_UPDATE=n
    CONFIG_BT_PHY_UPDATE=n
    CONFIG_BT_CTLR_MIN_USED_CHAN=n
    CONFIG_BT_CTLR_PRIVACY=n
    CONFIG_BT_CTLR_CHAN_SEL_2=n
    
    CONFIG_BT_MESH=y
    CONFIG_BT_MESH_SUBNET_COUNT=1
    CONFIG_BT_MESH_APP_KEY_COUNT=1
    CONFIG_BT_MESH_ADV_BUF_COUNT=10
    CONFIG_BT_MESH_TX_SEG_MSG_COUNT=3
    CONFIG_BT_MESH_RX_SEG_MAX=32
    CONFIG_BT_MESH_MODEL_GROUP_COUNT=2
    CONFIG_BT_MESH_LABEL_COUNT=0
    CONFIG_BT_MESH_CFG_CLI=y
    CONFIG_BT_MESH_HEALTH_CLI=y
    CONFIG_BT_MESH_BEACON_ENABLED=n
    CONFIG_BT_MESH_RELAY=y
    CONFIG_BT_MESH_RELAY_RETRANSMIT_COUNT=3
    
    CONFIG_BT_MESH_PROVISIONER=y
    CONFIG_BT_MESH_PROVISIONEE=n
    CONFIG_BT_MESH_CDB=y
    CONFIG_BT_MESH_CDB_NODE_COUNT=16
    CONFIG_BT_MESH_CDB_SUBNET_COUNT=3
    CONFIG_BT_MESH_CDB_APP_KEY_COUNT=3
    
    CONFIG_BT_SETTINGS=y
    CONFIG_FLASH=y
    CONFIG_FLASH_PAGE_LAYOUT=y
    CONFIG_FLASH_MAP=y
    CONFIG_NVS=y
    CONFIG_SETTINGS=y
    CONFIG_BT_MESH_RPL_STORE_TIMEOUT=600
    
    CONFIG_BT_MESH_RPR_CLI=y
    CONFIG_BT_EXT_ADV=y
    CONFIG_BT_MESH_DK_PROV=y
    #CONFIG_BT_EXT_ADV_MAX_ADV_SET=5
    
    
    
    

Children
No Data
Related