<?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>Dataset is written into Flash automatically?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50647/dataset-is-written-into-flash-automatically</link><description>Hi there, I use the openthread and I have some observation: when I at first turn on the MCU I generate random network parameters with otDatasetCreateNewNetwork(), when I reset the MCU these parameters is same. I think that they write into flash memory</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Aug 2019 11:17:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50647/dataset-is-written-into-flash-automatically" /><item><title>RE: Dataset is written into Flash automatically?</title><link>https://devzone.nordicsemi.com/thread/203046?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2019 11:17:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:723a79d0-7e5e-453e-811a-04bdb011ee2e</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Kostiantyn,&lt;/p&gt;
&lt;p&gt;You should set &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Fgroup__fds__config.html&amp;amp;anchor=ga28b38ad7ba33f489f4b3de4c67cdfa7f"&gt;FDS_VIRTUAL_PAGES_RESERVED&lt;/a&gt; to 4, to move flash end address used by the FDS (OpenThread stack uses 4 flash pages for nRF52840).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dataset is written into Flash automatically?</title><link>https://devzone.nordicsemi.com/thread/202775?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2019 09:22:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad8a43a5-7c02-471b-bca2-401296ed417b</guid><dc:creator>Kostiantyn Makhno</dc:creator><description>&lt;p&gt;and also it can write network setting by 0xfe000&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1565169733841v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dataset is written into Flash automatically?</title><link>https://devzone.nordicsemi.com/thread/202773?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2019 09:16:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c2e3e28-72ad-426e-83b4-be98730d26a1</guid><dc:creator>Kostiantyn Makhno</dc:creator><description>&lt;p&gt;thanks, I got it. But when I use FDS and store some data into Flash, it saves data in the region of memory 0xfc000-0x100000 but it&amp;#39;s wrong. Why does it happen?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dataset is written into Flash automatically?</title><link>https://devzone.nordicsemi.com/thread/202755?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2019 08:06:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7f47549-f77a-419e-a1b4-3d3c935d6ff8</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Kostiantyn,&lt;/p&gt;
&lt;p&gt;The network settings will be stored on non-volatile memory, see the OpenThread stack memory layout &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v3.1.0%2Fthread_memory.html&amp;amp;cp=5_3_2_2_0&amp;amp;anchor=thread_memory_layout"&gt;here&lt;/a&gt;. The OpenThread stack persistent storage starts at address 0x00fc in nRF52840, so if you want to save application data you need to do it outside of the persistent storage area.&lt;/p&gt;
&lt;p&gt;If you want to erase the network settings you can use &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v3.1.0%2Fgroup__api-instance.html&amp;amp;anchor=gaa54f0ac5e43333d307008c54cccaafce"&gt;otInstanceErasePersistentInfo()&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dataset is written into Flash automatically?</title><link>https://devzone.nordicsemi.com/thread/202535?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2019 08:06:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8a0efbb-f11a-4d90-a8f7-e4bca3225826</guid><dc:creator>Kostiantyn Makhno</dc:creator><description>&lt;p&gt;also, every time when I reset MCU it saves into Flash the same network parameter, i.e. if I want to save some data into flash I allocate some memory by i.e. 0xff000 address, my flash section starts with i.e. 0xfc000 address and if I do large number of reset, my section with my data rewrite by parameters that saves thread. Is it bug or feature?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dataset is written into Flash automatically?</title><link>https://devzone.nordicsemi.com/thread/202525?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2019 07:27:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd20d81a-0dad-4b61-9f0e-b2e8bcdaa9ef</guid><dc:creator>Kostiantyn Makhno</dc:creator><description>&lt;p&gt;I use memcheck and that&amp;#39;s really write some network parameters into Flash&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1565076425247v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>