<?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>write/read to the flash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49007/write-read-to-the-flash</link><description>Hi, 
 I am currently using SEGGER Embedded Studio version 4.12, nRF5 SDK version 15.2.0, nRF5 SDK for Mesh version 3.1.0, Hardware BMD-300 Evaluation Board. 
 i using the uart to send data over the ble mesh and all work fine. now i want to write/read</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 01 Jul 2019 13:02:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49007/write-read-to-the-flash" /><item><title>RE: write/read to the flash</title><link>https://devzone.nordicsemi.com/thread/195658?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 13:02:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b931af1c-0a87-45d7-ac5a-29e959226d42</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I see that you closed this ticket. Will continue in your new ticket:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/49166/fail-to-using-fds-in-uart-mesh-program"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/49166/fail-to-using-fds-in-uart-mesh-program&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: write/read to the flash</title><link>https://devzone.nordicsemi.com/thread/194885?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2019 12:56:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5c4718d-a14b-4da7-b181-805548c84fc3</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Another&amp;nbsp;&lt;span&gt;issue with using the same address over and over, and just erasing the flash page in between is that you will soon wear out the flash.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is one of the things that FDS manages for you...&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: write/read to the flash</title><link>https://devzone.nordicsemi.com/thread/194884?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2019 12:52:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d1501b7-366d-4c15-b4d1-dc27510450a5</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Do you refer to flash_manager_remove() from the Mesh SDK? It will also remove all the mesh network settings for the device. The issue with using the same address over and over, and just erasing the flash page in between is that if something happens, e.g. you lose power after erasing and before writing, your device may not operate successfully (depends on your application).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you intend to create a mesh node, I would not recommend using flash_manager_remove to update your flash record.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: write/read to the flash</title><link>https://devzone.nordicsemi.com/thread/194875?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2019 12:17:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9be4c59f-91e8-4d51-9b35-2f5755cc1a51</guid><dc:creator>noam</dc:creator><description>&lt;p&gt;thanks for the help!!!&lt;/p&gt;
&lt;p&gt;i now &lt;span&gt;understand my issue.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;i success to write,read and update the flash by using the function in the &lt;strong&gt;flash_manager.c&lt;/strong&gt;&amp;nbsp;(the same way in the attached file here).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;to erase i&amp;#39;m using &lt;strong&gt;flash_manager_remove(flash_manager_t * p_manager);&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: write/read to the flash</title><link>https://devzone.nordicsemi.com/thread/194814?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2019 09:14:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d92a840b-f63d-47ac-883e-bd78a618d3ab</guid><dc:creator>awneil</dc:creator><description>[quote userid="26071" url="~/f/nordic-q-a/49007/write-read-to-the-flash/194790"]You may not be aware that the flash can only written to once. Then you need to erase entire flash pages before you write to them again[/quote]
&lt;p&gt;Indeed.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/noamb"&gt;noam&lt;/a&gt; This applies to any flash - it is not specific to Nordic or nRF52 or ARM Cortex.&lt;/p&gt;
&lt;p&gt;See:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/47969/difference-between-fds_record_update-and-fds_record_write/190460#190460"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/47969/difference-between-fds_record_update-and-fds_record_write/190460#190460&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;See also:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/48264/write-to-nordic-eeprom-without-using-cli/191581#191581"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/48264/write-to-nordic-eeprom-without-using-cli/191581#191581&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: write/read to the flash</title><link>https://devzone.nordicsemi.com/thread/194790?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2019 08:29:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13e364ef-0c22-4025-af2d-d07f54e95d04</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/awneil"&gt;awneil&lt;/a&gt; is right. If you want to store some variables and update them from time to time, I suggest that you look into FDS. You may not be aware that the flash can only written to once. Then you need to erase entire flash pages before you write to them again. This means that you can&amp;#39;t just update a specific address any number of times. FDS will handle the placement of the flash records for you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: write/read to the flash</title><link>https://devzone.nordicsemi.com/thread/194778?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2019 07:52:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6424b99a-7002-4526-b430-7778c6546023</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;That does not require it to be at a specific address!&lt;/p&gt;
&lt;p&gt;Have you looked at:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;Flash Storage&lt;/strong&gt;:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_fstorage.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_fstorage.html&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;FDS&lt;/strong&gt;:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_fds.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_fds.html&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: write/read to the flash</title><link>https://devzone.nordicsemi.com/thread/194777?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2019 07:50:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5456bfa5-c453-4a9a-bc91-856c01bf5272</guid><dc:creator>noam</dc:creator><description>&lt;p&gt;because its a data that i want to up date and read it every time that the device make restart/power up.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: write/read to the flash</title><link>https://devzone.nordicsemi.com/thread/194763?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2019 07:22:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79f5ffef-5588-47f3-a459-1c9506d10e49</guid><dc:creator>awneil</dc:creator><description>[quote userid="78792" url="~/f/nordic-q-a/49007/write-read-to-the-flash"] i want to write/read user data to/from the flash from specific address [/quote]
&lt;p&gt;Why does it have to be a specific address?&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.catb.org/esr/faqs/smart-questions.html#goal"&gt;http://www.catb.org/esr/faqs/smart-questions.html#goal&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>