Zigbee FOTA with nrf52840 DK sample

I'm having 52840-DK boards 3 and installed vscode,nrfsdk v2.2.0 and v2.8.0. i want to explore how to use FOTA for zigbee. are there any sample available to make it work and explore.

Parents Reply Children
  • I installed NCS v2.9.0 like mentioned in this link install Zigbee R23 add-on. When i try to build the code, i am getting the below errors. Could you help me to solve this error?

    C:/ncs/workspace/ncs-zigbee/subsys/lib/zigbee_fota/src/dfu_multi_target.c:74:25: error: 'CONFIG_UPDATEABLE_IMAGE_NUMBER' undeclared (first use in this function); did you mean 'CONFIG_MCUBOOT_MCUBOOT_I
    MAGE_NUMBER'?
    74 | if (image_id >= CONFIG_UPDATEABLE_IMAGE_NUMBER) {
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    | CONFIG_MCUBOOT_MCUBOOT_IMAGE_NUMBER
    C:/ncs/workspace/ncs-zigbee/subsys/lib/zigbee_fota/src/dfu_multi_target.c:74:25: note: each undeclared identifier is reported only once for each function it appears in
    C:/ncs/workspace/ncs-zigbee/subsys/lib/zigbee_fota/src/dfu_multi_target.c: In function 'dfu_multi_target_get_version':
    C:/ncs/workspace/ncs-zigbee/subsys/lib/zigbee_fota/src/dfu_multi_target.c:133:41: error: 'PM_MCUBOOT_PRIMARY_ID' undeclared (first use in this function)
    133 | int err = boot_read_bank_header(PM_MCUBOOT_PRIMARY_ID,
    | ^~~~~~~~~~~~~~~~~~~~~
    [290/432] Building C object modules/nrf/lib/multithreading_lock/CMakeFiles/..__nrf__lib__multith[291/432] Building C object modules/nrf/lib/fatal_error/CMakeFiles/..__nrf__lib__fatal_error.dir[294/432] Building C object modules/nrf/lib/dk_buttons_and_leds/CMakeFiles/..__nrf__lib__dk_butt[295/432] Building C object modules/nrf/subsys/nrf_security/src/zephyr/CMakeFiles/mbedtls_zephyr[297/432] Building C object modules/ncs-zigbee/subsys/lib/zigbee_app_utils/CMakeFiles/..__ncs-zi[298/432] Linking C static library modules\ncs-zigbee\lib\zboss\src\libzboss-sources.a
    ninja: build stopped: subcommand failed.
    FAILED: _sysbuild/sysbuild/images/light_switch-prefix/src/light_switch-stamp/light_switch-build C:/ncs/workspace/ncs-zigbee/samples/light_switch/build/_sysbuild/sysbuild/images/light_switch-prefix/src
    /light_switch-stamp/light_switch-build
    cmd.exe /C "cd /D C:\ncs\workspace\ncs-zigbee\samples\light_switch\build\light_switch && C:\ncs\toolchains\b620d30767\opt\bin\cmake.exe --build ."
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\b620d30767\opt\bin\cmake.EXE' --build C:/ncs/workspace/ncs-zigbee/samples/light_switch/build

  • Hi, 

    How do you enable the Zigbee FOTA? Could you refer to the activating optional extensions section?
      

    Regards,
    Amanda H.

  • Thank you for the information. With this build configuration, I was able to successfully build the Zigbee client code without any errors. However, I’m unable to find the Zigbee server code for the nRF5 SDK. Could you please share the link to the server code if available?

  • Initially, we would like to experiment using a PC tool as the Zigbee server. Is there any Zigbee PC tool available from Nordic for this purpose?

Related