nrf_desktop application can't off the b0 bootloader

Dear Nordic Engineers

Our customers use the nrf_desktop  application to develop their product.

 They use the NCS 2.0.0\nrf\applications\nrf_desktop and build project on the nrf52840dk_nrf52840.

It looks normal. The program can run.

They would like off the b0 bootloader. So I went to their company to help them.

I read this link:https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrf/applications/nrf_desktop/README.html

The bo bootloader can set the following configs to open/off the b0 bootloader.
CONFIG_SECURE_BOOT
CONFIG_BUILD_S1_VARIANT
CONFIG_FW_INFO
CONFIG_FW_INFO_FIRMWARE_VERSION
CONFIG_SB_SIGNING_KEY_FILE

So I off this config on nrf\applications\nrf_desktop\configuration\nrf52840dk_nrf52840\prj.conf.

I rebuilt the project and it reports some errors. I found that it needs off "CONFIG_DESKTOP_CONFIG_CHANNEL_DFU_ENABLE".

Then the project can be built.I downloaded the program to PCA10056(V1.0.0). The program can't run. 

I review nrf_desktop\configuration\nrf52840dk_nrf52840\prj.conf of NCS V1.9.1 and NCS V2.0.0. Their difference is the following configs.

CONFIG_SECURE_BOOT
CONFIG_BUILD_S1_VARIANT
CONFIG_FW_INFO
CONFIG_FW_INFO_FIRMWARE_VERSION
CONFIG_SB_SIGNING_KEY_FILE

CONFIG_DESKTOP_CONFIG_CHANNEL_DFU_ENABLE

Do I need off other config? Please give me some good suggestions.

Best regards.

Parents Reply Children
  • Dear Dejans

    The following log is  only setting CONFIG_SECURE_BOOT=n 

    -- Found partition manager static configuration: E:/NCS/v2.0.0/nrf/applications/nrf_desktop/configuration/nrf52840dk_nrf52840/pm_static.yml
    Partition 'settings_storage' is not included in the dynamic resolving since it is statically defined.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: E:/NCS/v2.0.0/nrf/applications/nrf_desktop/build_NRF52840
    -- west build: building application
    [1/302] Generating include/generated/version.h
    -- Zephyr version: 3.0.99 (E:/NCS/v2.0.0/zephyr), build: v3.0.99-ncs1
    [2/302] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
    [3/302] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
    [4/302] Generating include/generated/driver-validation.h
    [5/302] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
    [6/302] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
    [7/302] Generating include/generated/offsets.h
    [8/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
    [9/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
    [10/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
    [11/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
    [12/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
    [13/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
    [14/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
    [15/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
    [16/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
    [17/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
    [18/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
    [19/302] Building C object CMakeFiles/app.dir/src/util/config_channel_transport.c.obj
    [20/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
    [21/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
    [22/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
    [23/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
    [24/302] Building ASM object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/common/soc_nrf_common.S.obj
    [25/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
    [26/302] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
    [27/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
    [28/302] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_base_addresses.c.obj
    [29/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/reboot.c.obj
    [30/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
    [31/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/multi_heap.c.obj
    [32/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
    [33/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
    [34/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
    [35/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/usb/device/usb_descriptor.c.obj
    [36/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
    [37/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
    [38/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_list.c.obj
    [39/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
    [40/302] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_enabled_instances.c.obj
    [41/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_msg.c.obj
    [42/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_mgmt.c.obj
    [43/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_output.c.obj
    [44/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/bluetooth/services/dis.c.obj
    [45/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_core.c.obj
    [46/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_backend_rtt.c.obj
    [47/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_msg2.c.obj
    [48/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/state.c.obj
    [49/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/settings/src/settings_nvs.c.obj
    [50/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/policy.c.obj
    [51/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/settings/src/settings_init.c.obj
    [52/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/settings/src/settings_line.c.obj
    [53/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/storage/flash_map/flash_map_layout.c.obj
    [54/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/pm.c.obj
    [55/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/storage/flash_map/flash_map_default.c.obj
    [56/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/settings/src/settings_store.c.obj
    [57/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/storage/flash_map/flash_map.c.obj
    [58/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/fs/nvs/nvs.c.obj
    [59/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/usb/device/usb_transfer.c.obj
    [60/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/settings/src/settings.c.obj
    [61/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
    [62/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrf/subsys/caf/events/power_event.c.obj
    [63/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/device.c.obj
    [64/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrf/subsys/bluetooth/conn_ctx.c.obj
    [65/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/usb/device/usb_device.c.obj
    [66/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrf/subsys/bluetooth/gatt_pool.c.obj
    [67/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrf/subsys/app_event_manager/app_event_manager.c.obj
    [68/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrf/subsys/caf/events/button_event.c.obj
    [69/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrf/subsys/caf/events/force_power_down_event.c.obj
    [70/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrf/subsys/caf/events/module_state_event.c.obj
    [71/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrf/subsys/caf/events/click_event.c.obj
    [72/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrf/subsys/caf/events/ble_common_event.c.obj
    [73/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrf/subsys/caf/events/keep_alive_event.c.obj
    [74/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/modules/crypto/tinycrypt/lib/source/cmac_mode.c.obj
    [75/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrf/subsys/caf/events/led_event.c.obj
    [76/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/modules/crypto/tinycrypt/lib/source/utils.c.obj
    [77/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/modules/crypto/tinycrypt/lib/source/aes_decrypt.c.obj
    [78/302] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/vector_table.S.obj
    [79/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/modules/crypto/tinycrypt/lib/source/aes_encrypt.c.obj
    [80/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrf/subsys/bluetooth/services/hids.c.obj
    [81/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrf/subsys/caf/events/power_manager_event.c.obj
    [82/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_mutex_zephyr.c.obj
    [83/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_abort_zephyr.c.obj
    [84/302] Building C object modules/nrf/drivers/mpsl/clock_control/CMakeFiles/..__nrf__drivers__mpsl__clock_control.dir/nrfx_clock_mpsl.c.obj
    [85/302] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/scb.c.obj
    [86/302] Generating linker_zephyr_pre1.cmd
    [87/302] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/thread_abort.c.obj
    [88/302] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/E_/NCS/v2.0.0/modules/hal/nordic/nrfx/mdk/system_nrf52840.c.obj
    [89/302] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/E_/NCS/v2.0.0/modules/hal/nordic/nrfx/helpers/nrfx_flag32_allocator.c.obj
    [90/302] Building C object modules/nrf/drivers/hw_cc310/CMakeFiles/..__nrf__drivers__hw_cc310.dir/hw_cc310.c.obj
    [91/302] Linking C static library zephyr\libzephyr.a
    [92/302] Linking C static library modules\nrf\drivers\mpsl\clock_control\lib..__nrf__drivers__mpsl__clock_control.a
    [93/302] Building C object modules/nrf/drivers/mpsl/flash_sync/CMakeFiles/..__nrf__drivers__mpsl__flash_sync.dir/flash_sync_mpsl.c.obj
    [94/302] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/nrfx_glue.c.obj
    [95/302] Building C object modules/segger/CMakeFiles/modules__segger.dir/SEGGER_RTT_zephyr.c.obj
    [96/302] Linking C static library modules\nrf\drivers\hw_cc310\lib..__nrf__drivers__hw_cc310.a
    [97/302] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/E_/NCS/v2.0.0/modules/hal/nordic/nrfx/drivers/src/nrfx_nvmc.c.obj
    [98/302] Linking C static library modules\nrf\drivers\mpsl\flash_sync\lib..__nrf__drivers__mpsl__flash_sync.a
    [99/302] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/E_/NCS/v2.0.0/modules/hal/nordic/nrfx/drivers/src/nrfx_power.c.obj
    [100/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/main_weak.c.obj
    [101/302] Building C object CMakeFiles/app.dir/configuration/common/hid_report_desc.c.obj
    [102/302] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/E_/NCS/v2.0.0/modules/hal/nordic/nrfx/drivers/src/nrfx_pwm.c.obj
    [103/302] Building C object modules/segger/CMakeFiles/modules__segger.dir/E_/NCS/v2.0.0/modules/debug/segger/SEGGER/SEGGER_RTT.c.obj
    [104/302] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/E_/NCS/v2.0.0/modules/hal/nordic/nrfx/drivers/src/nrfx_gpiote.c.obj
    [105/302] Building C object CMakeFiles/app.dir/src/main.c.obj
    [106/302] Building C object CMakeFiles/app.dir/src/events/ble_event.c.obj
    [107/302] Building C object CMakeFiles/app.dir/src/events/battery_event.c.obj
    [108/302] Building C object CMakeFiles/app.dir/src/events/motion_event.c.obj
    [109/302] Linking C static library modules\segger\libmodules__segger.a
    [110/302] Building C object CMakeFiles/app.dir/src/events/selector_event.c.obj
    [111/302] Building C object CMakeFiles/app.dir/src/events/passkey_event.c.obj
    [112/302] Building C object CMakeFiles/app.dir/src/events/wheel_event.c.obj
    [113/302] Building C object CMakeFiles/app.dir/src/events/config_event.c.obj
    [114/302] Building C object CMakeFiles/app.dir/src/events/usb_event.c.obj
    [115/302] Building C object CMakeFiles/app.dir/src/events/hid_event.c.obj
    [116/302] Building C object CMakeFiles/app.dir/src/hw_interface/board.c.obj
    [117/302] Building C object CMakeFiles/app.dir/src/hw_interface/motion_buttons.c.obj
    [118/302] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/E_/NCS/v2.0.0/modules/hal/nordic/nrfx/drivers/src/nrfx_usbd.c.obj
    [119/302] Building C object CMakeFiles/app.dir/src/events/hids_event.c.obj
    [120/302] Building C object CMakeFiles/app.dir/src/modules/info.c.obj
    [121/302] Building C object CMakeFiles/app.dir/src/modules/ble_latency.c.obj
    [122/302] Building C object CMakeFiles/app.dir/src/modules/hid_state_pm.c.obj
    [123/302] Linking C static library modules\hal_nordic\nrfx\libmodules__hal_nordic__nrfx.a
    [124/302] Building C object CMakeFiles/app.dir/src/modules/usb_state_pm.c.obj
    [125/302] Building C object CMakeFiles/app.dir/src/modules/led_state.c.obj
    [126/302] Building C object CMakeFiles/app.dir/src/modules/dev_descr.c.obj
    [127/302] Building C object CMakeFiles/app.dir/src/modules/hfclk_lock.c.obj
    [128/302] Building C object CMakeFiles/app.dir/src/modules/usb_state.c.obj
    [129/302] Building C object CMakeFiles/app.dir/src/util/hwid.c.obj
    [130/302] Building C object CMakeFiles/app.dir/src/modules/ble_bond.c.obj
    [131/302] Building C object CMakeFiles/app.dir/src/modules/bas.c.obj
    [132/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj
    [133/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj
    [134/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
    [135/302] Building C object CMakeFiles/app.dir/src/modules/hids.c.obj
    [136/302] Building C object CMakeFiles/app.dir/src/modules/hid_state.c.obj
    [137/302] Building C object CMakeFiles/app.dir/src/modules/dfu.c.obj
    FAILED: CMakeFiles/app.dir/src/modules/dfu.c.obj
    E:\NCS\toolchains\v2.0.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DEXT_API_MAGIC=0x281ee6de,0xb845acea,13314 -DFIRMWARE_INFO_MAGIC=0x281ee6de,0x8fcebb4c,13314 -DKERNEL -DNRF52840_XXAA -DUSE_PARTITION_MANAGER=1 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -I../src/events -I../src/util -IE:/NCS/v2.0.0/nrf/drivers/mpsl/clock_control -IE:/NCS/v2.0.0/zephyr/include/zephyr -IE:/NCS/v2.0.0/zephyr/include -Izephyr/include/generated -IE:/NCS/v2.0.0/zephyr/soc/arm/nordic_nrf/nrf52 -IE:/NCS/v2.0.0/zephyr/soc/arm/nordic_nrf/common/. -IE:/NCS/v2.0.0/zephyr/subsys/bluetooth -IE:/NCS/v2.0.0/zephyr/subsys/usb/device -IE:/NCS/v2.0.0/zephyr/subsys/settings/include -IE:/NCS/v2.0.0/nrf/include -IE:/NCS/v2.0.0/nrf/lib/multithreading_lock/. -IE:/NCS/v2.0.0/nrf/subsys/bluetooth/controller/. -IE:/NCS/v2.0.0/nrf/subsys/app_event_manager/. -IE:/NCS/v2.0.0/nrf/subsys/app_event_manager_profiler_tracer/. -IE:/NCS/v2.0.0/zephyr/drivers/flash -IE:/NCS/v2.0.0/modules/hal/cmsis/CMSIS/Core/Include -IE:/NCS/v2.0.0/modules/hal/nordic/nrfx -IE:/NCS/v2.0.0/modules/hal/nordic/nrfx/drivers/include -IE:/NCS/v2.0.0/modules/hal/nordic/nrfx/mdk -IE:/NCS/v2.0.0/zephyr/modules/hal_nordic/nrfx/. -IE:/NCS/v2.0.0/modules/debug/segger/SEGGER -IE:/NCS/v2.0.0/modules/debug/segger/Config -IE:/NCS/v2.0.0/zephyr/modules/segger/. -IE:/NCS/v2.0.0/modules/crypto/tinycrypt/lib/include -IE:/NCS/v2.0.0/nrfxlib/mpsl/include -IE:/NCS/v2.0.0/nrfxlib/mpsl/include/protocol -I../configuration/common -I../configuration/nrf52840dk_nrf52840 -IE:/NCS/v2.0.0/nrfxlib/softdevice_controller/include -isystem E:/NCS/v2.0.0/zephyr/lib/libc/minimal/include -isystem e:/ncs/toolchains/v2.0.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include -isystem e:/ncs/toolchains/v2.0.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include-fixed -isystem E:/NCS/v2.0.0/nrfxlib/crypto/nrf_cc310_platform/include -O2 -imacros E:/NCS/v2.0.0/nrf/applications/nrf_desktop/build_NRF52840/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee -imacros E:/NCS/v2.0.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=E:/NCS/v2.0.0/nrf/applications/nrf_desktop=CMAKE_SOURCE_DIR -fmacro-prefix-map=E:/NCS/v2.0.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=E:/NCS/v2.0.0=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/src/modules/dfu.c.obj -MF CMakeFiles\app.dir\src\modules\dfu.c.obj.d -o CMakeFiles/app.dir/src/modules/dfu.c.obj -c ../src/modules/dfu.c
    e:\NCS\v2.0.0\nrf\applications\nrf_desktop\src\modules\dfu.c:67:3: error: #error Bootloader not supported.
    67 | #error Bootloader not supported.
    | ^~~~~
    In file included from E:\NCS\v2.0.0\zephyr\include\zephyr\toolchain.h:50,
    from E:\NCS\v2.0.0\zephyr\include\zephyr\sys\__assert.h:11,
    from E:\NCS\v2.0.0\zephyr\include\zephyr\sys\byteorder.h:16,
    from e:\NCS\v2.0.0\nrf\applications\nrf_desktop\src\modules\dfu.c:10:
    ../src/modules/dfu.c: In function 'dfu_slot_id':
    e:\NCS\v2.0.0\nrf\applications\nrf_desktop\src\modules\dfu.c:113:15: error: 'IMAGE0_ADDRESS' undeclared (first use in this function); did you mean 'PM_B0_ADDRESS'?
    113 | BUILD_ASSERT(IMAGE0_ADDRESS < IMAGE1_ADDRESS);
    | ^~~~~~~~~~~~~~
    E:\NCS\v2.0.0\zephyr\include\zephyr\toolchain\gcc.h:77:51: note: in definition of macro 'BUILD_ASSERT'
    77 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
    | ^~~~
    e:\NCS\v2.0.0\nrf\applications\nrf_desktop\src\modules\dfu.c:113:15: note: each undeclared identifier is reported only once for each function it appears in
    113 | BUILD_ASSERT(IMAGE0_ADDRESS < IMAGE1_ADDRESS);
    | ^~~~~~~~~~~~~~
    E:\NCS\v2.0.0\zephyr\include\zephyr\toolchain\gcc.h:77:51: note: in definition of macro 'BUILD_ASSERT'
    77 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
    | ^~~~
    e:\NCS\v2.0.0\nrf\applications\nrf_desktop\src\modules\dfu.c:113:32: error: 'IMAGE1_ADDRESS' undeclared (first use in this function); did you mean 'PM_S1_ADDRESS'?
    113 | BUILD_ASSERT(IMAGE0_ADDRESS < IMAGE1_ADDRESS);
    | ^~~~~~~~~~~~~~
    E:\NCS\v2.0.0\zephyr\include\zephyr\toolchain\gcc.h:77:51: note: in definition of macro 'BUILD_ASSERT'
    77 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
    | ^~~~
    e:\NCS\v2.0.0\nrf\applications\nrf_desktop\src\modules\dfu.c:113:15: error: expression in static assertion is not an integer
    113 | BUILD_ASSERT(IMAGE0_ADDRESS < IMAGE1_ADDRESS);
    | ^~~~~~~~~~~~~~
    E:\NCS\v2.0.0\zephyr\include\zephyr\toolchain\gcc.h:77:51: note: in definition of macro 'BUILD_ASSERT'
    77 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
    | ^~~~
    e:\NCS\v2.0.0\nrf\applications\nrf_desktop\src\modules\dfu.c:115:10: error: 'IMAGE1_ID' undeclared (first use in this function)
    115 | return IMAGE1_ID;
    | ^~~~~~~~~
    e:\NCS\v2.0.0\nrf\applications\nrf_desktop\src\modules\dfu.c:118:9: error: 'IMAGE0_ID' undeclared (first use in this function)
    118 | return IMAGE0_ID;
    | ^~~~~~~~~
    ../src/modules/dfu.c: In function 'handle_dfu_bootloader_variant':
    e:\NCS\v2.0.0\nrf\applications\nrf_desktop\src\modules\dfu.c:502:17: error: 'BOOTLOADER_NAME' undeclared (first use in this function)
    502 | *size = strlen(BOOTLOADER_NAME);
    | ^~~~~~~~~~~~~~~
    ../src/modules/dfu.c: In function 'fetch_config':
    e:\NCS\v2.0.0\nrf\applications\nrf_desktop\src\modules\dfu.c:663:3: warning: implicit declaration of function 'handle_image_info_request'; did you mean 'handle_reboot_request'? [-Wimplicit-function-declaration]
    663 | handle_image_info_request(data, size);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~
    | handle_reboot_request
    ../src/modules/dfu.c: In function 'dfu_slot_id':
    e:\NCS\v2.0.0\nrf\applications\nrf_desktop\src\modules\dfu.c:120:1: warning: control reaches end of non-void function [-Wreturn-type]
    120 | }
    | ^
    [138/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/version.c.obj
    [139/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/kheap.c.obj
    [140/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/init.c.obj
    [141/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/fatal.c.obj
    [142/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mem_slab.c.obj
    [143/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/idle.c.obj
    [144/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/thread.c.obj
    [145/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mailbox.c.obj
    [146/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mutex.c.obj
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'e:\NCS\toolchains\v2.0.0\opt\bin\cmake.EXE' --build 'e:\NCS\v2.0.0\nrf\applications\nrf_desktop\build_NRF52840'
    终端进程已终止,退出代码: 1。
    The following code is my prj.conf setting.

    #
    # Copyright (c) 2019 Nordic Semiconductor ASA
    #
    # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
    #
    ################################################################################
    # Application Configuration
    
    CONFIG_DESKTOP_INIT_LOG_MOTION_EVENT=n
    CONFIG_DESKTOP_INIT_LOG_HID_REPORT_EVENT=n
    CONFIG_DESKTOP_INIT_LOG_HID_REPORT_SENT_EVENT=n
    CONFIG_CAF_INIT_LOG_KEEP_ALIVE_EVENTS=n
    
    CONFIG_DESKTOP_HID_REPORT_DESC="configuration/common/hid_report_desc.c"
    
    CONFIG_DESKTOP_HID_MOUSE=y
    CONFIG_DESKTOP_HID_STATE_ENABLE=y
    CONFIG_DESKTOP_HID_BOOT_INTERFACE_MOUSE=y
    
    CONFIG_DESKTOP_MOTION_BUTTONS_ENABLE=y
    CONFIG_DESKTOP_MOTION_UP_KEY_ID=0
    CONFIG_DESKTOP_MOTION_DOWN_KEY_ID=3
    CONFIG_DESKTOP_MOTION_LEFT_KEY_ID=2
    CONFIG_DESKTOP_MOTION_RIGHT_KEY_ID=1
    
    CONFIG_CAF=y
    CONFIG_CAF_PM_EVENTS=y
    CONFIG_CAF_POWER_MANAGER=y
    
    CONFIG_CAF_BUTTONS=y
    CONFIG_CAF_BUTTONS_POLARITY_INVERSED=y
    CONFIG_CAF_BUTTONS_PM_KEEP_ALIVE=n
    
    CONFIG_CAF_CLICK_DETECTOR=y
    
    CONFIG_CAF_LEDS=y
    
    CONFIG_CAF_BLE_STATE=y
    CONFIG_DESKTOP_BLE_BOND_ENABLE=y
    
    CONFIG_CAF_BLE_ADV=y
    CONFIG_CAF_BLE_ADV_DIRECT_ADV=n
    CONFIG_CAF_BLE_ADV_FAST_ADV=y
    CONFIG_CAF_BLE_ADV_SWIFT_PAIR=y
    
    CONFIG_CAF_SETTINGS_LOADER=y
    
    CONFIG_DESKTOP_USB_ENABLE=y
    
    CONFIG_DESKTOP_BLE_USE_DEFAULT_ID=y
    
    CONFIG_DESKTOP_BLE_PEER_CONTROL=y
    CONFIG_DESKTOP_BLE_PEER_CONTROL_BUTTON=0x0000
    CONFIG_DESKTOP_BLE_PEER_ERASE_ON_START=y
    
    CONFIG_DESKTOP_BLE_SECURITY_FAIL_TIMEOUT_S=10
    CONFIG_DESKTOP_BLE_LOW_LATENCY_LOCK=y
    
    CONFIG_DESKTOP_CONFIG_CHANNEL_ENABLE=y
    CONFIG_DESKTOP_CONFIG_CHANNEL_DFU_ENABLE=y
    
    CONFIG_DESKTOP_HFCLK_LOCK_ENABLE=y
    
    ################################################################################
    # Zephyr Configuration
    
    CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=1536
    CONFIG_ISR_STACK_SIZE=1536
    CONFIG_MAIN_STACK_SIZE=768
    CONFIG_BT_RX_STACK_SIZE=2048
    CONFIG_BT_HCI_TX_STACK_SIZE_WITH_PROMPT=y
    CONFIG_BT_HCI_TX_STACK_SIZE=1536
    
    CONFIG_BOOT_BANNER=n
    
    CONFIG_NUM_COOP_PRIORITIES=10
    CONFIG_NUM_PREEMPT_PRIORITIES=11
    
    CONFIG_HEAP_MEM_POOL_SIZE=512
    
    CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
    CONFIG_SYSTEM_CLOCK_NO_WAIT=y
    
    CONFIG_PM_POLICY_CUSTOM=y
    
    CONFIG_HW_STACK_PROTECTION=y
    CONFIG_RESET_ON_FATAL_ERROR=n
    
    CONFIG_GPIO=y
    
    CONFIG_SERIAL=n
    CONFIG_CONSOLE=n
    CONFIG_UART_CONSOLE=n
    
    CONFIG_HWINFO=y
    
    CONFIG_FLASH=y
    CONFIG_FLASH_PAGE_LAYOUT=y
    CONFIG_FLASH_MAP=y
    CONFIG_NVS=y
    
    CONFIG_SETTINGS=y
    CONFIG_SETTINGS_NVS=y
    
    CONFIG_REBOOT=y
    
    CONFIG_SPEED_OPTIMIZATIONS=y
    
    CONFIG_PWM=y
    
    CONFIG_LED=y
    CONFIG_LED_PWM=y
    
    CONFIG_USB_NRFX=y
    CONFIG_USB_DEVICE_STACK=y
    CONFIG_USB_DEVICE_MANUFACTURER="Nordic Semiconductor ASA"
    CONFIG_USB_DEVICE_PRODUCT="Mouse nRF52 Desktop"
    CONFIG_USB_DEVICE_VID=0x1915
    CONFIG_USB_DEVICE_PID=0x52DE
    CONFIG_USB_DEVICE_REMOTE_WAKEUP=y
    CONFIG_USB_DEVICE_HID=y
    CONFIG_USB_DEVICE_LOG_LEVEL_OFF=y
    CONFIG_USB_DRIVER_LOG_LEVEL_OFF=y
    CONFIG_USB_HID_POLL_INTERVAL_MS=1
    CONFIG_USB_HID_BOOT_PROTOCOL=y
    CONFIG_USB_HID_PROTOCOL_CODE=2
    
    CONFIG_BT=y
    CONFIG_BT_SETTINGS=y
    CONFIG_BT_SMP=y
    CONFIG_BT_SIGNING=y
    CONFIG_BT_MAX_PAIRED=2
    CONFIG_BT_ID_MAX=3
    CONFIG_BT_LL_SOFTDEVICE=y
    
    CONFIG_BT_DEVICE_NAME="Mouse nRF52 Desktop"
    CONFIG_BT_DEVICE_APPEARANCE=962
    
    CONFIG_BT_CTLR=y
    CONFIG_BT_CTLR_CONN_PARAM_REQ=n
    CONFIG_BT_CTLR_SDC_LLPM=y
    CONFIG_BT_CTLR_TX_PWR_0=y
    CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL=y
    CONFIG_BT_CONN_TX_MAX=4
    
    CONFIG_BT_DATA_LEN_UPDATE=n
    CONFIG_BT_AUTO_PHY_UPDATE=n
    
    CONFIG_BT_PERIPHERAL=y
    CONFIG_BT_PERIPHERAL_PREF_MIN_INT=6
    CONFIG_BT_PERIPHERAL_PREF_MAX_INT=6
    CONFIG_BT_PERIPHERAL_PREF_LATENCY=99
    CONFIG_BT_PERIPHERAL_PREF_TIMEOUT=400
    
    CONFIG_BT_CONN_PARAM_UPDATE_TIMEOUT=1000
    
    CONFIG_BT_FILTER_ACCEPT_LIST=y
    
    CONFIG_BT_GATT_UUID16_POOL_SIZE=27
    CONFIG_BT_GATT_CHRC_POOL_SIZE=7
    CONFIG_BT_SETTINGS_CCC_STORE_ON_WRITE=y
    CONFIG_BT_SETTINGS_CCC_LAZY_LOADING=n
    
    CONFIG_BT_DIS=y
    CONFIG_BT_DIS_MANUF="Nordic Semiconductor ASA"
    CONFIG_BT_DIS_MODEL="Mouse nRF52 Desktop"
    CONFIG_BT_DIS_PNP=y
    CONFIG_BT_DIS_PNP_VID_SRC=2
    CONFIG_BT_DIS_PNP_VID=0x1915
    CONFIG_BT_DIS_PNP_PID=0x52DE
    CONFIG_BT_DIS_PNP_VER=0x0100
    
    CONFIG_BT_HIDS_INPUT_REP_MAX=1
    CONFIG_BT_HIDS_OUTPUT_REP_MAX=0
    CONFIG_BT_HIDS_FEATURE_REP_MAX=1
    CONFIG_BT_HIDS_ATTR_MAX=19
    CONFIG_BT_HIDS_DEFAULT_PERM_RW_ENCRYPT=y
    CONFIG_BT_CONN_CTX=y
    
    CONFIG_ENTROPY_CC3XX=n
    
    CONFIG_APP_EVENT_MANAGER=y
    
    ################################################################################
    
    CONFIG_ASSERT=y
    CONFIG_ASSERT_LEVEL=2
    
    CONFIG_LOG=y
    CONFIG_LOG_DEFAULT_LEVEL=2
    CONFIG_LOG_BACKEND_RTT=y
    CONFIG_LOG_BACKEND_RTT_MODE_DROP=y
    CONFIG_LOG_MODE_OVERFLOW=y
    CONFIG_LOG_PRINTK=y
    CONFIG_LOG_BUFFER_SIZE=4096
    CONFIG_LOG_BACKEND_RTT_MESSAGE_SIZE=256
    CONFIG_LOG_BACKEND_SHOW_COLOR=n
    CONFIG_LOG_BACKEND_FORMAT_TIMESTAMP=n
    CONFIG_LOG_PROCESS_THREAD_STACK_SIZE=1024
    
    CONFIG_CONSOLE=y
    CONFIG_USE_SEGGER_RTT=y
    CONFIG_SEGGER_RTT_BUFFER_SIZE_UP=4096
    CONFIG_RTT_CONSOLE=y
    CONFIG_UART_CONSOLE=n
    
    ################################################################################
    # Bootloader Configuration
    
    CONFIG_SECURE_BOOT=n
    CONFIG_BUILD_S1_VARIANT=y
    CONFIG_FW_INFO=y
    CONFIG_FW_INFO_FIRMWARE_VERSION=1
    CONFIG_SB_SIGNING_KEY_FILE="configuration/nrf52840dk_nrf52840/b0_private.pem"

  • Hi,

    I was able to build and flash nrf_desktop sample from NCS v2.0.0 without errors. You need 2 options in prj.conf. These options are CONFIG_SECURE_BOOT=n (which you already have in your prj.conf) and CONFIG_DESKTOP_CONFIG_CHANNEL_DFU_ENABLE=n. I have not modified other options.

    Best regards,
    Dejan

  • Dear Dejans

    Thank you for your suggestion.

    I tried to set CONFIG_DESKTOP_CONFIG_CHANNEL_DFU_ENABLE=n

    But I rebuilt and downloaded the program into PCA10056(V1.0.0).It can't run.

    This is my problem's core.

    Please give me some good suggestion for this problem.

    Best regards.

  • Hi,

    This is relevant part of prj.conf file which I used

    # Bootloader Configuration
    
    CONFIG_SECURE_BOOT=n
    CONFIG_BUILD_S1_VARIANT=y
    CONFIG_FW_INFO=y
    CONFIG_FW_INFO_FIRMWARE_VERSION=1
    CONFIG_SB_SIGNING_KEY_FILE="configuration/nrf52840dk_nrf52840/b0_private.pem"
    CONFIG_DESKTOP_CONFIG_CHANNEL_DFU_ENABLE=n
    



    If this does not help, please provide a log when using unmodified nRF Desktop sample and above-mentioned options in prj.conf. Additionally, please provide all the steps that you used in the build process.

    Best regards,
    Dejan

  • Dear Dejans

    The following log is build the nrf_dsektop's process.

    Building nrf_desktop
    west build --build-dir e:\NCS\my_samples\nrf_desktop\build_nrf52840 e:\NCS\my_samples\nrf_desktop --pristine --board nrf52840dk_nrf52840 -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DBOARD_ROOT:STRING="e:/NCS/my_samples/serial_lte_modem" -DCONFIG_DEBUG_OPTIMIZATIONS:STRING="y" -DCONFIG_DEBUG_THREAD_INFO:STRING="y" -DDTC_OVERLAY_FILE:STRING="e:/NCS/my_samples/nrf_desktop/configuration/nrf52840dk_nrf52840/app.overlay" -DCONF_FILE:STRING="e:/NCS/my_samples/nrf_desktop/configuration/nrf52840dk_nrf52840/prj.conf"
    
    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: E:/NCS/my_samples/nrf_desktop
    -- Found Python3: E:/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: E:/NCS/v2.0.0/zephyr/.cache
    -- Zephyr version: 3.0.99 (E:/NCS/v2.0.0/zephyr)
    -- Found west (found suitable version "0.13.1", minimum required is "0.7.1")
    -- Board: nrf52840dk_nrf52840
    -- Found host-tools: zephyr 0.14.1 (E:/NCS/toolchains/v2.0.0/opt/zephyr-sdk)
    -- Found dtc: E:/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 (E:/NCS/toolchains/v2.0.0/opt/zephyr-sdk)
    -- Found BOARD.dts: E:/NCS/v2.0.0/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
    -- Found devicetree overlay: e:/NCS/my_samples/nrf_desktop/configuration/nrf52840dk_nrf52840/app.overlay
    -- Generated zephyr.dts: E:/NCS/my_samples/nrf_desktop/build_nrf52840/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: E:/NCS/my_samples/nrf_desktop/build_nrf52840/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: E:/NCS/my_samples/nrf_desktop/build_nrf52840/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: E:/NCS/my_samples/nrf_desktop/build_nrf52840/zephyr/dts.cmake
    
    warning: SB_SIGNING_KEY_FILE (defined at E:\NCS\v2.0.0\nrf\subsys\bootloader\Kconfig:61) was
    assigned the value 'configuration/nrf52840dk_nrf52840/b0_private.pem' but got the value ''. Check
    these unsatisfied dependencies: SECURE_BOOT (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_SB_SIGNING_KEY_FILE and/or look up
    SB_SIGNING_KEY_FILE in the menuconfig/guiconfig interface. The Application Development Primer,
    Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
    helpful too.
    
    Parsing E:/NCS/my_samples/nrf_desktop/Kconfig
    Loaded configuration 'E:/NCS/v2.0.0/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig'
    Merged configuration 'e:/NCS/my_samples/nrf_desktop/configuration/nrf52840dk_nrf52840/prj.conf'
    Merged configuration 'E:/NCS/my_samples/nrf_desktop/build_nrf52840/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'E:/NCS/my_samples/nrf_desktop/build_nrf52840/zephyr/.config'
    Kconfig header saved to 'E:/NCS/my_samples/nrf_desktop/build_nrf52840/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: E:/NCS/toolchains/v2.0.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    CMake Warning at E:\NCS\v2.0.0\zephyr\CMakeLists.txt:1803 (message):
    __ASSERT() statements are globally ENABLED
    
    
    -- Found partition manager static configuration: E:/NCS/my_samples/nrf_desktop/configuration/nrf52840dk_nrf52840/pm_static.yml
    Partition 'settings_storage' is not included in the dynamic resolving since it is statically defined.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: E:/NCS/my_samples/nrf_desktop/build_nrf52840
    -- west build: building application
    [1/302] Generating include/generated/version.h
    -- Zephyr version: 3.0.99 (E:/NCS/v2.0.0/zephyr), build: v3.0.99-ncs1
    [2/302] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
    [3/302] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
    [4/302] Generating include/generated/driver-validation.h
    [5/302] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
    [6/302] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
    [7/302] Generating include/generated/offsets.h
    [8/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
    [9/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
    [10/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
    [11/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
    [12/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
    [13/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
    [14/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
    [15/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
    [16/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
    [17/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
    [18/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
    [19/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
    [20/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
    [21/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
    [22/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
    [23/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
    [24/302] Building ASM object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/common/soc_nrf_common.S.obj
    [25/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
    [26/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
    [27/302] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
    [28/302] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_base_addresses.c.obj
    [29/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/multi_heap.c.obj
    [30/302] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_enabled_instances.c.obj
    [31/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/reboot.c.obj
    [32/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
    [33/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
    [34/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
    [35/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
    [36/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
    [37/302] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
    [38/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/bluetooth/services/dis.c.obj
    [39/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_list.c.obj
    [40/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_msg.c.obj
    [41/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_backend_rtt.c.obj
    [42/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_mgmt.c.obj
    [43/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/usb/device/usb_descriptor.c.obj
    [44/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/debug/thread_info.c.obj
    [45/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/fs/nvs/nvs.c.obj
    [46/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_msg2.c.obj
    [47/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_output.c.obj
    [48/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_core.c.obj
    [49/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/state.c.obj
    [50/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/policy.c.obj
    [51/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/settings/src/settings_nvs.c.obj
    [52/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/settings/src/settings_init.c.obj
    [53/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/settings/src/settings_line.c.obj
    [54/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/usb/device/usb_device.c.obj
    [55/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/pm.c.obj
    [56/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/storage/flash_map/flash_map_default.c.obj
    [57/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/storage/flash_map/flash_map.c.obj
    [58/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/settings/src/settings_store.c.obj
    [59/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/storage/flash_map/flash_map_layout.c.obj
    [60/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/settings/src/settings.c.obj
    [61/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/usb/device/usb_transfer.c.obj
    [62/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/device.c.obj
    [63/302] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
    [64/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrf/subsys/bluetooth/conn_ctx.c.obj
    [65/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrf/subsys/caf/events/module_state_event.c.obj
    [66/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrf/subsys/caf/events/power_event.c.obj
    [67/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrf/subsys/app_event_manager/app_event_manager.c.obj
    [68/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrf/subsys/caf/events/keep_alive_event.c.obj
    [69/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrf/subsys/bluetooth/gatt_pool.c.obj
    [70/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrf/subsys/caf/events/click_event.c.obj
    [71/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrf/subsys/caf/events/ble_common_event.c.obj
    [72/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrf/subsys/caf/events/force_power_down_event.c.obj
    [73/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/modules/crypto/tinycrypt/lib/source/aes_encrypt.c.obj
    [74/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/modules/crypto/tinycrypt/lib/source/aes_decrypt.c.obj
    [75/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrf/subsys/caf/events/led_event.c.obj
    [76/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrf/subsys/caf/events/button_event.c.obj
    [77/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/modules/crypto/tinycrypt/lib/source/cmac_mode.c.obj
    [78/302] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/vector_table.S.obj
    [79/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/modules/crypto/tinycrypt/lib/source/utils.c.obj
    [80/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrf/subsys/caf/events/power_manager_event.c.obj
    [81/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_abort_zephyr.c.obj
    [82/302] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/thread_abort.c.obj
    [83/302] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/scb.c.obj
    [84/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_mutex_zephyr.c.obj
    [85/302] Building C object zephyr/CMakeFiles/zephyr.dir/E_/NCS/v2.0.0/nrf/subsys/bluetooth/services/hids.c.obj
    [86/302] Building C object modules/nrf/drivers/mpsl/clock_control/CMakeFiles/..__nrf__drivers__mpsl__clock_control.dir/nrfx_clock_mpsl.c.obj
    [87/302] Generating linker_zephyr_pre1.cmd
    [88/302] Building C object modules/nrf/drivers/hw_cc310/CMakeFiles/..__nrf__drivers__hw_cc310.dir/hw_cc310.c.obj
    [89/302] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/nrfx_glue.c.obj
    [90/302] Building C object modules/nrf/drivers/mpsl/flash_sync/CMakeFiles/..__nrf__drivers__mpsl__flash_sync.dir/flash_sync_mpsl.c.obj
    [91/302] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/E_/NCS/v2.0.0/modules/hal/nordic/nrfx/mdk/system_nrf52840.c.obj
    [92/302] Linking C static library modules\nrf\drivers\mpsl\clock_control\lib..__nrf__drivers__mpsl__clock_control.a
    [93/302] Linking C static library zephyr\libzephyr.a
    [94/302] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/E_/NCS/v2.0.0/modules/hal/nordic/nrfx/helpers/nrfx_flag32_allocator.c.obj
    [95/302] Linking C static library modules\nrf\drivers\hw_cc310\lib..__nrf__drivers__hw_cc310.a
    [96/302] Linking C static library modules\nrf\drivers\mpsl\flash_sync\lib..__nrf__drivers__mpsl__flash_sync.a
    [97/302] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/E_/NCS/v2.0.0/modules/hal/nordic/nrfx/drivers/src/nrfx_nvmc.c.obj
    [98/302] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/E_/NCS/v2.0.0/modules/hal/nordic/nrfx/drivers/src/nrfx_power.c.obj
    [99/302] Building C object modules/segger/CMakeFiles/modules__segger.dir/SEGGER_RTT_zephyr.c.obj
    [100/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/main_weak.c.obj
    [101/302] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/E_/NCS/v2.0.0/modules/hal/nordic/nrfx/drivers/src/nrfx_gpiote.c.obj
    [102/302] Building C object modules/segger/CMakeFiles/modules__segger.dir/E_/NCS/v2.0.0/modules/debug/segger/SEGGER/SEGGER_RTT.c.obj
    [103/302] Building C object CMakeFiles/app.dir/src/main.c.obj
    [104/302] Building C object CMakeFiles/app.dir/configuration/common/hid_report_desc.c.obj
    [105/302] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/E_/NCS/v2.0.0/modules/hal/nordic/nrfx/drivers/src/nrfx_pwm.c.obj
    [106/302] Building C object CMakeFiles/app.dir/src/events/ble_event.c.obj
    [107/302] Building C object CMakeFiles/app.dir/src/events/battery_event.c.obj
    [108/302] Linking C static library modules\segger\libmodules__segger.a
    [109/302] Building C object CMakeFiles/app.dir/src/events/passkey_event.c.obj
    [110/302] Building C object CMakeFiles/app.dir/src/events/motion_event.c.obj
    [111/302] Building C object CMakeFiles/app.dir/src/events/wheel_event.c.obj
    [112/302] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/E_/NCS/v2.0.0/modules/hal/nordic/nrfx/drivers/src/nrfx_usbd.c.obj
    [113/302] Building C object CMakeFiles/app.dir/src/events/selector_event.c.obj
    [114/302] Building C object CMakeFiles/app.dir/src/events/config_event.c.obj
    [115/302] Building C object CMakeFiles/app.dir/src/events/hid_event.c.obj
    [116/302] Building C object CMakeFiles/app.dir/src/hw_interface/board.c.obj
    [117/302] Building C object CMakeFiles/app.dir/src/events/hids_event.c.obj
    [118/302] Building C object CMakeFiles/app.dir/src/modules/ble_latency.c.obj
    [119/302] Building C object CMakeFiles/app.dir/src/hw_interface/motion_buttons.c.obj
    [120/302] Building C object CMakeFiles/app.dir/src/events/usb_event.c.obj
    [121/302] Linking C static library modules\hal_nordic\nrfx\libmodules__hal_nordic__nrfx.a
    [122/302] Building C object CMakeFiles/app.dir/src/modules/usb_state_pm.c.obj
    [123/302] Building C object CMakeFiles/app.dir/src/modules/info.c.obj
    [124/302] Building C object CMakeFiles/app.dir/src/modules/hid_state_pm.c.obj
    [125/302] Building C object CMakeFiles/app.dir/src/modules/led_state.c.obj
    [126/302] Building C object CMakeFiles/app.dir/src/modules/dev_descr.c.obj
    [127/302] Building C object CMakeFiles/app.dir/src/modules/bas.c.obj
    [128/302] Building C object CMakeFiles/app.dir/src/util/hwid.c.obj
    [129/302] Building C object CMakeFiles/app.dir/src/modules/ble_bond.c.obj
    [130/302] Building C object CMakeFiles/app.dir/src/modules/hid_state.c.obj
    [131/302] Building C object CMakeFiles/app.dir/src/modules/usb_state.c.obj
    [132/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/kheap.c.obj
    [133/302] Building C object CMakeFiles/app.dir/src/modules/hfclk_lock.c.obj
    [134/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj
    [135/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj
    [136/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/fatal.c.obj
    [137/302] Building C object CMakeFiles/app.dir/src/util/config_channel_transport.c.obj
    [138/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/init.c.obj
    [139/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/version.c.obj
    [140/302] Building C object CMakeFiles/app.dir/src/modules/hids.c.obj
    [141/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
    [142/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/idle.c.obj
    [143/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mem_slab.c.obj
    [144/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mailbox.c.obj
    [145/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/msg_q.c.obj
    [146/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/thread.c.obj
    [147/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/pipes.c.obj
    [148/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/queue.c.obj
    [149/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/sem.c.obj
    [150/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/xip.c.obj
    [151/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/condvar.c.obj
    [152/302] Linking C static library app\libapp.a
    [153/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/stack.c.obj
    [154/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mutex.c.obj
    [155/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/system_work_q.c.obj
    [156/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/work.c.obj
    [157/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timeout.c.obj
    [158/302] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault_s.S.obj
    [159/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mempool.c.obj
    [160/302] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/reset.S.obj
    [161/302] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fpu.c.obj
    [162/302] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/irq_init.c.obj
    [163/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timer.c.obj
    [164/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/poll.c.obj
    [165/302] Building C object zephyr/arch/common/CMakeFiles/arch__common.dir/sw_isr_common.c.obj
    [166/302] Building C object zephyr/kernel/CMakeFiles/kernel.dir/sched.c.obj
    [167/302] Generating linker_zephyr_pre0.cmd
    [168/302] Building C object zephyr/arch/common/CMakeFiles/isr_tables.dir/isr_tables.c.obj
    [169/302] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/cpu_idle.S.obj
    [170/302] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi_on_reset.S.obj
    [171/302] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/irq_manage.c.obj
    [172/302] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi.c.obj
    [173/302] Building C object zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj
    [174/302] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/prep_c.c.obj
    [175/302] Linking C static library zephyr\kernel\libkernel.a
    [176/302] Linking C static library zephyr\arch\common\libisr_tables.a
    [177/302] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj
    [178/302] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/thread.c.obj
    [179/302] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/fatal.c.obj
    [180/302] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/isr_wrapper.S.obj
    [181/302] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap.c.obj
    [182/302] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/exc_exit.S.obj
    [183/302] Building C object zephyr/soc/arm/common/cortex_m/CMakeFiles/soc__arm__common__cortex_m.dir/arm_mpu_regions.c.obj
    [184/302] Linking C static library zephyr\arch\common\libarch__common.a
    [185/302] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/atoi.c.obj
    [186/302] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoull.c.obj
    [187/302] Linking C static library zephyr\arch\arch\arm\core\aarch32\libarch__arm__core__aarch32.a
    [188/302] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/abort.c.obj
    [189/302] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtol.c.obj
    [190/302] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_core_mpu.c.obj
    [191/302] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoll.c.obj
    [192/302] Linking C static library zephyr\soc\arm\common\cortex_m\libsoc__arm__common__cortex_m.a
    [193/302] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/strtoul.c.obj
    [194/302] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_mpu.c.obj
    [195/302] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/bsearch.c.obj
    [196/302] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/qsort.c.obj
    [197/302] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/exit.c.obj
    [198/302] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strspn.c.obj
    [199/302] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/string.c.obj
    [200/302] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strstr.c.obj
    [201/302] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/string/strncasecmp.c.obj
    [202/302] Linking C static library zephyr\arch\arch\arm\core\aarch32\mpu\libarch__arm__core__aarch32__mpu.a
    [203/302] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdlib/malloc.c.obj
    [204/302] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/fprintf.c.obj
    [205/302] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/sprintf.c.obj
    [206/302] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/stdout/stdout_console.c.obj
    [207/302] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault.c.obj
    [208/302] Building C object zephyr/lib/libc/minimal/CMakeFiles/lib__libc__minimal.dir/source/time/gmtime.c.obj
    [209/302] Building C object zephyr/soc/arm/nordic_nrf/nrf52/CMakeFiles/soc__arm__nordic_nrf__nrf52.dir/soc.c.obj
    [210/302] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/pthread_common.c.obj
    [211/302] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/nanosleep.c.obj
    [212/302] Building C object zephyr/subsys/bluetooth/common/CMakeFiles/subsys__bluetooth__common.dir/log.c.obj
    [213/302] Linking C static library zephyr\arch\arch\arm\core\aarch32\cortex_m\libarch__arm__core__aarch32__cortex_m.a
    [214/302] Building C object zephyr/subsys/bluetooth/common/CMakeFiles/subsys__bluetooth__common.dir/dummy.c.obj
    [215/302] Building C object zephyr/soc/arm/nordic_nrf/nrf52/CMakeFiles/soc__arm__nordic_nrf__nrf52.dir/power.c.obj
    [216/302] Linking C static library zephyr\lib\libc\minimal\liblib__libc__minimal.a
    [217/302] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/addr.c.obj
    [218/302] Linking C static library zephyr\lib\posix\liblib__posix.a
    [219/302] Building C object zephyr/subsys/bluetooth/common/CMakeFiles/subsys__bluetooth__common.dir/rpa.c.obj
    [220/302] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/uuid.c.obj
    [221/302] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
    [222/302] Linking C static library zephyr\soc\arm\nordic_nrf\nrf52\libsoc__arm__nordic_nrf__nrf52.a
    [223/302] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/hci_common.c.obj
    [224/302] Linking C static library zephyr\subsys\bluetooth\common\libsubsys__bluetooth__common.a
    [225/302] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/buf.c.obj
    [226/302] Linking C static library zephyr\subsys\net\libsubsys__net.a
    [227/302] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/settings.c.obj
    [228/302] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/adv.c.obj
    [229/302] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/l2cap.c.obj
    [230/302] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/id.c.obj
    [231/302] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/ecc.c.obj
    [232/302] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
    [233/302] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/rtt_console.c.obj
    [234/302] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/conn.c.obj
    [235/302] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/keys.c.obj
    [236/302] Building C object zephyr/subsys/usb/device/class/hid/CMakeFiles/subsys__usb__device__class__hid.dir/core.c.obj
    [237/302] Linking C static library zephyr\subsys\random\libsubsys__random.a
    [238/302] Building C object zephyr/drivers/clock_control/CMakeFiles/drivers__clock_control.dir/clock_control_nrf.c.obj
    [239/302] Linking C static library zephyr\drivers\console\libdrivers__console.a
    [240/302] Linking C static library zephyr\subsys\usb\device\class\hid\libsubsys__usb__device__class__hid.a
    [241/302] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/att.c.obj
    [242/302] Building C object zephyr/drivers/gpio/CMakeFiles/drivers__gpio.dir/gpio_nrfx.c.obj
    [243/302] Linking C static library zephyr\drivers\clock_control\libdrivers__clock_control.a
    [244/302] Building C object zephyr/drivers/usb/device/CMakeFiles/drivers__usb__device.dir/usb_dc_nrfx.c.obj
    [245/302] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/hci_core.c.obj
    [246/302] Building C object zephyr/drivers/led/CMakeFiles/drivers__led.dir/led_pwm.c.obj
    [247/302] Building C object zephyr/drivers/pwm/CMakeFiles/drivers__pwm.dir/pwm_nrfx.c.obj
    [248/302] Building C object zephyr/drivers/hwinfo/CMakeFiles/drivers__hwinfo.dir/hwinfo_weak_impl.c.obj
    [249/302] Linking C static library zephyr\drivers\usb\device\libdrivers__usb__device.a
    [250/302] Linking C static library zephyr\drivers\gpio\libdrivers__gpio.a
    [251/302] Building C object zephyr/drivers/hwinfo/CMakeFiles/drivers__hwinfo.dir/hwinfo_nrf.c.obj
    [252/302] Building C object zephyr/drivers/entropy/CMakeFiles/drivers__entropy.dir/entropy_nrf5.c.obj
    [253/302] Linking C static library zephyr\drivers\led\libdrivers__led.a
    [254/302] Linking C static library zephyr\drivers\pwm\libdrivers__pwm.a
    [255/302] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/gatt.c.obj
    [256/302] Linking C static library zephyr\drivers\hwinfo\libdrivers__hwinfo.a
    [257/302] Building C object zephyr/drivers/flash/CMakeFiles/drivers__flash.dir/flash_page_layout.c.obj
    [258/302] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
    [259/302] Linking C static library zephyr\drivers\entropy\libdrivers__entropy.a
    [260/302] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/nrf_rtc_timer.c.obj
    [261/302] Building C object zephyr/drivers/flash/CMakeFiles/drivers__flash.dir/soc_flash_nrf.c.obj
    [262/302] Building C object zephyr/drivers/pinctrl/CMakeFiles/drivers__pinctrl.dir/common.c.obj
    [263/302] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/smp.c.obj
    [264/302] Building C object modules/nrf/lib/multithreading_lock/CMakeFiles/..__nrf__lib__multithreading_lock.dir/multithreading_lock.c.obj
    [265/302] Building C object zephyr/drivers/pinctrl/CMakeFiles/drivers__pinctrl.dir/pinctrl_nrf.c.obj
    [266/302] Linking C static library zephyr\drivers\flash\libdrivers__flash.a
    [267/302] Building C object modules/nrf/subsys/bluetooth/controller/CMakeFiles/..__nrf__subsys__bluetooth__controller.dir/crypto.c.obj
    [268/302] Linking C static library zephyr\drivers\timer\libdrivers__timer.a
    [269/302] Building C object modules/nrf/subsys/bluetooth/controller/CMakeFiles/..__nrf__subsys__bluetooth__controller.dir/hci_internal.c.obj
    [270/302] Linking C static library modules\nrf\lib\multithreading_lock\lib..__nrf__lib__multithreading_lock.a
    [271/302] Linking C static library zephyr\subsys\bluetooth\host\libsubsys__bluetooth__host.a
    [272/302] Linking C static library zephyr\drivers\pinctrl\libdrivers__pinctrl.a
    [273/302] Building C object modules/nrf/subsys/bluetooth/controller/CMakeFiles/..__nrf__subsys__bluetooth__controller.dir/ecdh.c.obj
    [274/302] Building C object modules/nrf/subsys/bluetooth/controller/CMakeFiles/..__nrf__subsys__bluetooth__controller.dir/hci_driver.c.obj
    [275/302] Building C object modules/nrf/subsys/caf/modules/CMakeFiles/..__nrf__subsys__caf__modules.dir/click_detector.c.obj
    [276/302] Building C object modules/nrf/subsys/caf/modules/CMakeFiles/..__nrf__subsys__caf__modules.dir/ble_state_pm.c.obj
    [277/302] Building C object modules/nrf/subsys/caf/modules/CMakeFiles/..__nrf__subsys__caf__modules.dir/leds.c.obj
    [278/302] Building C object modules/nrf/subsys/caf/modules/CMakeFiles/..__nrf__subsys__caf__modules.dir/settings_loader.c.obj
    [279/302] Linking C static library modules\nrf\subsys\bluetooth\controller\lib..__nrf__subsys__bluetooth__controller.a
    [280/302] Building C object modules/nrf/subsys/caf/modules/CMakeFiles/..__nrf__subsys__caf__modules.dir/ble_adv.c.obj
    [281/302] Building C object modules/nrf/subsys/mpsl/init/CMakeFiles/..__nrf__subsys__mpsl__init.dir/mpsl_init.c.obj
    [282/302] Building C object modules/nrf/subsys/caf/modules/CMakeFiles/..__nrf__subsys__caf__modules.dir/buttons.c.obj
    [283/302] Linking C static library modules\nrf\subsys\mpsl\init\lib..__nrf__subsys__mpsl__init.a
    [284/302] Building C object modules/nrf/subsys/fw_info/CMakeFiles/..__nrf__subsys__fw_info.dir/fw_info.c.obj
    [285/302] Linking C static library modules\nrf\subsys\fw_info\lib..__nrf__subsys__fw_info.a
    [286/302] Building C object modules/nrf/subsys/caf/modules/CMakeFiles/..__nrf__subsys__caf__modules.dir/ble_state.c.obj
    [287/302] Building C object modules/nrf/subsys/caf/modules/CMakeFiles/..__nrf__subsys__caf__modules.dir/power_manager.c.obj
    [288/302] Linking C static library modules\nrf\subsys\caf\modules\lib..__nrf__subsys__caf__modules.a
    [289/302] Linking C executable zephyr\zephyr_pre0.elf
    
    [290/302] Generating dev_handles.c
    [291/302] Building C object zephyr/CMakeFiles/zephyr_pre1.dir/misc/empty_file.c.obj
    [292/302] Building C object zephyr/CMakeFiles/zephyr_pre1.dir/dev_handles.c.obj
    [293/302] Linking C executable zephyr\zephyr_pre1.elf
    
    [294/302] Generating linker.cmd
    [295/302] Generating isr_tables.c, isrList.bin
    [296/302] Building C object zephyr/CMakeFiles/zephyr_final.dir/misc/empty_file.c.obj
    [297/302] Building C object zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj
    [298/302] Building C object zephyr/CMakeFiles/zephyr_final.dir/dev_handles.c.obj
    [299/302] Linking C executable zephyr\zephyr.elf
    Memory region Used Size Region Size %age Used
    FLASH: 393004 B 496 KB 77.38%
    SRAM: 44916 B 256 KB 17.13%
    IDT_LIST: 0 GB 2 KB 0.00%
    [300/302] Generating zephyr/s0.hex
    [301/302] Generating zephyr/s0_image.hex
    [302/302] Generating zephyr/merged.hex

    The following files are hex of open b0 bootloader and close b0 bootloader.

    The merged1.hex is not set any config and use the default config of nrf_desktop to build.

    You can download  merged1.hex to you PCA10056(V1.0.0) .

    Then you will find LED1 of DK is bright and your phone/PC will find a mouse device.

    This shows that the program is good running.

    merged1.hex

    The merged2.hex is off the b0 bootloader.

    I follow the way you gave the setting.

    # Bootloader Configuration
    
    CONFIG_SECURE_BOOT=n
    CONFIG_BUILD_S1_VARIANT=y
    CONFIG_FW_INFO=y
    CONFIG_FW_INFO_FIRMWARE_VERSION=1
    CONFIG_SB_SIGNING_KEY_FILE="configuration/nrf52840dk_nrf52840/b0_private.pem"
    CONFIG_DESKTOP_CONFIG_CHANNEL_DFU_ENABLE=n

    You can download merged2.hex to your PCA10056(V1.0.0).

    Then the phone/PC will not find the mouse of bluetooth and the LED1 is not bright.

    This shows that the program is not running.

    merged2.hex

    The following file is my project.You can follow my way to test it.

    nrf_desktop.zip

    Best regrads. 

Related