Zigbee Switch sample fails out of the box with "No crypto suite for Zigbee stack has been selected"

I am following these tutorials:

https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/protocols/zigbee/qsg.html

https://nrfconnect.github.io/vscode-nrf-connect/get_started/build_app_ncs.html

I have an nRF52840 Development Kit, so naturally I selected the nrf52840_nrf52840 board as the build project. I added the prj.conf file under Kconfig fragments and left the remaining stock as it was.

Then I hit build, and I get this error:

[142/432] Linking C static library modules/nrf/subsys/mpsl/init/lib..__nrf__subsys__mpsl__init.a
[143/432] Linking C static library zephyr/drivers/flash/libdrivers__flash.a
[144/432] Building C object modules/nrf/subsys/zigbee/CMakeFiles/..__nrf__subsys__zigbee.dir/osif/zb_nrf_pwr_mgmt.c.obj
[145/432] Building C object modules/nrf/subsys/zigbee/CMakeFiles/..__nrf__subsys__zigbee.dir/osif/zb_nrf_crypto.c.obj
FAILED: modules/nrf/subsys/zigbee/CMakeFiles/..__nrf__subsys__zigbee.dir/osif/zb_nrf_crypto.c.obj
ccache /opt/nordic/ncs/toolchains/4ef6631da0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DCUSTOM_IEEE802154_L2=ZIGBEE_L2 -DKERNEL -DLIBZBOSS_CONFIG_FILE=\"/opt/nordic/ncs/v2.4.1/nrfxlib/zboss/production/include/osif/libzboss_config.ed.h\" -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DMBEDTLS_USER_CONFIG_FILE=\"nrf-config-user.h\" -DNRF52840_XXAA -DNRF_802154_ACK_TIMEOUT_ENABLED=1 -DNRF_802154_CARRIER_FUNCTIONS_ENABLED=0 -DNRF_802154_CCA_CORR_LIMIT_DEFAULT=2 -DNRF_802154_CCA_CORR_THRESHOLD_DEFAULT=45 -DNRF_802154_CCA_ED_THRESHOLD_DEFAULT=45 -DNRF_802154_CCA_MODE_DEFAULT=NRF_RADIO_CCA_MODE_ED -DNRF_802154_ECB_PRIORITY=-1 -DNRF_802154_ENCRYPTION_ENABLED=0 -DNRF_802154_IE_WRITER_ENABLED=0 -DNRF_802154_INTERNAL_RADIO_IRQ_HANDLING=0 -DNRF_802154_PENDING_EXTENDED_ADDRESSES=16 -DNRF_802154_PENDING_SHORT_ADDRESSES=16 -DNRF_802154_RX_BUFFERS=16 -DNRF_802154_SECURITY_WRITER_ENABLED=0 -DNRF_802154_SWI_PRIORITY=1 -DNRF_802154_TX_STARTED_NOTIFY_ENABLED=1 -DNRF_802154_USE_RAW_API=1 -DUSE_PARTITION_MANAGER=1 -DZB_ED_ROLE -DZIGBEE_L2=ZIGBEE -D__PROGRAM_START -D__ZEPHYR__=1 -I/opt/nordic/ncs/v2.4.1/nrf/drivers/mpsl/clock_control -I/opt/nordic/ncs/v2.4.1/zephyr/include -Izephyr/include/generated -I/opt/nordic/ncs/v2.4.1/zephyr/soc/arm/nordic_nrf/nrf52 -I/opt/nordic/ncs/v2.4.1/zephyr/soc/arm/nordic_nrf/common/. -I/opt/nordic/ncs/v2.4.1/nrf/include -I/opt/nordic/ncs/v2.4.1/nrf/lib/multithreading_lock/. -I/opt/nordic/ncs/v2.4.1/zephyr/drivers/flash -I/opt/nordic/ncs/v2.4.1/nrf/tests/include -I/opt/nordic/ncs/v2.4.1/modules/hal/cmsis/CMSIS/Core/Include -I/opt/nordic/ncs/v2.4.1/modules/hal/nordic/nrfx -I/opt/nordic/ncs/v2.4.1/modules/hal/nordic/nrfx/drivers/include -I/opt/nordic/ncs/v2.4.1/modules/hal/nordic/nrfx/mdk -I/opt/nordic/ncs/v2.4.1/zephyr/modules/hal_nordic/nrfx/. -I/opt/nordic/ncs/v2.4.1/modules/debug/segger/SEGGER -I/opt/nordic/ncs/v2.4.1/modules/debug/segger/Config -I/opt/nordic/ncs/v2.4.1/zephyr/modules/segger/. -I/opt/nordic/ncs/v2.4.1/nrfxlib/mpsl/include -I/opt/nordic/ncs/v2.4.1/nrfxlib/mpsl/include/protocol -I/opt/nordic/ncs/v2.4.1/nrfxlib/nrf_802154/driver/include -I/opt/nordic/ncs/v2.4.1/nrfxlib/nrf_802154/sl/include -Imodules/nrfxlib/nrfxlib/nrf_security/src/include/generated -I/opt/nordic/ncs/v2.4.1/nrfxlib/nrf_security/include -I/opt/nordic/ncs/v2.4.1/nrfxlib/nrf_security/../crypto/nrf_oberon/core/include -I/opt/nordic/ncs/v2.4.1/nrfxlib/nrf_security/../crypto/nrf_oberon/core/library -I/opt/nordic/ncs/v2.4.1/modules/crypto/mbedtls/include -I/opt/nordic/ncs/v2.4.1/modules/crypto/mbedtls/library -I/opt/nordic/ncs/v2.4.1/nrfxlib/nrf_security/../crypto/nrf_oberon/include -I/opt/nordic/ncs/v2.4.1/nrfxlib/nrf_security/../crypto/nrf_oberon/include/mbedtls -I/opt/nordic/ncs/v2.4.1/nrfxlib/nrf_security/../crypto/nrf_oberon/core/oberon/drivers -I/opt/nordic/ncs/v2.4.1/nrfxlib/crypto/nrf_oberon/include/mbedtls -I/opt/nordic/ncs/v2.4.1/nrfxlib/crypto/nrf_oberon/include -I/opt/nordic/ncs/v2.4.1/nrf/subsys/zigbee/osif -I/opt/nordic/ncs/v2.4.1/nrfxlib/zboss/production/src/zb_error -I/opt/nordic/ncs/v2.4.1/nrfxlib/zboss/production/include/addons -I/opt/nordic/ncs/v2.4.1/nrfxlib/zboss/production/include -I/opt/nordic/ncs/v2.4.1/nrfxlib/zboss/production/include/zcl -I/opt/nordic/ncs/v2.4.1/nrfxlib/zboss/production/include/ha -I/opt/nordic/ncs/v2.4.1/nrfxlib/zboss/production/include/se -I/opt/nordic/ncs/v2.4.1/nrfxlib/zboss/production/include/osif -isystem /opt/nordic/ncs/v2.4.1/zephyr/lib/libc/minimal/include -isystem /opt/nordic/ncs/toolchains/4ef6631da0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include -isystem /opt/nordic/ncs/toolchains/4ef6631da0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include-fixed -isystem /opt/nordic/ncs/v2.4.1/nrfxlib/crypto/nrf_cc310_platform/include -fno-strict-aliasing -Os -imacros /Users/morten/Desktop/zigbee-switch/light_switch/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfpu=fpv4-sp-d16 -mfloat-abi=hard --sysroot=/opt/nordic/ncs/toolchains/4ef6631da0/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros /opt/nordic/ncs/v2.4.1/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=/Users/morten/Desktop/zigbee-switch/light_switch=CMAKE_SOURCE_DIR -fmacro-prefix-map=/opt/nordic/ncs/v2.4.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/opt/nordic/ncs/v2.4.1=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -Wno-packed-bitfield-compat -MD -MT modules/nrf/subsys/zigbee/CMakeFiles/..__nrf__subsys__zigbee.dir/osif/zb_nrf_crypto.c.obj -MF modules/nrf/subsys/zigbee/CMakeFiles/..__nrf__subsys__zigbee.dir/osif/zb_nrf_crypto.c.obj.d -o modules/nrf/subsys/zigbee/CMakeFiles/..__nrf__subsys__zigbee.dir/osif/zb_nrf_crypto.c.obj -c /opt/nordic/ncs/v2.4.1/nrf/subsys/zigbee/osif/zb_nrf_crypto.c
/opt/nordic/ncs/v2.4.1/nrf/subsys/zigbee/osif/zb_nrf_crypto.c:18:2: error: #error No crypto suite for Zigbee stack has been selected
18 | #error No crypto suite for Zigbee stack has been selected
| ^~~~~
/opt/nordic/ncs/v2.4.1/nrf/subsys/zigbee/osif/zb_nrf_crypto.c: In function 'zb_osif_aes128_hw_encrypt':
/opt/nordic/ncs/v2.4.1/nrf/subsys/zigbee/osif/zb_nrf_crypto.c:112:9: warning: implicit declaration of function 'encrypt_aes' [-Wimplicit-function-declaration]
112 | encrypt_aes(key, msg, c);
| ^~~~~~~~~~~
[146/432] Building C object modules/nrf/subsys/zigbee/CMakeFiles/..__nrf__subsys__zigbee.dir/osif/zb_nrf_led_button.c.obj
[147/432] Building C object modules/nrf/subsys/zigbee/CMakeFiles/..__nrf__subsys__zigbee.dir/osif/zb_nrf_platform.c.obj
[148/432] Building C object modules/nrf/subsys/zigbee/CMakeFiles/..__nrf__subsys__zigbee.dir/osif/zb_nrf_serial.c.obj
[149/432] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_pkt.c.obj
[150/432] Building C object modules/nrf/subsys/zigbee/CMakeFiles/..__nrf__subsys__zigbee.dir/osif/zb_nrf_logger.c.obj
[151/432] Building C object zephyr/drivers/ieee802154/CMakeFiles/drivers__ieee802154.dir/ieee802154_nrf5.c.obj
[152/432] Building C object modules/nrf/subsys/zigbee/CMakeFiles/..__nrf__subsys__zigbee.dir/osif/zb_nrf_nvram.c.obj
[153/432] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_context.c.obj
[154/432] Building C object modules/nrf/subsys/zigbee/CMakeFiles/..__nrf__subsys__zigbee.dir/osif/zb_nrf_transceiver.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/4ef6631da0/bin/cmake --build /Users/morten/Desktop/zigbee-switch/light_switch/build

