<?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>flashwrite</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36454/flashwrite</link><description>i need use flashwrite in my code, but i found sometims when i write data in flash, the BLE connecting sometimes is borken, i used this funciton flash_word_write(uint32_t * address, uint32_t value) 
 it was said when you need to use softdevise , you need</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Jul 2018 06:39:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36454/flashwrite" /><item><title>RE: flashwrite</title><link>https://devzone.nordicsemi.com/thread/140156?ContentTypeID=1</link><pubDate>Mon, 16 Jul 2018 06:39:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8be0934-e894-4f47-b8e5-90fc07676043</guid><dc:creator>Adrian Eggenberger</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;If you use a softdevice you need to use the dedicated flash access functions the softdevice provides itself. Normally these are the functions &amp;quot;sd_flash_write&amp;quot; and &amp;quot;sd_flash_erase_page&amp;quot;. The specification for these functions can be found in the Nordic InfoCenter in the Softdevice documentation.&lt;/p&gt;
&lt;p&gt;Keep in mind that these two functions only start the write/erase operation. Once the operation has been completed (or failed) the softdevice interrupt is triggered and a event can be read from the event queue of the softdevice.&lt;/p&gt;
&lt;p&gt;The Nordic&amp;#39;s SDK provides some higher level libraries for flash access with or without softdevice usage (check out fstorage library in the SDK). These high level API can be used, but it&amp;#39;s also possible to use the softdevice functions directly as we do in our projects.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Maybe one additional remark. If the BLE is active there is a chance that a flash operation may fail. More details can be found &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.sds/dita/softdevices/s130/flash_mem_api/flash_mem_api.html?cp=2_3_1_0_7" rel="noopener noreferrer" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards Adrian&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: flashwrite</title><link>https://devzone.nordicsemi.com/thread/140151?ContentTypeID=1</link><pubDate>Mon, 16 Jul 2018 06:21:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e04af89f-381a-4d64-bc00-7201bb6d4923</guid><dc:creator>Carey</dc:creator><description>&lt;p&gt;Remark: I have used the SDK11&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>