<?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>nRF51822 FLASH Erase Error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/393/nrf51822-flash-erase-error</link><description>nRF51822 DK. Keil can download program. But in my pragram, when receive a UART command to erase
FLASH page 248, use ble_flash.c 
 static void flash_page_erase(uint32_t * p_page)
{
 // Turn on flash erase enable and wait until the NVMC is ready.
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Sep 2013 01:01:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/393/nrf51822-flash-erase-error" /><item><title>RE: nRF51822 FLASH Erase Error</title><link>https://devzone.nordicsemi.com/thread/2060?ContentTypeID=1</link><pubDate>Fri, 06 Sep 2013 01:01:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecaa5a68-7522-4112-9b3d-bb9ad03c4cf7</guid><dc:creator>bayi255</dc:creator><description>&lt;p&gt;OK, thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 FLASH Erase Error</title><link>https://devzone.nordicsemi.com/thread/2059?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2013 07:55:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29a593d7-e2bf-4f33-9497-53b1a1beb67b</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;If you need to also erase pages while in a connection, you need to make sure the connection interval is sufficiently long for this to be possible, i.e. &amp;gt; 21 ms (most likely &amp;gt; (21 ms + some processing time)), and do the erase right after the radio event. The ble_radio_notification module from the SDK can be used to get a software interrupt both some time before and right after an event.&lt;/p&gt;
&lt;p&gt;If you have further questions on this, or can&amp;#39;t get it working, it might make sense to post it as a separate question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 FLASH Erase Error</title><link>https://devzone.nordicsemi.com/thread/2058?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2013 23:42:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2165ea32-f741-4698-9173-7bcb21844c10</guid><dc:creator>bayi255</dc:creator><description>&lt;p&gt;But My Product need receive setting &amp;amp; save in FLASH.
How to avoid FLASH Page Erase and BLE radio? examlpe attachments picture?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/radio-notification.JPG"&gt;radio notification.JPG&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 FLASH Erase Error</title><link>https://devzone.nordicsemi.com/thread/2057?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2013 11:45:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a94a43fa-9eb6-4a09-b7b5-274ca79f0466</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Good! I didn&amp;#39;t realize that you were also doing BLE communication when this failed.&lt;/p&gt;
&lt;p&gt;Feel free to accept your own answer, by clicking the button below your answer! This will make it easier for others to find the solution. :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 FLASH Erase Error</title><link>https://devzone.nordicsemi.com/thread/2056?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2013 01:45:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdad9aed-4322-40ec-a3c8-eea59b6477cd</guid><dc:creator>bayi255</dc:creator><description>&lt;p&gt;I have found it! It&amp;#39;s BLE radio active while FLASH Erase! Because Erase Page in FLASH memroy need time(21ms type), radio notificatio can&amp;#39;t guarantee safely operate. example: if first Erase FLASH Page while radio not active, then during 21ms radio avtive.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 FLASH Erase Error</title><link>https://devzone.nordicsemi.com/thread/2055?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2013 08:08:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a05cb20-53a2-4596-8ce6-a2b9c9a1ef80</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Did you see my answer to your &lt;a href="https://devzone.nordicsemi.com/index.php/ram-banks-ram-retention"&gt;other question regarding this error&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;If that did not help, could it be that you actually erase the page you&amp;#39;re running from? How do you call this method? You do a cast of a uint32_t pointer to a uint32_t, which could easily give problems if you&amp;#39;re not careful with the parameter.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>