matter NVS settings

I'm using ncs2.6.0 to develop a door lock project for matter, and I'm running into a problem: I need to store some user-set parameters in the project, which take up less space but change frequently, so I'm storing them in settings. But matter itself uses this area for storing information, and it erases my parameter information when matter resumes initialization. How can I separate the storage that comes with matter from my own settings storage?

Parents Reply
  • Hi Wesson,

    I just figure out that Zephyr settings subsystem only support a signal instance with one backend, so it is not easy to add a second setting storage for your custom parameters. If you do not like to manipulate NVS directly, could disabling reset erase be an option? 

    The CONFIG_CHIP_FACTORY_RESET_ERASE_NVS Kconfig option is set to y by default. To disable removing application-specific non-volatile data when the CONFIG_CHIP_LAST_FABRIC_REMOVED_ERASE_AND_REBOOT Kconfig option is selected, set the CONFIG_CHIP_FACTORY_RESET_ERASE_NVS Kconfig option to n.

    If this does not help, I also run out of idea about this inquiry. 

    Best regards,

    Charlie

Children
Related