<?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>Is the Zephyr NVS implementation robust during power cut?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117324/is-the-zephyr-nvs-implementation-robust-during-power-cut</link><description>We are evaluating the the NRF 5340 for a new project and we would like to know if the NVS implementation [1] provides protection against data corruption if the supply is unexpectedly lost during write operations. There is some procedural description in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Dec 2024 19:53:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117324/is-the-zephyr-nvs-implementation-robust-during-power-cut" /><item><title>RE: Is the Zephyr NVS implementation robust during power cut?</title><link>https://devzone.nordicsemi.com/thread/515193?ContentTypeID=1</link><pubDate>Mon, 16 Dec 2024 19:53:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3c0caa0-b2d3-4493-a653-1a49101844d8</guid><dc:creator>MKir</dc:creator><description>&lt;p&gt;Thank you for the quick answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is the Zephyr NVS implementation robust during power cut?</title><link>https://devzone.nordicsemi.com/thread/515113?ContentTypeID=1</link><pubDate>Mon, 16 Dec 2024 13:20:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59f6faa1-613d-422a-b656-f676eb58d3e4</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, there is protection against data corruption. NVS automatically manages the metadata for stored items, including the ID, data offset within the sector, data length, an unused part, and the CRC. The CRC within the metadata ensures automatic integrity checks for the data. During initialization, NVS reviews the contents of non-volatile memory and disregards any data with incomplete or invalid metadata if errors are detected.&lt;/p&gt;
&lt;p&gt;You can read more about this in the &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/persistent-storage-of-keys-and-data-using-the-nrf-connect-sdk#NVS-(non-volatile-storage)"&gt;Persistent storage of keys and data using the nRF Connect SDK&lt;/a&gt; blog post.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>