<?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>data read and write in internal flash of nrf52840 having softdevice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62629/data-read-and-write-in-internal-flash-of-nrf52840-having-softdevice</link><description>Hi, 
 I have nrf52840 with softdevice and i want to write 12 byte of data at a time in internal flash,suppose i write 50 records and i have to also read it these data from flash. 
 
 how can i read and write data in internal flash having softdevice,is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Jun 2020 12:56:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62629/data-read-and-write-in-internal-flash-of-nrf52840-having-softdevice" /><item><title>RE: data read and write in internal flash of nrf52840 having softdevice</title><link>https://devzone.nordicsemi.com/thread/255548?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 12:56:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0618fcbf-7264-4a8c-9682-f7302da21383</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I would suggest using the fstorage module and&amp;nbsp;basing your application on the storage&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/fstorage_example.html"&gt;flash storage example&lt;/a&gt;. I would also suggest checking out the SAADC peripheral in order to keep track of the battery life of your device. My colleague has explained how to do so in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/60844/battery-voltage-measurement/247476#247476"&gt;this post&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: data read and write in internal flash of nrf52840 having softdevice</title><link>https://devzone.nordicsemi.com/thread/255388?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 06:03:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccc4844d-5479-4819-b471-8fa51ce5ef34</guid><dc:creator>Anupam</dc:creator><description>&lt;p&gt;No,i want to use modules that nordic provides,so which is better fstorage or fds.&lt;/p&gt;
&lt;p&gt;i want to start writing data in flash when 5% battery is left in device,each time i am writing 14 byte to flash,suppose i wrote 40 entries before battery drain fully and again on battery charge i want to&amp;nbsp; read all these whole data from flash and erase that section of flash.&lt;/p&gt;
&lt;p&gt;can you suggest which will be better fstorage or fds for these,also want to know for fds for each time writing in flash i have to take different key,right??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: data read and write in internal flash of nrf52840 having softdevice</title><link>https://devzone.nordicsemi.com/thread/255385?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 05:48:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb3d6573-bc21-4563-854f-3c9649c922bc</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I suggest using the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_fstorage.html"&gt;fstorage module&lt;/a&gt; for reading and writing data, as it is easy to use, and compatible with the Softdevice as well. Is there a reason you want another way to write/read data from flash than the modules that Nordic provides? You will have to use one of these modules in order to do flash operations when the SoftDevice is present.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>