Matter template sample - fails to build after touching with ZAP tool

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.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
* 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
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX