Hello,
I am making a Switch with 4 endpoints. I am going to apply Scene cluster for this device but when I enable Scene cluster by adding the following define in zcl_option.h :
#define CLD_SCENES
#define SCENES_SERVER
The project build failed: undefined reference to `vSaveScenesNVM'
Then I search on the internet and copy file: app_scenes.h/c from here into my project. It seems to be good when building. But when I flash program (file Bin) to chip JN5169, The program did not run, nothing happens.
Then I change some defines in zcl_option.h:
#define CLD_SCENES_MAX_NUMBER_OF_SCENES (10)
#define CLD_SCENES_MAX_SCENE_STORAGE_BYTES (16)
The program run but Stack dump when Initialize.
Can you help me to troubleshoot this problem, Help me how to use Scene Cluster?
Thanks and Best regards,
Huy
Hi Huy Pham,
Could you please look at the JN-AN-1218? It implements the Scenes Cluster.
Did you add, your makefile, the next define? APPSRC += app_scenes.c
Regards,
Mario
Hi Mario,
I already added make file APPSRC += app_scenes.c.
I just have copied file app_scenes.h/c and some setting of Scenes Cluster in zcl_options.h. It was built well but when I flash program. It was not running.
Are there any special parameters for Scenes Cluter? Or JN5169 ran out of RAM? How I can check it?
Could you please help me find the problem?
Thanks and Regards,
Huy
Hi Huy,
Are you working on the JN-AN-1220?
Did you add the clusters in the zpscfg file?
Regards,
Mario
Hi Mario,
I am working on JN-AN-1217-Zigbee-3-0-Base-Device.
I send you my project: link here. Could you please find out what the problem was?
My project is Switch, the zpscfg file is app_switch.zpscfg.
I am looking for your reply soon.
Thank you very much!
Huy
Hi Huy,
I am running your example and it compiles without problems.
I compiled successfully and it works.
Regards,
Mario