I have not made any other changes to the project.

Any clue how to fix?

Parents
  • Hi,

    I'm facing the same issue on a NRF5340 DK. I've selected NRF5340dk_NRF5340_cpuapp.

    I built the network_coordinator sample. Left everything default. I tried with Use build system default configuration and prj.conf as Configuration setting. I've tried with SDK version v2.5.0 and v2.3.0. I can't select any kconfig fragments.

    I also tried the light_bulb with the same results.

    I noticed the following warnings:

    warning: CRYPTO_NRF_ECB (defined at drivers/crypto/Kconfig.nrf_ecb:6) was assigned the value 'y' but
    got the value 'n'. Check these unsatisfied dependencies: DT_HAS_NORDIC_NRF_ECB_ENABLED (=n). See
    docs.zephyrproject.org/.../kconfig.html and/or look up
    CRYPTO_NRF_ECB 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.

    warning: Experimental symbol ZIGBEE is enabled.

    CMake Warning at C:/ncs/v2.5.0/zephyr/CMakeLists.txt:893 (message):
    No SOURCES given to Zephyr library: drivers__crypto

    C:/ncs/v2.5.0/nrf/subsys/zigbee/osif/zb_nrf_crypto.c:18:2: error: #error No crypto suite for Zigbee stack has been selected
    18 | #error No crypto suite for Zigbee stack has been selected
    | ^~~~~
    C:/ncs/v2.5.0/nrf/subsys/zigbee/osif/zb_nrf_crypto.c: In function 'zb_osif_aes128_hw_encrypt':
    C:/ncs/v2.5.0/nrf/subsys/zigbee/osif/zb_nrf_crypto.c:112:9: warning: implicit declaration of function 'encrypt_aes' [-Wimplicit-function-declaration]
    112 | encrypt_aes(key, msg, c);

    added some extra logging:

    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/Users/[firstname].[lastname]/Documents/[folder1]/zigbee/network_coordinator
    -- CMake version: 3.20.5
    -- Using NCS Toolchain 2.5.20231017.848171396279 for building. (C:/ncs/toolchains/c57af46cb7/cmake)
    CMake Deprecation Warning at C:/ncs/v2.5.0/zephyr/cmake/modules/FindDeprecated.cmake:121 (message):
    'PYTHON_PREFER' variable is deprecated. Please use Python3_EXECUTABLE
    instead.
    Call Stack (most recent call first):
    C:/ncs/v2.5.0/zephyr/cmake/modules/python.cmake:16 (find_package)
    C:/ncs/v2.5.0/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
    C:/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
    C:/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
    CMakeLists.txt:9 (find_package)
    
    -- Found Python3: C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe (found suitable version "3.8.2", minimum required is "3.8") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.5.0/zephyr/.cache
    -- Zephyr version: 3.4.99 (C:/ncs/v2.5.0/zephyr)
    -- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
    -- Board: nrf5340dk_nrf5340_cpuapp
    -- Found host-tools: zephyr 0.16.1 (C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.1 (C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/c57af46cb7/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: C:/ncs/v2.5.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
    -- Generated zephyr.dts: C:/Users/[firstname].[lastname]/Documents/[folder1]/zigbee/network_coordinator/build_prjcnf/network_coordinator/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/Users/[firstname].[lastname]/Documents/[folder1]/zigbee/network_coordinator/build_prjcnf/network_coordinator/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/Users/[firstname].[lastname]/Documents/[folder1]/zigbee/network_coordinator/build_prjcnf/network_coordinator/zephyr/dts.cmake
    Parsing C:/ncs/v2.5.0/zephyr/Kconfig

    some additional logging:

    Loaded configuration 'C:/ncs/v2.5.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig'
    Merged configuration 'c:/Users/[firstname].[lastname]/Documents/[folder1]/zigbee/network_coordinator/prj.conf'
    Merged configuration 'C:/Users/[firstname].[lastname]/Documents/[folder1]/zigbee/network_coordinator/build_sysdef/network_coordinator/zephyr/.config.sysbuild'
    Configuration saved to 'C:/Users/[firstname].[lastname]/Documents/[folder1]/zigbee/network_coordinator/build_sysdef/network_coordinator/zephyr/.config'
    Kconfig header saved to 'C:/Users/[firstname].[lastname]/Documents/[folder1]/zigbee/network_coordinator/build_sysdef/network_coordinator/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- libmetal version: 1.4.0 (C:/Users/[firstname].[lastname]/Documents/[folder1]/zigbee/network_coordinator)
    -- Build type:
    -- Host: Windows/AMD64
    -- Target: Generic/arm
    -- Machine: arm
    -- Looking for include file stdatomic.h
    -- Looking for include file stdatomic.h - found
    -- open-amp version: 1.4.0 (C:/ncs/v2.5.0/modules/lib/open-amp/open-amp)
    -- Host: Windows/AMD64
    -- Target: Generic/arm
    -- Machine: arm
    -- C_FLAGS : -Wall -Wextra
    -- Looking for include file fcntl.h
    -- Looking for include file fcntl.h - found
    CMake Warning at C:/ncs/v2.5.0/zephyr/CMakeLists.txt:893 (message):
    No SOURCES given to Zephyr library: drivers__crypto
    
    Excluding target from build.
    
    
    CMake Warning at C:/ncs/v2.5.0/zephyr/CMakeLists.txt:1958 (message):
    __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/[firstname].[lastname]/Documents/[folder1]/zigbee/network_coordinator/build_sysdef/network_coordinator
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/[firstname].[lastname]/Documents/[folder1]/zigbee/network_coordinator/build_sysdef
    -- west build: building application
    [2/304] Generating include/generated/version.h
    -- Zephyr version: 3.4.99 (C:/ncs/v2.5.0/zephyr), build: v3.4.99-ncs1
    [78/304] Building C object modules/nrf/subsys/zigbee/CMakeFiles/..__nrf__subsys__zigbee.dir/osif/zb_nrf_crypto.c.obj
    FAILED: modules/nrf/subsys/zigbee/CMakeFiles/..__nrf__subsys__zigbee.dir/osif/zb_nrf_crypto.c.obj
    C:\ncs\toolchains\c57af46cb7\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DCUSTOM_IEEE802154_L2=ZIGBEE_L2 -DKERNEL -DLIBZBOSS_CONFIG_FILE=\"C:/ncs/v2.5.0/nrfxlib/zboss/production/include/osif/libzboss_config.h\" -DNRF5340_XXAA_APPLICATION -DNRF_802154_ACK_TIMEOUT_ENABLED=1 -DNRF_802154_CARRIER_FUNCTIONS_ENABLED=0 -DNRF_802154_ECB_PRIORITY=-1 -DNRF_802154_ENCRYPTION_ENABLED=0 -DNRF_802154_ENERGY_DETECTED_VERSION=1 -DNRF_802154_IE_WRITER_ENABLED=0 -DNRF_802154_INTERNAL_RADIO_IRQ_HANDLING=0 -DNRF_802154_PENDING_EXTENDED_ADDRESSES="" -DNRF_802154_PENDING_SHORT_ADDRESSES="" -DNRF_802154_RX_BUFFERS=16 -DNRF_802154_SECURITY_WRITER_ENABLED=0 -DNRF_802154_SERIALIZATION_HOST=1 -DNRF_802154_SWI_PRIORITY=1 -DNRF_802154_TX_STARTED_NOTIFY_ENABLED=1 -DNRF_802154_USE_RAW_API=1 -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DPICOLIBC_DOUBLE_PRINTF_SCANF -DUSE_PARTITION_MANAGER=1 -DZIGBEE_L2=ZIGBEE -D_FORTIFY_SOURCE=1 -D_POSIX_C_SOURCE=200809 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v2.5.0/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/nrf53 -IC:/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.5.0/nrf/include -IC:/ncs/v2.5.0/nrf/tests/include -IC:/ncs/v2.5.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.5.0/zephyr/modules/cmsis/. -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.5.0/zephyr/modules/hal_nordic/nrfx/. -Imodules/libmetal/libmetal/lib/include -IC:/ncs/v2.5.0/modules/lib/open-amp/open-amp/lib/include -IC:/ncs/v2.5.0/nrfxlib/nrf_802154/serialization/include -IC:/ncs/v2.5.0/nrfxlib/nrf_802154/serialization/include/platform -IC:/ncs/v2.5.0/nrfxlib/nrf_802154/serialization/include/serialization -IC:/ncs/v2.5.0/nrfxlib/nrf_802154/common/include -IC:/ncs/v2.5.0/nrf/subsys/zigbee/osif -IC:/ncs/v2.5.0/nrfxlib/zboss/production/src/zb_error -IC:/ncs/v2.5.0/nrfxlib/zboss/production/include/addons -IC:/ncs/v2.5.0/nrfxlib/zboss/production/include -IC:/ncs/v2.5.0/nrfxlib/zboss/production/include/zcl -IC:/ncs/v2.5.0/nrfxlib/zboss/production/include/ha -IC:/ncs/v2.5.0/nrfxlib/zboss/production/include/se -IC:/ncs/v2.5.0/nrfxlib/zboss/production/include/osif -isystem C:/ncs/v2.5.0/nrfxlib/crypto/nrf_cc312_platform/include -fno-strict-aliasing -Os -imacros C:/Users/[firstname].[lastname]/Documents/[folder1]/zigbee/network_coordinator/build_sysdef/network_coordinator/zephyr/include/generated/autoconf.h -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mfp16-format=ieee --sysroot=C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.5.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/Users/[firstname].[lastname]/Documents/[folder1]/zigbee/network_coordinator=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.5.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.5.0=WEST_TOPDIR -ffunction-sections -fdata-sections --specs=picolibc.specs -std=c99 -Wno-packed-bitfield-compat -MD -MT modules/nrf/subsys/zigbee/CMakeFiles/..__nrf__subsys__zigbee.dir/osif/zb_nrf_crypto.c.obj -MF modules\nrf\subsys\zigbee\CMakeFiles\..__nrf__subsys__zigbee.dir\osif\zb_nrf_crypto.c.obj.d -o modules/nrf/subsys/zigbee/CMakeFiles/..__nrf__subsys__zigbee.dir/osif/zb_nrf_crypto.c.obj -c C:/ncs/v2.5.0/nrf/subsys/zigbee/osif/zb_nrf_crypto.c
    C:/ncs/v2.5.0/nrf/subsys/zigbee/osif/zb_nrf_crypto.c:18:2: error: #error No crypto suite for Zigbee stack has been selected
    18 | #error No crypto suite for Zigbee stack has been selected

    Hope it helps to identify the problem

    Kind regards,
    Vera.

Reply
  • Hi,

    I'm facing the same issue on a NRF5340 DK. I've selected NRF5340dk_NRF5340_cpuapp.

    I built the network_coordinator sample. Left everything default. I tried with Use build system default configuration and prj.conf as Configuration setting. I've tried with SDK version v2.5.0 and v2.3.0. I can't select any kconfig fragments.

    I also tried the light_bulb with the same results.

    I noticed the following warnings:

    warning: CRYPTO_NRF_ECB (defined at drivers/crypto/Kconfig.nrf_ecb:6) was assigned the value 'y' but
    got the value 'n'. Check these unsatisfied dependencies: DT_HAS_NORDIC_NRF_ECB_ENABLED (=n). See
    docs.zephyrproject.org/.../kconfig.html and/or look up
    CRYPTO_NRF_ECB 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.

    warning: Experimental symbol ZIGBEE is enabled.

    CMake Warning at C:/ncs/v2.5.0/zephyr/CMakeLists.txt:893 (message):
    No SOURCES given to Zephyr library: drivers__crypto

    C:/ncs/v2.5.0/nrf/subsys/zigbee/osif/zb_nrf_crypto.c:18:2: error: #error No crypto suite for Zigbee stack has been selected
    18 | #error No crypto suite for Zigbee stack has been selected
    | ^~~~~
    C:/ncs/v2.5.0/nrf/subsys/zigbee/osif/zb_nrf_crypto.c: In function 'zb_osif_aes128_hw_encrypt':
    C:/ncs/v2.5.0/nrf/subsys/zigbee/osif/zb_nrf_crypto.c:112:9: warning: implicit declaration of function 'encrypt_aes' [-Wimplicit-function-declaration]
    112 | encrypt_aes(key, msg, c);

    added some extra logging:

    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/Users/[firstname].[lastname]/Documents/[folder1]/zigbee/network_coordinator
    -- CMake version: 3.20.5
    -- Using NCS Toolchain 2.5.20231017.848171396279 for building. (C:/ncs/toolchains/c57af46cb7/cmake)
    CMake Deprecation Warning at C:/ncs/v2.5.0/zephyr/cmake/modules/FindDeprecated.cmake:121 (message):
    'PYTHON_PREFER' variable is deprecated. Please use Python3_EXECUTABLE
    instead.
    Call Stack (most recent call first):
    C:/ncs/v2.5.0/zephyr/cmake/modules/python.cmake:16 (find_package)
    C:/ncs/v2.5.0/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
    C:/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
    C:/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
    CMakeLists.txt:9 (find_package)
    
    -- Found Python3: C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe (found suitable version "3.8.2", minimum required is "3.8") found components: Interpreter
    -- Cache files will be written to: C:/ncs/v2.5.0/zephyr/.cache
    -- Zephyr version: 3.4.99 (C:/ncs/v2.5.0/zephyr)
    -- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
    -- Board: nrf5340dk_nrf5340_cpuapp
    -- Found host-tools: zephyr 0.16.1 (C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.1 (C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/c57af46cb7/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: C:/ncs/v2.5.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
    -- Generated zephyr.dts: C:/Users/[firstname].[lastname]/Documents/[folder1]/zigbee/network_coordinator/build_prjcnf/network_coordinator/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/Users/[firstname].[lastname]/Documents/[folder1]/zigbee/network_coordinator/build_prjcnf/network_coordinator/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/Users/[firstname].[lastname]/Documents/[folder1]/zigbee/network_coordinator/build_prjcnf/network_coordinator/zephyr/dts.cmake
    Parsing C:/ncs/v2.5.0/zephyr/Kconfig

    some additional logging:

    Loaded configuration 'C:/ncs/v2.5.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig'
    Merged configuration 'c:/Users/[firstname].[lastname]/Documents/[folder1]/zigbee/network_coordinator/prj.conf'
    Merged configuration 'C:/Users/[firstname].[lastname]/Documents/[folder1]/zigbee/network_coordinator/build_sysdef/network_coordinator/zephyr/.config.sysbuild'
    Configuration saved to 'C:/Users/[firstname].[lastname]/Documents/[folder1]/zigbee/network_coordinator/build_sysdef/network_coordinator/zephyr/.config'
    Kconfig header saved to 'C:/Users/[firstname].[lastname]/Documents/[folder1]/zigbee/network_coordinator/build_sysdef/network_coordinator/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38")
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- libmetal version: 1.4.0 (C:/Users/[firstname].[lastname]/Documents/[folder1]/zigbee/network_coordinator)
    -- Build type:
    -- Host: Windows/AMD64
    -- Target: Generic/arm
    -- Machine: arm
    -- Looking for include file stdatomic.h
    -- Looking for include file stdatomic.h - found
    -- open-amp version: 1.4.0 (C:/ncs/v2.5.0/modules/lib/open-amp/open-amp)
    -- Host: Windows/AMD64
    -- Target: Generic/arm
    -- Machine: arm
    -- C_FLAGS : -Wall -Wextra
    -- Looking for include file fcntl.h
    -- Looking for include file fcntl.h - found
    CMake Warning at C:/ncs/v2.5.0/zephyr/CMakeLists.txt:893 (message):
    No SOURCES given to Zephyr library: drivers__crypto
    
    Excluding target from build.
    
    
    CMake Warning at C:/ncs/v2.5.0/zephyr/CMakeLists.txt:1958 (message):
    __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/[firstname].[lastname]/Documents/[folder1]/zigbee/network_coordinator/build_sysdef/network_coordinator
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/[firstname].[lastname]/Documents/[folder1]/zigbee/network_coordinator/build_sysdef
    -- west build: building application
    [2/304] Generating include/generated/version.h
    -- Zephyr version: 3.4.99 (C:/ncs/v2.5.0/zephyr), build: v3.4.99-ncs1
    [78/304] Building C object modules/nrf/subsys/zigbee/CMakeFiles/..__nrf__subsys__zigbee.dir/osif/zb_nrf_crypto.c.obj
    FAILED: modules/nrf/subsys/zigbee/CMakeFiles/..__nrf__subsys__zigbee.dir/osif/zb_nrf_crypto.c.obj
    C:\ncs\toolchains\c57af46cb7\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DCUSTOM_IEEE802154_L2=ZIGBEE_L2 -DKERNEL -DLIBZBOSS_CONFIG_FILE=\"C:/ncs/v2.5.0/nrfxlib/zboss/production/include/osif/libzboss_config.h\" -DNRF5340_XXAA_APPLICATION -DNRF_802154_ACK_TIMEOUT_ENABLED=1 -DNRF_802154_CARRIER_FUNCTIONS_ENABLED=0 -DNRF_802154_ECB_PRIORITY=-1 -DNRF_802154_ENCRYPTION_ENABLED=0 -DNRF_802154_ENERGY_DETECTED_VERSION=1 -DNRF_802154_IE_WRITER_ENABLED=0 -DNRF_802154_INTERNAL_RADIO_IRQ_HANDLING=0 -DNRF_802154_PENDING_EXTENDED_ADDRESSES="" -DNRF_802154_PENDING_SHORT_ADDRESSES="" -DNRF_802154_RX_BUFFERS=16 -DNRF_802154_SECURITY_WRITER_ENABLED=0 -DNRF_802154_SERIALIZATION_HOST=1 -DNRF_802154_SWI_PRIORITY=1 -DNRF_802154_TX_STARTED_NOTIFY_ENABLED=1 -DNRF_802154_USE_RAW_API=1 -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DPICOLIBC_DOUBLE_PRINTF_SCANF -DUSE_PARTITION_MANAGER=1 -DZIGBEE_L2=ZIGBEE -D_FORTIFY_SOURCE=1 -D_POSIX_C_SOURCE=200809 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v2.5.0/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/nrf53 -IC:/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.5.0/nrf/include -IC:/ncs/v2.5.0/nrf/tests/include -IC:/ncs/v2.5.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.5.0/zephyr/modules/cmsis/. -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.5.0/zephyr/modules/hal_nordic/nrfx/. -Imodules/libmetal/libmetal/lib/include -IC:/ncs/v2.5.0/modules/lib/open-amp/open-amp/lib/include -IC:/ncs/v2.5.0/nrfxlib/nrf_802154/serialization/include -IC:/ncs/v2.5.0/nrfxlib/nrf_802154/serialization/include/platform -IC:/ncs/v2.5.0/nrfxlib/nrf_802154/serialization/include/serialization -IC:/ncs/v2.5.0/nrfxlib/nrf_802154/common/include -IC:/ncs/v2.5.0/nrf/subsys/zigbee/osif -IC:/ncs/v2.5.0/nrfxlib/zboss/production/src/zb_error -IC:/ncs/v2.5.0/nrfxlib/zboss/production/include/addons -IC:/ncs/v2.5.0/nrfxlib/zboss/production/include -IC:/ncs/v2.5.0/nrfxlib/zboss/production/include/zcl -IC:/ncs/v2.5.0/nrfxlib/zboss/production/include/ha -IC:/ncs/v2.5.0/nrfxlib/zboss/production/include/se -IC:/ncs/v2.5.0/nrfxlib/zboss/production/include/osif -isystem C:/ncs/v2.5.0/nrfxlib/crypto/nrf_cc312_platform/include -fno-strict-aliasing -Os -imacros C:/Users/[firstname].[lastname]/Documents/[folder1]/zigbee/network_coordinator/build_sysdef/network_coordinator/zephyr/include/generated/autoconf.h -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mfp16-format=ieee --sysroot=C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.5.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/Users/[firstname].[lastname]/Documents/[folder1]/zigbee/network_coordinator=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.5.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.5.0=WEST_TOPDIR -ffunction-sections -fdata-sections --specs=picolibc.specs -std=c99 -Wno-packed-bitfield-compat -MD -MT modules/nrf/subsys/zigbee/CMakeFiles/..__nrf__subsys__zigbee.dir/osif/zb_nrf_crypto.c.obj -MF modules\nrf\subsys\zigbee\CMakeFiles\..__nrf__subsys__zigbee.dir\osif\zb_nrf_crypto.c.obj.d -o modules/nrf/subsys/zigbee/CMakeFiles/..__nrf__subsys__zigbee.dir/osif/zb_nrf_crypto.c.obj -c C:/ncs/v2.5.0/nrf/subsys/zigbee/osif/zb_nrf_crypto.c
    C:/ncs/v2.5.0/nrf/subsys/zigbee/osif/zb_nrf_crypto.c:18:2: error: #error No crypto suite for Zigbee stack has been selected
    18 | #error No crypto suite for Zigbee stack has been selected

    Hope it helps to identify the problem

    Kind regards,
    Vera.

Children
Related