Hi All,
I am using nRF Connect SDK v2.7 + VsCode + NRF5340 DK and trying to add and extend matter-light-bulb sample. With 'MA-onofflight' when I try to compile the project it gives the following errors:
In file included from /home/user/ncs/v2.7.0/modules/lib/matter/src/app/clusters/scenes-server/scenes-server.cpp:19:
/home/user/ncs/v2.7.0/modules/lib/matter/src/app/clusters/scenes-server/scenes-server.h:38:9: error: 'MATTER_DM_SCENES_CLUSTER_SERVER_ENDPOINT_COUNT' was not declared in this scope; did you mean 'MATTER_DM_GROUPS_CLUSTER_SERVER_ENDPOINT_COUNT'?
38 | MATTER_DM_SCENES_CLUSTER_SERVER_ENDPOINT_COUNT + CHIP_DEVICE_CONFIG_DYNAMIC_ENDPOINT_COUNT;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| MATTER_DM_GROUPS_CLUSTER_SERVER_ENDPOINT_COUNT
/home/user/ncs/v2.7.0/modules/lib/matter/src/app/clusters/scenes-server/scenes-server.h:38:9: note: maximum limit of 1000 namespaces searched for 'MATTER_DM_SCENES_CLUSTER_SERVER_ENDPOINT_COUNT'
/home/user/ncs/v2.7.0/modules/lib/matter/src/app/clusters/scenes-server/scenes-server.h:39:49: error: non-constant condition for static assertion
39 | static_assert(kScenesServerMaxEndpointCount <= kEmberInvalidEndpointIndex, "Scenes endpoint count error");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/ncs/v2.7.0/modules/lib/matter/src/app/clusters/scenes-server/scenes-server.h:69:58: error: size of array 'mSceneInfoStructs' is not an integral constant-expression
69 | Structs::SceneInfoStruct::Type mSceneInfoStructs[kScenesServerMaxEndpointCount][kScenesServerMaxFabricCount];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/ncs/v2.7.0/modules/lib/matter/src/app/clusters/scenes-server/scenes-server.h:70:40: error: size of array 'mSceneInfoStructsCount' is not an integral constant-expression
70 | uint8_t mSceneInfoStructsCount[kScenesServerMaxEndpointCount] = { 0 };
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user/ncs/v2.7.0/modules/lib/matter/src/app/clusters/scenes-server/scenes-server.cpp: In member function 'CHIP_ERROR chip::app::Clusters::ScenesManagement::ScenesServer::FabricSceneInfo::FindFabricSceneInfoIndex(chip::EndpointId, size_t&)':
/home/user/ncs/v2.7.0/modules/lib/matter/src/app/clusters/scenes-server/scenes-server.cpp:275:78: error: 'MATTER_DM_SCENES_CLUSTER_SERVER_ENDPOINT_COUNT' was not declared in this scope; did you mean 'MATTER_DM_GROUPS_CLUSTER_SERVER_ENDPOINT_COUNT'?
275 | emberAfGetClusterServerEndpointIndex(endpoint, ScenesManagement::Id, MATTER_DM_SCENES_CLUSTER_SERVER_ENDPOINT_COUNT);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| MATTER_DM_GROUPS_CLUSTER_SERVER_ENDPOINT_COUNT
/home/user/ncs/v2.7.0/modules/lib/matter/src/app/clusters/scenes-server/scenes-server.cpp:275:78: note: maximum limit of 1000 namespaces searched for 'MATTER_DM_SCENES_CLUSTER_SERVER_ENDPOINT_COUNT'
ninja: build stopped: subcommand failed.
[4/27] cd /home/user/light_bulb/bht_1_multirelay_rev001_dk_debug/_sysbuild && /home/user/ncs/toolchains/e9dba88316/usr/local/bin/cmake -E true
FAILED: _sysbuild/sysbuild/images/light_bulb-prefix/src/light_bulb-stamp/light_bulb-build /home/user/light_bulb/bht_1_multirelay_rev001_dk_debug/_sysbuild/sysbuild/images/light_bulb-prefix/src/light_bulb-stamp/light_bulb-build
cd /home/user/light_bulb/bht_1_multirelay_rev001_dk_debug/light_bulb && /home/user/ncs/toolchains/e9dba88316/usr/local/bin/cmake --build .
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /home/user/ncs/toolchains/e9dba88316/usr/local/bin/cmake --build /home/user/light_bulb/bht_1_multirelay_rev001_dk_debug
Note:
I have also attached the google-drive link containing the zap files. Thank you.
https://drive.google.com/file/d/16U3BJY3--_Ooi_fxhL19-Bvu3M5AVm3n/view?usp=sharing
Invoked the zap tool using:
~/ncs/v2.7.0/modules/lib/matter/scripts/tools/zap/run_zaptool.sh $HOME/light_bulb/src/light_bulb.zap
Please see Endpoint-3 On/Off LIght