<?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>sd_app_evt_wait() returns error code 2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1395/sd_app_evt_wait-returns-error-code-2</link><description>I&amp;#39;ve cut the BLE proximity app example code back to doing nothing more than this: 
 int main(void)
{
 uint32_t err_code;
 
 leds_init();

 for (;;)
 {
 power_manage();
 }
}
 
 LED 7 (ASSERT_LED_PIN_NO) is on straight away. Debugging power_manage</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Jan 2014 10:47:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1395/sd_app_evt_wait-returns-error-code-2" /><item><title>RE: sd_app_evt_wait() returns error code 2</title><link>https://devzone.nordicsemi.com/thread/6280?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2014 10:47:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7590fec4-6f64-4ca8-ace7-7019ac72412d</guid><dc:creator>Eliot Stock</dc:creator><description>&lt;p&gt;Will do, thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_app_evt_wait() returns error code 2</title><link>https://devzone.nordicsemi.com/thread/6279?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2014 10:45:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2277fa85-a58f-47c3-99db-3af2fe7e1ab5</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;May I suggest taking a look at the SDK applications, and the code you have ripped out? :-) Among them, you&amp;#39;ll find the ble_stack_init() function, which does exactly this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_app_evt_wait() returns error code 2</title><link>https://devzone.nordicsemi.com/thread/6278?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2014 10:43:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93c31e74-9875-486c-b547-e8e6525c09c4</guid><dc:creator>Eliot Stock</dc:creator><description>&lt;p&gt;Thanks. And how do I enable the soft device?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_app_evt_wait() returns error code 2</title><link>https://devzone.nordicsemi.com/thread/6277?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2014 09:24:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecda492f-6349-4178-875a-61b55985afcc</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;You should refer to nrf_error.h for information on the error codes. There, you can see that 0x02 means NRF_ERROR_SOFTDEVICE_NOT_ENABLED.&lt;/p&gt;
&lt;p&gt;All softdevice function calls (identified by their sd_* prefix) requires the softdevice to be enabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>