<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>matter NVS settings</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112556/matter-nvs-settings</link><description>I&amp;#39;m using ncs2.6.0 to develop a door lock project for matter, and I&amp;#39;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&amp;#39;m storing them in settings. But matter itself uses</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Jul 2024 13:45:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112556/matter-nvs-settings" /><item><title>RE: matter NVS settings</title><link>https://devzone.nordicsemi.com/thread/492089?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2024 13:45:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e1b3883-a2a0-43ea-a221-4721f8d54cd5</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;No, this does not affect Matter-related setting reset. It is explained on Matter document in the opposite&amp;nbsp;way:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/matter/nrfconnect_examples_configuration.html#factory_reset_behavior"&gt;https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/matter/nrfconnect_examples_configuration.html#factory_reset_behavior&lt;/a&gt;&lt;/p&gt;
&lt;h4&gt;&lt;em&gt;Factory reset behavior&lt;/em&gt;&lt;/h4&gt;
&lt;p&gt;&lt;em&gt;By default, the factory reset procedure implemented in the Matter stack removes Matter-related settings only. If your application does not depend on any device-lifelong data stored in the non-volatile storage, set the&amp;nbsp;&lt;code&gt;&lt;span&gt;CONFIG_CHIP_FACTORY_RESET_ERASE_NVS&lt;/span&gt;&lt;/code&gt;&amp;nbsp;option to fully erase the NVS partition at the factory reset. This approach is more robust and regains the original NVS performance in case it has been polluted with unwanted entries.&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: matter NVS settings</title><link>https://devzone.nordicsemi.com/thread/492075?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2024 12:59:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:748ab4d3-e511-4487-bd10-588c4c13eabe</guid><dc:creator>wesson</dc:creator><description>&lt;p&gt;Set CONFIG_CHIP_FACTORY_RESET_ERASE_NVS=n Will it affect matter data management&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: matter NVS settings</title><link>https://devzone.nordicsemi.com/thread/492065?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2024 12:35:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08487c50-c74e-44b4-a5f3-4eb109933232</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Wesson,&lt;/p&gt;
&lt;p&gt;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?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;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.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If this does not help, I also run out of idea about this inquiry.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: matter NVS settings</title><link>https://devzone.nordicsemi.com/thread/491848?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2024 13:03:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:381a316e-c727-433f-ae81-27d05b17e07c</guid><dc:creator>wesson</dc:creator><description>&lt;p&gt;Yes, I know how to use the setting interface to save data, but I don&amp;#39;t know how to assign settings to a custom flash area.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: matter NVS settings</title><link>https://devzone.nordicsemi.com/thread/491843?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2024 12:46:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d7e1614-66bc-4fb9-b385-2a1956e625a9</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Wesson,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply. We are short of staff due to summer vacation period.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/subsys/settings/README.html"&gt;Settings API (nordicsemi.com)&lt;/a&gt;&amp;nbsp;is a Zephyr sample to demonstrate how to use a NVS region to load and&amp;nbsp;save settings using Zephyr setting API library. You can refer to this sample for your own&amp;nbsp;setting storage.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: matter NVS settings</title><link>https://devzone.nordicsemi.com/thread/491589?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2024 12:15:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30494cb0-323c-483a-957c-e1d3db630401</guid><dc:creator>wesson</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello, can you help me answer the above question?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: matter NVS settings</title><link>https://devzone.nordicsemi.com/thread/491321?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2024 12:11:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7901a4b9-3cc3-45ad-b6b9-330d8db0170b</guid><dc:creator>wesson</dc:creator><description>&lt;p&gt;The interface I&amp;#39;m using to store user parameters is&lt;br /&gt;int settings_load_subtree_direct(const char *subtree,settings_load_direct_cb cb,void *param)；&lt;br /&gt;He is using the same NVS region as matter, both are storage_partition, how can I direct settings to my own newly defined region?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: matter NVS settings</title><link>https://devzone.nordicsemi.com/thread/491318?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2024 12:06:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58594d9d-6c0a-4b4c-a45a-4fae5f6f5a88</guid><dc:creator>wesson</dc:creator><description>&lt;p&gt;I see that the default region used by matter on sdk is this one: f8000&lt;br /&gt;If I define a new region，Then how do I store my data into this area, I want to use the settings method instead of the flash_area_write method to store it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: matter NVS settings</title><link>https://devzone.nordicsemi.com/thread/491306?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2024 11:35:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d273402-7267-4ead-86aa-fbaebdbf39b1</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Wsson,&lt;/p&gt;
&lt;div&gt;You can try to separate the storage that comes with Matter from your own settings storage by defining a custom partition in the flash. This can be done by defining the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code dir="ltr"&gt;settings_storage&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;partition in the flash. The recommended minimum size of the partition is 32 kB, but you can reserve even more space if your application uses the storage extensively. Matter samples in the nRF Connect SDK reserve exactly 32 kB for the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code dir="ltr"&gt;settings_storage&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;partition.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;In addition, you can use the Zephyr NVS storage system on a custom partition. This ensures that your data won&amp;#39;t interfere with the Matter/OpenThread stack&amp;#39;s persistent data. A new partition can be added to your custom board&amp;#39;s DTS file, or can be an overlay if you&amp;#39;re using a DK.&lt;/div&gt;
&lt;div&gt;Here is an example of how to define a custom partition:&lt;/div&gt;
&lt;div&gt;
&lt;div dir="ltr"&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/101200/how-to-save-application-data-to-flash-in-matter-accessory?ReplyFilter=Answers&amp;amp;ReplySortBy=Answers&amp;amp;ReplySortOrder=Descending" rel="noopener noreferrer" target="_blank"&gt;&lt;pre class="ui-code" data-mode="text"&gt;// default storage partition will be used by FCB/LittleFS/NVS if enabled.
storage_partition: partition@f6000 {
&amp;#160; label = &amp;quot;storage&amp;quot;;
&amp;#160; reg = &amp;lt;0x000f6000 0x00008000&amp;gt;;
};&lt;/pre&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Best regards,&lt;/div&gt;
&lt;div&gt;Charlie&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: matter NVS settings</title><link>https://devzone.nordicsemi.com/thread/491216?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2024 06:11:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7876ac81-fbb1-4cb6-bced-28e1e515e8f1</guid><dc:creator>wesson</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1719555062473v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;but it will clear all&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: matter NVS settings</title><link>https://devzone.nordicsemi.com/thread/491213?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2024 06:00:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da6e021e-c1b3-40d0-9961-974934179f22</guid><dc:creator>wesson</dc:creator><description>&lt;p&gt;settings write：&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1719554400037v2.png" alt=" " /&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>