Hi - I am using NRF SDK v.2.3.0 on an Apple M1 Max - OS: 13.3.1 (22E261) in VS Code. I've installed the SDK and toolchain using the NRF Connect desktop app.
I can successfully build as a standalone app the Matter template sample.
However, if i try to simply open the template.zap file using the ZAP tool, NOT MAKE ANY CHANGES TO IT, save it, and generate the zap-generated files as described here (but without adding any new endpoints or clusters), then the build fails as seen below.
I experience similar problems when I try to add a new endpoint and cluster, but clearly the problem exists before doing so.
I welcome your advice and guidance on how to resolve.
Thanks! Dan.
* Executing task: nRF Connect: Build [pristine]: wb-template/build (active) Building wb-template /bin/sh -c west build --build-dir /Users/ydr/dev/nordic/wb-template/build /Users/ydr/dev/nordic/wb-template --pristine --board nrf5340dk_nrf5340_cpuapp -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DBOARD_ROOT:STRING="/Users/ydr/dev/nordic/wb-template" -DDTC_OVERLAY_FILE:STRING="/Users/ydr/dev/nordic/wb-template/boards/nrf5340dk_nrf5340_cpuapp.overlay" -DCONFIG_DEBUG_OPTIMIZATIONS:STRING="y" -DCONFIG_DEBUG_THREAD_INFO:STRING="y" -DCONF_FILE:STRING="/Users/ydr/dev/nordic/wb-template/prj.conf" -- west build: generating a build system Loading Zephyr default modules (Zephyr base). -- Application: /Users/ydr/dev/nordic/wb-template -- Found Python3: /opt/nordic/ncs/toolchains/v2.3.0/bin/python3.9 (found suitable exact version "3.9.6") found components: Interpreter -- Cache files will be written to: /Users/ydr/Library/Caches/zephyr -- Zephyr version: 3.2.99 (/opt/nordic/ncs/v2.3.0/zephyr) -- Found west (found suitable version "0.14.0", minimum required is "0.7.1") -- Board: nrf5340dk_nrf5340_cpuapp -- Found host-tools: zephyr 0.15.2 (/opt/nordic/ncs/toolchains/v2.3.0/opt/zephyr-sdk) -- Found toolchain: zephyr 0.15.2 (/opt/nordic/ncs/toolchains/v2.3.0/opt/zephyr-sdk) -- Found Dtc: /opt/nordic/ncs/toolchains/v2.3.0/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6") -- Found BOARD.dts: /opt/nordic/ncs/v2.3.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts -- Found devicetree overlay: /Users/ydr/dev/nordic/wb-template/boards/nrf5340dk_nrf5340_cpuapp.overlay -- Generated zephyr.dts: /Users/ydr/dev/nordic/wb-template/build/zephyr/zephyr.dts -- Generated devicetree_generated.h: /Users/ydr/dev/nordic/wb-template/build/zephyr/include/generated/devicetree_generated.h -- Including generated dts.cmake file: /Users/ydr/dev/nordic/wb-template/build/zephyr/dts.cmake Parsing /Users/ydr/dev/nordic/wb-template/Kconfig Loaded configuration '/opt/nordic/ncs/v2.3.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig' Merged configuration '/Users/ydr/dev/nordic/wb-template/prj.conf' Merged configuration '/Users/ydr/dev/nordic/wb-template/build/zephyr/misc/generated/extra_kconfig_options.conf' Configuration saved to '/Users/ydr/dev/nordic/wb-template/build/zephyr/.config' Kconfig header saved to '/Users/ydr/dev/nordic/wb-template/build/zephyr/include/generated/autoconf.h' -- The C compiler identification is GNU 12.1.0 -- The CXX compiler identification is GNU 12.1.0 -- The ASM compiler identification is GNU -- Found assembler: /opt/nordic/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc === child image multiprotocol_rpmsg - CPUNET begin === loading initial cache file /Users/ydr/dev/nordic/wb-template/build/multiprotocol_rpmsg/child_image_preload.cmake Loading Zephyr default modules (Zephyr base). -- Application: /opt/nordic/ncs/v2.3.0/nrf/samples/nrf5340/multiprotocol_rpmsg -- Found Python3: /opt/nordic/ncs/toolchains/v2.3.0/bin/python3.9 (found suitable exact version "3.9.6") found components: Interpreter -- Cache files will be written to: /Users/ydr/Library/Caches/zephyr -- Zephyr version: 3.2.99 (/opt/nordic/ncs/v2.3.0/zephyr) -- Found west (found suitable version "0.14.0", minimum required is "0.7.1") -- Board: nrf5340dk_nrf5340_cpunet -- Found host-tools: zephyr 0.15.2 (/opt/nordic/ncs/toolchains/v2.3.0/opt/zephyr-sdk) -- Found toolchain: zephyr 0.15.2 (/opt/nordic/ncs/toolchains/v2.3.0/opt/zephyr-sdk) -- Found Dtc: /opt/nordic/ncs/toolchains/v2.3.0/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6") -- Found BOARD.dts: /opt/nordic/ncs/v2.3.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet.dts -- Generated zephyr.dts: /Users/ydr/dev/nordic/wb-template/build/multiprotocol_rpmsg/zephyr/zephyr.dts -- Generated devicetree_generated.h: /Users/ydr/dev/nordic/wb-template/build/multiprotocol_rpmsg/zephyr/include/generated/devicetree_generated.h -- Including generated dts.cmake file: /Users/ydr/dev/nordic/wb-template/build/multiprotocol_rpmsg/zephyr/dts.cmake Parsing /opt/nordic/ncs/v2.3.0/modules/lib/matter/config/nrfconnect/chip-module/Kconfig.multiprotocol_rpmsg.root Loaded configuration '/opt/nordic/ncs/v2.3.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet_defconfig' Merged configuration '/Users/ydr/dev/nordic/wb-template/child_image/multiprotocol_rpmsg/prj.conf' Merged configuration '/opt/nordic/ncs/v2.3.0/nrf/subsys/bootloader/image/secure_boot.conf' Merged configuration '/opt/nordic/ncs/v2.3.0/nrf/subsys/partition_manager/partition_manager_enabled.conf' Merged configuration '/Users/ydr/dev/nordic/wb-template/build/multiprotocol_rpmsg/zephyr/misc/generated/extra_kconfig_options.conf' Configuration saved to '/Users/ydr/dev/nordic/wb-template/build/multiprotocol_rpmsg/zephyr/.config' Kconfig header saved to '/Users/ydr/dev/nordic/wb-template/build/multiprotocol_rpmsg/zephyr/include/generated/autoconf.h' -- The C compiler identification is GNU 12.1.0 -- The CXX compiler identification is GNU 12.1.0 -- The ASM compiler identification is GNU -- Found assembler: /opt/nordic/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc === child image b0n - CPUNET (inherited) begin === loading initial cache file /Users/ydr/dev/nordic/wb-template/build/multiprotocol_rpmsg/b0n/child_image_preload.cmake Loading Zephyr default modules (Zephyr base). -- Application: /opt/nordic/ncs/v2.3.0/nrf/samples/nrf5340/netboot -- Found Python3: /opt/nordic/ncs/toolchains/v2.3.0/bin/python3.9 (found suitable exact version "3.9.6") found components: Interpreter -- Cache files will be written to: /Users/ydr/Library/Caches/zephyr -- Zephyr version: 3.2.99 (/opt/nordic/ncs/v2.3.0/zephyr) -- Found west (found suitable version "0.14.0", minimum required is "0.7.1") -- Board: nrf5340dk_nrf5340_cpunet -- Found host-tools: zephyr 0.15.2 (/opt/nordic/ncs/toolchains/v2.3.0/opt/zephyr-sdk) -- Found toolchain: zephyr 0.15.2 (/opt/nordic/ncs/toolchains/v2.3.0/opt/zephyr-sdk) -- Found Dtc: /opt/nordic/ncs/toolchains/v2.3.0/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6") -- Found BOARD.dts: /opt/nordic/ncs/v2.3.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet.dts -- Generated zephyr.dts: /Users/ydr/dev/nordic/wb-template/build/multiprotocol_rpmsg/b0n/zephyr/zephyr.dts -- Generated devicetree_generated.h: /Users/ydr/dev/nordic/wb-template/build/multiprotocol_rpmsg/b0n/zephyr/include/generated/devicetree_generated.h -- Including generated dts.cmake file: /Users/ydr/dev/nordic/wb-template/build/multiprotocol_rpmsg/b0n/zephyr/dts.cmake Parsing /opt/nordic/ncs/v2.3.0/nrf/samples/nrf5340/netboot/Kconfig Loaded configuration '/opt/nordic/ncs/v2.3.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet_defconfig' Merged configuration '/opt/nordic/ncs/v2.3.0/nrf/samples/nrf5340/netboot/prj.conf' Merged configuration '/opt/nordic/ncs/v2.3.0/nrf/subsys/partition_manager/partition_manager_enabled.conf' Configuration saved to '/Users/ydr/dev/nordic/wb-template/build/multiprotocol_rpmsg/b0n/zephyr/.config' Kconfig header saved to '/Users/ydr/dev/nordic/wb-template/build/multiprotocol_rpmsg/b0n/zephyr/include/generated/autoconf.h' -- The C compiler identification is GNU 12.1.0 -- The CXX compiler identification is GNU 12.1.0 -- The ASM compiler identification is GNU -- Found assembler: /opt/nordic/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc CMake Warning at /opt/nordic/ncs/v2.3.0/zephyr/CMakeLists.txt:1838 (message): __ASSERT() statements are globally ENABLED -- Configuring done -- Generating done -- Build files have been written to: /Users/ydr/dev/nordic/wb-template/build/multiprotocol_rpmsg/b0n === child image b0n - CPUNET (inherited) end === CMake Warning at ../../../subsys/bootloader/cmake/debug_keys.cmake:36 (message): -------------------------------------------------------------- --- WARNING: Using generated NSIB public/private key-pair. --- --- It should not be used for production. --- --- See CONFIG_SB_SIGNING_KEY_FILE --- -------------------------------------------------------------- Call Stack (most recent call first): ../../../subsys/bootloader/cmake/provision_hex.cmake:23 (include) ../../../subsys/bootloader/image/CMakeLists.txt:42 (include) -- libmetal version: 1.3.0 (/opt/nordic/ncs/v2.3.0/nrf/samples/nrf5340/multiprotocol_rpmsg) -- Build type: -- Host: Darwin/arm64 -- Target: Generic/arm -- Machine: arm -- Looking for include file stdatomic.h -- Looking for include file stdatomic.h - found -- open-amp version: 1.3.0 (/opt/nordic/ncs/v2.3.0/modules/lib/open-amp/open-amp) -- Looking for include file fcntl.h -- Host: Darwin/arm64 -- Target: Generic/arm -- Machine: arm -- C_FLAGS : -Wall -Wextra -- Looking for include file fcntl.h - found CMake Warning at /opt/nordic/ncs/v2.3.0/zephyr/CMakeLists.txt:824 (message): No SOURCES given to Zephyr library: drivers__console Excluding target from build. CMake Warning at /opt/nordic/ncs/v2.3.0/zephyr/CMakeLists.txt:1838 (message): __ASSERT() statements are globally ENABLED -- Configuring done -- Generating done -- Build files have been written to: /Users/ydr/dev/nordic/wb-template/build/multiprotocol_rpmsg === child image multiprotocol_rpmsg - CPUNET end === -- Found Python3: /opt/nordic/ncs/toolchains/v2.3.0/bin/python3.9 (found version "3.9.6") found components: Interpreter === child image mcuboot - begin === loading initial cache file /Users/ydr/dev/nordic/wb-template/build/mcuboot/child_image_preload.cmake Loading Zephyr default modules (Zephyr base). -- Application: /opt/nordic/ncs/v2.3.0/bootloader/mcuboot/boot/zephyr -- Found Python3: /opt/nordic/ncs/toolchains/v2.3.0/bin/python3.9 (found suitable exact version "3.9.6") found components: Interpreter -- Cache files will be written to: /Users/ydr/Library/Caches/zephyr -- Zephyr version: 3.2.99 (/opt/nordic/ncs/v2.3.0/zephyr) -- Found west (found suitable version "0.14.0", minimum required is "0.7.1") -- Board: nrf5340dk_nrf5340_cpuapp -- Found host-tools: zephyr 0.15.2 (/opt/nordic/ncs/toolchains/v2.3.0/opt/zephyr-sdk) -- Found toolchain: zephyr 0.15.2 (/opt/nordic/ncs/toolchains/v2.3.0/opt/zephyr-sdk) -- Found Dtc: /opt/nordic/ncs/toolchains/v2.3.0/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6") -- Found BOARD.dts: /opt/nordic/ncs/v2.3.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts -- Found devicetree overlay: /opt/nordic/ncs/v2.3.0/nrf/modules/mcuboot/flash_sim.overlay -- Found devicetree overlay: /Users/ydr/dev/nordic/wb-template/child_image/mcuboot/boards/nrf5340dk_nrf5340_cpuapp.overlay -- Found devicetree overlay: /opt/nordic/ncs/v2.3.0/bootloader/mcuboot/boot/zephyr/dts.overlay -- Generated zephyr.dts: /Users/ydr/dev/nordic/wb-template/build/mcuboot/zephyr/zephyr.dts -- Generated devicetree_generated.h: /Users/ydr/dev/nordic/wb-template/build/mcuboot/zephyr/include/generated/devicetree_generated.h -- Including generated dts.cmake file: /Users/ydr/dev/nordic/wb-template/build/mcuboot/zephyr/dts.cmake Parsing /opt/nordic/ncs/v2.3.0/modules/lib/matter/config/nrfconnect/chip-module/Kconfig.mcuboot.root Loaded configuration '/opt/nordic/ncs/v2.3.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig' Merged configuration '/Users/ydr/dev/nordic/wb-template/child_image/mcuboot/prj.conf' Merged configuration '/opt/nordic/ncs/v2.3.0/nrf/subsys/pcd/pcd.conf' Merged configuration '/opt/nordic/ncs/v2.3.0/nrf/subsys/partition_manager/ext_flash_mcuboot_secondary.conf' Merged configuration '/opt/nordic/ncs/v2.3.0/nrf/subsys/partition_manager/partition_manager_enabled.conf' Merged configuration '/Users/ydr/dev/nordic/wb-template/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf' Configuration saved to '/Users/ydr/dev/nordic/wb-template/build/mcuboot/zephyr/.config' Kconfig header saved to '/Users/ydr/dev/nordic/wb-template/build/mcuboot/zephyr/include/generated/autoconf.h' -- The C compiler identification is GNU 12.1.0 -- The CXX compiler identification is GNU 12.1.0 -- The ASM compiler identification is GNU -- Found assembler: /opt/nordic/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc MCUBoot bootloader key file: /opt/nordic/ncs/v2.3.0/bootloader/mcuboot/root-rsa-2048.pem -- Configuring done -- Generating done -- Build files have been written to: /Users/ydr/dev/nordic/wb-template/build/mcuboot === child image mcuboot - end === CMake Warning at /opt/nordic/ncs/v2.3.0/nrf/modules/mcuboot/CMakeLists.txt:286 (message): --------------------------------------------------------- --- WARNING: Using default MCUBoot key, it should not --- --- be used for production. --- --------------------------------------------------------- -- libmetal version: 1.3.0 (/Users/ydr/dev/nordic/wb-template) -- Looking for include file stdatomic.h -- Build type: -- Host: Darwin/arm64 -- Target: Generic/arm -- Machine: arm -- Looking for include file stdatomic.h - found -- open-amp version: 1.3.0 (/opt/nordic/ncs/v2.3.0/modules/lib/open-amp/open-amp) -- Looking for include file fcntl.h -- Host: Darwin/arm64 -- Target: Generic/arm -- Machine: arm -- C_FLAGS : -Wall -Wextra -- Looking for include file fcntl.h - found CMake Warning at /opt/nordic/ncs/v2.3.0/nrfxlib/openthread/cmake/extensions.cmake:113 (message): Current nrf_security configuration does not provide all MBEDTLS options which are required by precompiled OpenThread libraries. The minimum of MBEDTLS configuration is stored at: /opt/nordic/ncs/v2.3.0/nrfxlib/openthread/lib/cortex-m33/hard-float/v1.3/mtd/oberon/nrf_security_mbedtls_configuration.h Call Stack (most recent call first): /opt/nordic/ncs/v2.3.0/nrfxlib/openthread/CMakeLists.txt:82 (check_openthread_dependencies) CMake Warning at /opt/nordic/ncs/v2.3.0/zephyr/CMakeLists.txt:1838 (message): __ASSERT() statements are globally ENABLED -- Found partition manager static configuration: /Users/ydr/dev/nordic/wb-template/configuration/nrf5340dk_nrf5340_cpuapp/pm_static_dfu.yml Partition 'mcuboot' is not included in the dynamic resolving since it is statically defined. Partition 'mcuboot_pad' is not included in the dynamic resolving since it is statically defined. Partition 'mcuboot_primary' is not included in the dynamic resolving since it is statically defined. Partition 'mcuboot_primary_app' is not included in the dynamic resolving since it is statically defined. Partition 'settings_storage' is not included in the dynamic resolving since it is statically defined. Partition 'mcuboot_primary_1' is not included in the dynamic resolving since it is statically defined. Partition 'mcuboot_secondary' is not included in the dynamic resolving since it is statically defined. Partition 'mcuboot_secondary_1' is not included in the dynamic resolving since it is statically defined. Partition 'pcd_sram' is not included in the dynamic resolving since it is statically defined. CMake Error at /opt/nordic/ncs/v2.3.0/modules/lib/matter/src/app/chip_data_model.cmake:45 (message): Failed to execute zap_cluster_list.py: Traceback (most recent call last): File "/opt/nordic/ncs/v2.3.0/modules/lib/matter/src/app/zap_cluster_list.py", line 258, in <module> main() File "/opt/nordic/ncs/v2.3.0/modules/lib/matter/src/app/zap_cluster_list.py", line 252, in main dump_zapfile_clusters(args.zap_file) File "/opt/nordic/ncs/v2.3.0/modules/lib/matter/src/app/zap_cluster_list.py", line 234, in dump_zapfile_clusters get_cluster_sources(server_clusters, SERVER_CLUSTERS, 'server')) File "/opt/nordic/ncs/v2.3.0/modules/lib/matter/src/app/zap_cluster_list.py", line 197, in get_cluster_sources raise ValueError("Unhandled %s cluster: %s" ValueError: Unhandled server cluster: OTA_REQUESTOR_CLUSTER (hint: add to src/app/zap_cluster_list.py) Call Stack (most recent call first): /opt/nordic/ncs/v2.3.0/modules/lib/matter/src/app/chip_data_model.cmake:82 (chip_configure_zap_file) CMakeLists.txt:54 (chip_configure_data_model) -- Configuring incomplete, errors occurred! See also "/Users/ydr/dev/nordic/wb-template/build/CMakeFiles/CMakeOutput.log". See also "/Users/ydr/dev/nordic/wb-template/build/CMakeFiles/CMakeError.log". FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/v2.3.0/bin/cmake -DWEST_PYTHON=/opt/nordic/ncs/toolchains/v2.3.0/bin/python3 -B/Users/ydr/dev/nordic/wb-template/build -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp -DNCS_TOOLCHAIN_VERSION:STRING=NONE -DBOARD_ROOT:STRING=/Users/ydr/dev/nordic/wb-template -DDTC_OVERLAY_FILE:STRING=/Users/ydr/dev/nordic/wb-template/boards/nrf5340dk_nrf5340_cpuapp.overlay -DCONFIG_DEBUG_OPTIMIZATIONS:STRING=y -DCONFIG_DEBUG_THREAD_INFO:STRING=y -DCONF_FILE:STRING=/Users/ydr/dev/nordic/wb-template/prj.conf -S/Users/ydr/dev/nordic/wb-template * The terminal process terminated with exit code: 1. * Terminal will be reused by tasks, press any key to close it.