<?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>S132 sd_app_evt_wait() blocks for seconds during connection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18281/s132-sd_app_evt_wait-blocks-for-seconds-during-connection</link><description>I am running an appliction with S132 soft device, build on top of SDK 12.0.0. Problem is that the application sometimes stops running for ten seconds, or even more, when Bluetooth connection is established. According to my debug-prints it looks like sd_app_evt_wait</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 09 Dec 2016 12:43:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18281/s132-sd_app_evt_wait-blocks-for-seconds-during-connection" /><item><title>RE: S132 sd_app_evt_wait() blocks for seconds during connection</title><link>https://devzone.nordicsemi.com/thread/70591?ContentTypeID=1</link><pubDate>Fri, 09 Dec 2016 12:43:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24bf1ea6-57f7-40e4-88a9-a04554239f69</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Forgot to refresh the page...&lt;/p&gt;
&lt;p&gt;Feel free to close the case if it can be solved in the other thread.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S132 sd_app_evt_wait() blocks for seconds during connection</title><link>https://devzone.nordicsemi.com/thread/70590?ContentTypeID=1</link><pubDate>Fri, 09 Dec 2016 12:39:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:881e1673-ee33-4bdc-a183-e6efd3756756</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;sd_app_evt_wait() does not block. It does the same as __WFE() and in addition checks whether the interrupt that woke up the CPU is SoftDevice specific (like RADIO, TIMER0 or RTC0) or application specific, in which case it will jump to the application/return from the function.&lt;/p&gt;
&lt;p&gt;My guess is that you are running code from interrupt context all the time, therefore never executing the app_timer calls or never going to sleep. You can check if this is the case by measuring the current consumption. If the current consumption never goes to 2-3uA (or a couple of 100s uA if you are running timers or similar), then you know that the application is not returning to sleep, i.e. never calling sd_app_evt_wait().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S132 sd_app_evt_wait() blocks for seconds during connection</title><link>https://devzone.nordicsemi.com/thread/70589?ContentTypeID=1</link><pubDate>Fri, 09 Dec 2016 10:32:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7d8e4de-02b5-45c0-8961-25180b0ae4b9</guid><dc:creator>Jarmo</dc:creator><description>&lt;p&gt;That question should be reopened, since I am hitting it again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S132 sd_app_evt_wait() blocks for seconds during connection</title><link>https://devzone.nordicsemi.com/thread/70588?ContentTypeID=1</link><pubDate>Fri, 09 Dec 2016 10:31:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2893528-54f8-498f-acbb-c67c74026166</guid><dc:creator>Jarmo</dc:creator><description>&lt;p&gt;This seems to converge into this problem: &lt;a href="https://devzone.nordicsemi.com/question/105209/restartig-app_timer-does-not-work-with-nrf52832-and-sdk1200/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>