<?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>nRF51422 can not sleep after flash erasing (s310)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14330/nrf51422-can-not-sleep-after-flash-erasing-s310</link><description>I&amp;#39;m using the softdevice S310 on nRF51422 and when the softdevice is enable and I erase flash, the device won&amp;#39;t go to sleep. 
 My code implementation is like as below: 
 int main(void)
{
 ANT_init(); //into this function softdevice will be enabled</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Jun 2016 12:23:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14330/nrf51422-can-not-sleep-after-flash-erasing-s310" /><item><title>RE: nRF51422 can not sleep after flash erasing (s310)</title><link>https://devzone.nordicsemi.com/thread/54712?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2016 12:23:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:862c8933-157e-4263-a3af-0b10541e35d9</guid><dc:creator>Luca122131</dc:creator><description>&lt;p&gt;Hi, adding &lt;code&gt;sd_app_evt_wait();&lt;/code&gt; after &lt;code&gt;sd_flash_page_erase(PAGE_NUM);&lt;/code&gt;resolves the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51422 can not sleep after flash erasing (s310)</title><link>https://devzone.nordicsemi.com/thread/54711?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2016 11:46:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0e49b09-5c80-4e77-bb1e-1ec8ffb5c65d</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;Can you check the return code of sd_flash_page_erase? You can also check if there is any pending interrupts/evens using a debugger.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>