View: 4374|Reply: 2

关于NV的使用问题

[Copy link]

26

Threads

43

Replies

350

Credits

Credits
350
Posted on 2025-3-11 18:42:31 | Show all posts |Reading mode From 广东深圳
information
Notes:   建议参照本版块置顶帖内容输入必要信息
Chip model: 8258
SDK & version: V3.7.1.2_Patch_0001(PR)
关于NV的使用,我有二个疑问,麻烦帮我解答:

1. 如果需要在NV_MODULE_ZCL信息模块增加新的条目信息(NV_ITEM_ZCL_THERMOSTAT),那么应该在哪个位置增加呢?
    NV_ITEM_ZCL_REPORT                 = 0x20,
    NV_ITEM_ZCL_ON_OFF,
    NV_ITEM_ZCL_LEVEL,
    NV_ITEM_ZCL_COLOR_CTRL,
    NV_ITEM_ZCL_SCENE_TABLE,
    NV_ITEM_ZCL_GP_PROXY_TABLE,
    NV_ITEM_ZCL_GP_SINK_TABLE,
    NV_ITEM_ZCL_WWAH_APS_AUTH_INFO,
    NV_ITEM_ZCL_WWAH_APS_ACKS_INFO,
    NV_ITEM_ZCL_WWAH_USE_TC_CLUSTER_INFO,
    NV_ITEM_ZCL_THERMOSTAT,//是在这个位置增加吗

    NV_ITEM_APP_SIMPLE_DESC,
    NV_ITEM_APP_POWER_CNT,
    NV_ITEM_APP_GP_TRANS_TABLE,
    NV_ITEM_ZCL_THERMOSTAT,//还是在这个位置增加?



2. NV_ITEM有什么没有使用,是不是代表就也会占用NV空间呢? 比如NV_ITEM_ZCL_ON_OFF和NV_ITEM_ZCL_LEVEL没有使用,那么会不会占用NV空间?

22

Threads

113

Replies

587

Credits

Credits
587
Posted on 2025-3-12 04:22:08 | Show all posts From 澳大利亚
本帖最后由 wes58 于 2025-3-12 04:26 编辑

Hi,
Maybe Telink will tells you something different, but that is what I do.
I add to the app_cfg.h file something like this:
  1. #define NV_ITEM_ZCL_HVAC       (NV_ITEM_APP_GP_TRANS_TABLE + 1)
Copy code

This way NV_ITEM_ZCL_HVAC is only defined for the project/app that you want to use it with. You can add more iitems ... ((NV_ITEM_APP_GP_TRANS_TABLE + 2)
And you don't have to worry if you update SDK to newer version.

26

Threads

43

Replies

350

Credits

Credits
350
 Author| Posted on 2025-3-12 10:06:56 | Show all posts From 广东深圳
OK, Many thanks.

Credit rules for this forum

Follow our WeChat
Privacy Policy|Telink Developer Community

For copyright infringement reports, complaints or suggestions, please email forum@telink-semi.com

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.|沪ICP备17008231号-1 |沪公网安备31011502403548号

inThis forumPostBack to top