<?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>application fails to wake up from sleep</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6000/application-fails-to-wake-up-from-sleep</link><description>Before starting advertising, we want to write some configuration information to NVM. In order to write to NVM, we first call sd_flash_page_erase and wait for the response from the softDevice. While waiting, we call sd_app_evt_wait. We expect to receive</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Mar 2015 01:51:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6000/application-fails-to-wake-up-from-sleep" /><item><title>RE: application fails to wake up from sleep</title><link>https://devzone.nordicsemi.com/thread/20969?ContentTypeID=1</link><pubDate>Wed, 18 Mar 2015 01:51:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe921c10-5e7b-4a6c-b8ae-5eb064d1213b</guid><dc:creator>kelliott</dc:creator><description>&lt;ul&gt;
&lt;li&gt;radio notification priority is high: sd_nvic_SetPriority(SWI1_IRQn, NRF_APP_PRIORITY_HIGH);&lt;/li&gt;
&lt;li&gt;The advertising interval for the first couple minutes is 20ms, but we are not advertising when this bug happens. So I really don’t think the interval should be relevant.&lt;/li&gt;
&lt;li&gt;We do not get any error code from the call to sd_flash_page_erase.&lt;/li&gt;
&lt;li&gt;We are erasing page: 252 (then we will write that page with some configuration data)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I will try to figure out a way to run your project on my board. It won&amp;#39;t be trivial, but hopefully by tomorrow.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: application fails to wake up from sleep</title><link>https://devzone.nordicsemi.com/thread/20968?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2015 13:10:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7935c588-d7f9-49aa-afaa-25eb7275b50d</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;It is not a behavior that is expected or that we recognize immediately. I have tried to reproduce the issue with the description that you have provided, but without luck. I attach my test code. Perhaps you can run my test code on the devices in question on your side to see if you can produce the issue with it.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_template_5F00_with_5F00_flash_5F00_erase_5F00_operation.zip"&gt;ble_app_template_with_flash_erase_operation.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Have you set priority low for the radio notifications?&lt;br /&gt;
What is your advertising interval?&lt;br /&gt;
Do you get any error code when you call the sd_flash_page_erase operation?&lt;br /&gt;
What flash page are you erasing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: application fails to wake up from sleep</title><link>https://devzone.nordicsemi.com/thread/20966?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2015 22:23:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac70a1eb-dd40-4f08-959f-a158d8311a66</guid><dc:creator>kelliott</dc:creator><description>&lt;p&gt;Tags: nrf51822, s110, softdevice 6.0.0.&lt;/p&gt;
&lt;p&gt;This whole problem happens during our startup process before we start advertising (sd_ble_gap_adv_start). We are not confident that our fix truly resolves the issue, or just masks it.&lt;/p&gt;
&lt;p&gt;We don&amp;#39;t start advertising until the flash erase/write is complete (in the code both before and after the &amp;quot;fix&amp;quot;). Now we&amp;#39;ve moved radio notification initialization to a point later in the process, but it is also before we start advertising.  I don&amp;#39;t expect that sd_radio_notification_cfg_set should cause any radio activity if we haven&amp;#39;t yet turned on advertising, correct? So it’s hard to see how it can affect writes to NVM, and it&amp;#39;s hard to be convinced that our fix is really a fix.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: application fails to wake up from sleep</title><link>https://devzone.nordicsemi.com/thread/20967?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2015 13:53:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbb8401e-7466-468d-9387-385c96a54bab</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;It seems that you have your case resolved by moving your radio notification initialization just before starting advertising, am I correct?&lt;/p&gt;
&lt;p&gt;A flash erase operation takes about 21ms. What is the frequency of your radio events, i.e. what is your connection interval?&lt;/p&gt;
&lt;p&gt;What softdevice are you using, type and version?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>