<?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>nrf9160 NVS write flush (NCS 1.9.1, MFW 1.3.2)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90994/nrf9160-nvs-write-flush-ncs-1-9-1-mfw-1-3-2</link><description>Hello, 
 My application stores settings in Zephyr NVS. During device production a python script running on PC sends RTT commands to write initial settings to NVS/flash. 
 The setup ran flawlessly on my table, but factory had some issues as the settings</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Aug 2022 07:29:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90994/nrf9160-nvs-write-flush-ncs-1-9-1-mfw-1-3-2" /><item><title>RE: nrf9160 NVS write flush (NCS 1.9.1, MFW 1.3.2)</title><link>https://devzone.nordicsemi.com/thread/381897?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2022 07:29:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e02b397-261e-49fc-920a-800681980341</guid><dc:creator>plotkin1996</dc:creator><description>&lt;p&gt;Thank you. That&amp;#39;s probably an error in the production script or the way I implemented communication protocol than, will double-check.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 NVS write flush (NCS 1.9.1, MFW 1.3.2)</title><link>https://devzone.nordicsemi.com/thread/381837?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2022 16:39:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6dc4f95d-8e0a-4c0a-b187-e40ea385e4b1</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The NVS API is synchronous, so when the call to nvs_write() returns, the data should have been written. I have confirmed with one of the developers that worked on the flash driver that this is the case, and he did not see any way the&amp;nbsp;behavior&amp;nbsp;you describe could happen. So unless there is an unknown bug, this should not be the case.&lt;/p&gt;
&lt;p&gt;Are you sure the DUT processed the data before it was powered down? Could there be an issue in your production script, for instance? (In any case, a solution could be to read back and verify that the data is properly written that way before powering down).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>