<?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>SDK 9.0.0 S130 softdevice + Flash write</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10074/sdk-9-0-0-s130-softdevice-flash-write</link><description>Hi. I try to fusion &amp;#39;s130_nrf51_1.0.0_softdevice&amp;#39; and &amp;#39;flash write&amp;#39;. I checked flash write. but when i implement flash write with s130 softdevice, it is not working. If i remove the flash_page_erase(); and flash_word_write();, it is working. 
 uint8_t</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 21 Aug 2016 15:37:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10074/sdk-9-0-0-s130-softdevice-flash-write" /><item><title>RE: SDK 9.0.0 S130 softdevice + Flash write</title><link>https://devzone.nordicsemi.com/thread/37352?ContentTypeID=1</link><pubDate>Sun, 21 Aug 2016 15:37:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:432e09ea-58c5-4a56-8e06-8e8280269925</guid><dc:creator>george</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Has this answer changed using the S130 SoftDevice v1.0.0? I am having similar trouble with the following code. I can&amp;#39;t seem to read/write the FLASH memory.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint32_t data_out[1];
uint8_t word_count = 1;
uint32_t* flash_value;
uint32_t pg_size = NRF_FICR-&amp;gt;CODEPAGESIZE;
uint32_t pg_num  = NRF_FICR-&amp;gt;CODESIZE - 1;  // Use last page in flash
uint32_t addr = (uint32_t *)(pg_size * pg_num);

debug_print(&amp;quot;Code Size: &amp;quot;, pg_size);
debug_print(&amp;quot;Page Number: &amp;quot;, pg_num);
debug_print(&amp;quot;Address: &amp;quot;, addr);




//WRITE VALUE TO FLASH
data_out[0] = 0xDEADBEEF;
 sd_flash_write(addr , data_out, 1);
debug_print(&amp;quot;Data Out w/ Write: &amp;quot;, data_out[0]);

//READ VALU FROM FLASH
flash_value = (uint32_t*)addr;
data_out[0] = *flash_value;
debug_print(&amp;quot;Data Out: &amp;quot;, data_out[0]);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 9.0.0 S130 softdevice + Flash write</title><link>https://devzone.nordicsemi.com/thread/37351?ContentTypeID=1</link><pubDate>Thu, 05 Nov 2015 07:27:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd21576a-e23c-43f3-89f7-699bfaa9453d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I&amp;#39;m glad to help. If you are satisfied with the answer I&amp;#39;d be happy if you could accept it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 9.0.0 S130 softdevice + Flash write</title><link>https://devzone.nordicsemi.com/thread/37350?ContentTypeID=1</link><pubDate>Thu, 05 Nov 2015 01:48:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:820e8fb0-efa0-41ac-a913-24be69815f72</guid><dc:creator>HakJae</dc:creator><description>&lt;p&gt;Thank you . It very helpful !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 9.0.0 S130 softdevice + Flash write</title><link>https://devzone.nordicsemi.com/thread/37349?ContentTypeID=1</link><pubDate>Wed, 04 Nov 2015 12:10:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:715acbdd-f9c3-48fa-acad-fa16ca2b60fa</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;You should not access the flash directly (as in the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk51.v9.0.0/flashwrite_example.html"&gt;Flash Write Example&lt;/a&gt;) when using the SoftDevice. Instead you have two options:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Using the sd_flash* functions from the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s110.api.v8.0.0/group__nrf__soc__api.html"&gt;SoftDevice SoC library API&lt;/a&gt; (such as &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s110.api.v8.0.0/group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html#ga8b49f2e72e97291aecc18ce396956eed"&gt;sd_flash_write&lt;/a&gt; and  &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s110.api.v8.0.0/group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html#ga9c93dd94a138ad8b5ed3693ea38ffb3e"&gt;sd_flash_page_erase&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;Using the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk51.v9.0.0/group__persistent__storage.html"&gt;Persistent Storage Interface (pstorage)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>