<?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>nRF51 file Operation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15210/nrf51-file-operation</link><description>Hello, 
 I wants to store data in file or store data as non volatile .
I can&amp;#39;t found any file related function. 
 Can any one help me how to store data as non volatile(Permanent). 
 Regards,
Rajneesh</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Jul 2016 13:58:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15210/nrf51-file-operation" /><item><title>RE: nRF51 file Operation</title><link>https://devzone.nordicsemi.com/thread/58076?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2016 13:58:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7eb9a3bb-7c0e-4723-b075-9ed04afe6faf</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Rajneesh,&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t use the softdevice, you can access the flash directly using NVMC registers.
You can have a look at the flashwrite example in SDK v11.&lt;/p&gt;
&lt;p&gt;If you use softdevice (which blocks access to NVMC) and if you simply want to store data to flash you can use the sd_flash_write() and sd_flash_page_erase() to write and erase. If you want to read you can read the address directly.&lt;/p&gt;
&lt;p&gt;If you use softdevice and want to use file system, you can try to use the fds library. You can have a look at &lt;a href="https://devzone.nordicsemi.com/question/72107/flash-data-storage/"&gt;this example&lt;/a&gt; and &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/lib_fds.html?cp=6_0_0_3_30"&gt;this documentation&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>