This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SIMPLELINK-CC13XX-CC26XX-SDK: Adding Zigbee custom Cluster

Part Number: SIMPLELINK-CC13XX-CC26XX-SDK
Other Parts Discussed in Thread: CC2652R7, Z-STACK,

Hi , 

Can any one help in creating Zigbee custom cluster on Z-Stack(https://dev.ti.com/tirex/explore/node?node=ABxOFB93HuYHwY9rEQSaTw__BSEc4rl__LATEST)

SDK : SimpleLink CC13xx CC26xx SDK Latest (currently 6.20.00.29)

  • Hi Puneeth,

    Please try implementing the steps in the E2E threads referenced, and if you encounter any issues then follow up with a detailed description of the errors you are observing so that , YiKai Chen, or myself can further assist.

    Regards,
    Ryan

  • 7585.zcl.c4353.zcl.h

    Hi Ryan ,

    After applying above patch in ZCL.c file , I am getting below errors, Please help

    Error[Pe020]: identifier "pfnAfCnfCB" is undefined D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 205
    Error[Pe260]: explicit type is missing ("int" assumed) D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 212
    Error[Pe065]: expected a ";" D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 212
    Error[Pe757]: variable "zclManuCodeTab_t" is not a type name D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 1013
    Error[Pe020]: identifier "pZclManuCodeTable" is undefined D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 1016
    Error[Pe020]: identifier "pZclManuCodeTable" is undefined D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 1032
    Error[Pe020]: identifier "pZclManuCodeTable" is undefined D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 1062
    Error[Pe136]: struct "<unnamed>#688" (declared at line 1133 of "D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.h") has no field "manuCode" D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 1093
    Error[Pe136]: struct "<unnamed>#688" (declared at line 1133 of "D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.h") has no field "manuCode" D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 1093
    Error[Pe136]: struct "<unnamed>#688" (declared at line 1133 of "D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.h") has no field "manuCode" D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 1102
    Error[Pe020]: identifier "pfnAfCnfCB" is undefined D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 1194
    Warning[Pe223]: function "zcl_ClearSendExtParam" declared implicitly D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 1202

  • Some of these will be resolved once you split line 212 of zcl.c (static zclManuCodeTab_t CONST *pZclManuCodeTable = NULL;) into two lines or separate them with a semicolon.  A few more are caused since manuCode is not a field for zclAttrRec_t in the zcl.h file.  I recall that pfnAfCnfCB involves another feature implemented by Aries and requires further changes to the source/ti/zstack/stack/af files.  You can find their latest work here: https://gitee.com/zigbee_luo/simplelink_sdk_2022/tree/master 

    Regards,
    Ryan

  • Hi Ryan, 

    I didn't understand about the statement "split line 212 of zcl.c (static zclManuCodeTab_t CONST *pZclManuCodeTable = NULL;) into two lines or separate them with a semicolon

  • Hi Ryan,

    I am not able to download source from the link https://gitee.com/zigbee_luo/simplelink_sdk_2022/tree/master , please check  

  • I think you need to register an account on https://gitee.com to be able to download the code.

  • Try static zclManuCodeTab_t *pZclManuCodeTable = (zclManuCodeTab_t  *)NULL; instead.

    Regards,
    Ryan

  • Hi Ryan, 

    It is giving same error 

    #Code#

    static uint8_t zclManuCodeNum = 0;
    static zclManuCodeTab_t *pZclManuCodeTable = (zclManuCodeTab_t *)NULL;
    //static zclManuCodeTab_t CONST *pZclManuCodeTable = NULL;

    #Code#

    #Error#

    Error[Pe020]: identifier "pfnAfCnfCB" is undefined D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 205
    Error[Pe020]: identifier "zclManuCodeTab_t" is undefined D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 212
    Error[Pe020]: identifier "zclManuCodeTab_t" is undefined D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 212
    Error[Pe029]: expected an expression D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 212
    Error[Pe065]: expected a ";" D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 212
    Error[Pe757]: "zclManuCodeTab_t" is not a type name D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 1014

    #Error#
     

  • Then you most likely haven't defined the zclManuCodeTab_t typedef in zcl.h or elsewhere.

    Regards,
    Ryan

  • Hi Ryan, 
    After ZCl.h file update I am getting below error and complete error log is shared below.

    Building configuration: zc_light_LP_CC2652R7_tirtos_iar - default
    Updating build tree...

    61 file(s) deleted.
    Updating build tree...
    Performing Pre-Build Action
    Performing Custom Build : zc_light.syscfg
    bdb_finding_and_binding.c
    bdb.c
    bdb_reporting.c
    af.c
    bdb_tl_commissioning.c
    bdb_touchlink_target.c
    bdb_touchlink.c
    bdb_touchlink_initiator.c
    crc.c
    dbg.c
    gp_bit_fields.c
    binding_table.c
    fh_rom_init.c
    cui.c
    hmac_rom_init.c
    gp_common.c
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\gp\gp_common.c 286
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\gp\gp_common.c 295
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\gp\gp_common.c 304
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\gp\gp_common.c 313
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\gp\gp_common.c 322
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\gp\gp_common.c 331
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\gp\gp_common.c 340
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\gp\gp_common.c 349
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\gp\gp_common.c 358
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\gp\gp_common.c 367
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\gp\gp_common.c 376
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\gp\gp_common.c 385
    Warning[Pe177]: variable "zclGp_gppMaxProxyTableEntries" was declared but never referenced D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\gp\gp_common.c 190
    Warning[Pe177]: variable "zclGp_gppNotificationRetryNumber" was declared but never referenced D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\gp\gp_common.c 191
    Warning[Pe177]: variable "zclGp_gppNotificationRetryTimer" was declared but never referenced D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\gp\gp_common.c 192
    Warning[Pe177]: variable "zclGp_gppMaxSearchCounter" was declared but never referenced D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\gp\gp_common.c 193
    Warning[Pe177]: variable "pZclGp_gppBlockedGPDID" was declared but never referenced D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\gp\gp_common.c 194
    Warning[Pe177]: variable "zclGp_gppFunctionality" was declared but never referenced D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\gp\gp_common.c 195
    Warning[Pe177]: variable "zclGp_gppActiveFunctionality" was declared but never referenced D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\gp\gp_common.c 196
    Warning[Pe177]: variable "zclGp_gpSharedSecurityKeyType" was declared but never referenced D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\gp\gp_common.c 197
    Warning[Pe177]: variable "zclGp_gpSharedSecurityKey" was declared but never referenced D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\gp\gp_common.c 198
    Warning[Pe177]: variable "zclGp_gpLinkKey" was declared but never referenced D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\gp\gp_common.c 199
    Warning[Pe177]: variable "zclGp_clusterRevision" was declared but never referenced D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\gp\gp_common.c 200
    Error while running C/C++ Compiler
    icall_osal_rom_init.c
    gp_proxy.c
    gp_proxy_table.c
    lmac_rom_init.c
    mac_cfg.c
    mac_activity.c
    mac_settings.c
    mac_user_config.c
    mac_util.c
    nwk_globals.c
    nvocmp.c
    osal_nv.c
    rom_init_154.c
    osal_port_timers.c
    main.c
    osal_port.c
    saddr.c
    ti_devices_config.c
    ti_radio_config.c
    stub_aps.c
    touchlink_initiator_app.c
    ti_zstack_config.c
    touchlink_target_app.c
    ti_drivers_config.c
    utc_clock.c
    util_timer.c
    zcl.c
    Error[Pe020]: identifier "pfnAfCnfCB" is undefined D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 205
    Error[Pe513]: a value of type "zclManuCodeTab_t const *" cannot be assigned to an entity of type "zclManuCodeTab_t *" D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 1017
    Error[Pe020]: identifier "pfnAfCnfCB" is undefined D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 1195
    Warning[Pe223]: function "zcl_ClearSendExtParam" declared implicitly D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 1203
    Warning[Pe550]: variable "radius" was set but never used D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 1299
    Warning[Pe550]: variable "cnfParam" was set but never used D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 1196
    Error[Pe020]: identifier "manuCode" is undefined D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 1992
    Error[Pe020]: identifier "manuCode" is undefined D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 1997
    Warning[Pe223]: function "CMD_REQ_IND" declared implicitly D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 2441
    Error[Pe147]: declaration is incompatible with "__interwork __vfp uint8_t zclFindNextCmdRec(uint8_t, uint16_t, uint8_t, uint8_t, uint8_t *, zclCommandRec_t *)" (declared at line 272) D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 3039
    Error[Pe147]: declaration is incompatible with "__interwork __vfp uint8_t zclFindNextAttrRec(uint8_t, uint16_t, uint8_t, uint16_t *, zclAttrRec_t *)" (declared at line 273) D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 3124
    Error[Pe137]: expression must be a modifiable lvalue D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 4672
    Error[Pe167]: argument of type "uint16_t *" is incompatible with parameter of type "uint8_t" D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 5188
    Error[Pe167]: argument of type "zclAttrRec_t *" is incompatible with parameter of type "uint16_t *" D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 5188
    Error[Pe165]: too few arguments in function call D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 5188
    Error[Pe167]: argument of type "uint16_t *" is incompatible with parameter of type "uint8_t" D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 5242
    Error[Pe167]: argument of type "zclAttrRec_t *" is incompatible with parameter of type "uint16_t *" D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 5242
    Error[Pe165]: too few arguments in function call D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 5242
    Error[Pe167]: argument of type "uint16_t *" is incompatible with parameter of type "uint8_t" D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 5252
    Error[Pe167]: argument of type "zclAttrRec_t *" is incompatible with parameter of type "uint16_t *" D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 5252
    Error[Pe165]: too few arguments in function call D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 5252
    Error[Pe167]: argument of type "uint16_t *" is incompatible with parameter of type "uint8_t" D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 5303
    Error[Pe167]: argument of type "zclAttrRec_t *" is incompatible with parameter of type "uint16_t *" D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 5303
    Error[Pe165]: too few arguments in function call D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 5303
    Error[Pe167]: argument of type "uint16_t *" is incompatible with parameter of type "uint8_t" D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 5314
    Error[Pe167]: argument of type "zclAttrRec_t *" is incompatible with parameter of type "uint16_t *" D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 5314
    Error[Pe165]: too few arguments in function call D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 5314
    Error[Pe167]: argument of type "uint8_t *" is incompatible with parameter of type "uint8_t" D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 5356
    Error[Pe167]: argument of type "zclCommandRec_t *" is incompatible with parameter of type "uint8_t *" D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 5356
    Error[Pe165]: too few arguments in function call D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 5356
    Error[Pe167]: argument of type "uint8_t *" is incompatible with parameter of type "uint8_t" D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 5374
    Error[Pe167]: argument of type "zclCommandRec_t *" is incompatible with parameter of type "uint8_t *" D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 5374
    Error[Pe165]: too few arguments in function call D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 5374
    Error[Pe167]: argument of type "uint8_t *" is incompatible with parameter of type "uint8_t" D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 5384
    Error[Pe167]: argument of type "zclCommandRec_t *" is incompatible with parameter of type "uint8_t *" D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 5384
    Error[Pe165]: too few arguments in function call D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Common\zcl\zcl.c 5384
    Error while running C/C++ Compiler
    zcl_ha.c
    zcl_general.c
    zcl_green_power.c
    zcl_port.c
    zcl_samplelight_data.c
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Application\zcl_samplelight_data.c 228
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Application\zcl_samplelight_data.c 237
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Application\zcl_samplelight_data.c 246
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Application\zcl_samplelight_data.c 255
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Application\zcl_samplelight_data.c 264
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Application\zcl_samplelight_data.c 273
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Application\zcl_samplelight_data.c 284
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Application\zcl_samplelight_data.c 293
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Application\zcl_samplelight_data.c 305
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Application\zcl_samplelight_data.c 314
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Application\zcl_samplelight_data.c 325
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Application\zcl_samplelight_data.c 334
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Application\zcl_samplelight_data.c 343
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Application\zcl_samplelight_data.c 352
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Application\zcl_samplelight_data.c 361
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Application\zcl_samplelight_data.c 370
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Application\zcl_samplelight_data.c 379
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Application\zcl_samplelight_data.c 388
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Application\zcl_samplelight_data.c 399
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Application\zcl_samplelight_data.c 409
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Application\zcl_samplelight_data.c 420
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Application\zcl_samplelight_data.c 429
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Application\zcl_samplelight_data.c 438
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Application\zcl_samplelight_data.c 447
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Application\zcl_samplelight_data.c 456
    Error[Pe146]: too many initializer values D:\Work\01_TASKS\TI_Evaluation\IAR_WorkSpace\cc2652r7\ZC_Light\Application\zcl_samplelight_data.c 465
    Error while running C/C++ Compiler
    zcl_samplelight.c
    zcl_sampleapps_ui.c
    zd_config.c
    zd_app.c
    zd_nwk_mgr.c
    zd_profile.c
    zd_object.c
    zdiags.c
    zd_sec_mgr.c
    zglobals.c
    zmac.c
    zmac_cb.c
    zstackapi.c
    zstackstartup.c
    zstacktask.c

    Total number of errors: 70
    Total number of warnings: 15

    Build failed.

  • I advise against updating one *.h file and expecting the project to build without also updating all of the *.c files which use it.  Please observe how I commented that you define zclManuCodeTab_t whereas your correction attempt chose to replace the entire zcl.h file from an unconfirmed source location.

    Regards,
    Ryan

  • Hi Ryan Brown,

    Thanks for comments, we are still facing difficulty with this approach.   

    We see this requirement of custom cluster in most of our projects and concerned that the changes required to support this feature are not clearly defined.

    Please confirm if TI has plans to make custom cluster as part of SDK or document the mechanism to add custom cluster.

    We don’t want to redo the activity(applying custom cluster patch) for future SDK releases.

  • I don't think this is about TI Z-Stack to implement custom cluster. AFAIK, all of Zigbee stack/application providers would leave custom clusters/attributes to application developers to implement by themselves.

  • TI does not currently have any plans to support custom clusters in the SIMPLELINK-CC13XX-CC26XX-SDK, or create documentation which addresses the steps necessary to add this feature.  I can continue to support the difficulties you are experiencing when attempting to include this configuration.

    Regards,
    Ryan

  • I would suggest following the way I did it here: LAUNCHXL-CC26X2R1: How to make custom clusters - Zigbee & Thread forum - Zigbee & Thread - TI E2E support forums. I think the steps are pretty clear.

    And then if you also want specific manufacturer code you should see Aries Lord's sdk and add the parts of the code that you want. In my thread in the last message, Aries suggests a way to do it.

    Try to take it one step at a time, instead of copy/pasting whole files so as to understand what you are adding to your code.