<?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>softdevice_enable() does not return on nRF52, sdk12.0.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21968/softdevice_enable-does-not-return-on-nrf52-sdk12-0-0</link><description>I am using s132_nrf52_3.0.0_softdevice.hex and sdk12 and compiling with arm-none-eabi-gcc. The problem is that the bluetooth set up just jams at: 
 // Enable BLE stack.
 err_code = softdevice_enable(&amp;amp;ble_enable_params);
 APP_ERROR_CHECK(err_code);</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 May 2017 12:35:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21968/softdevice_enable-does-not-return-on-nrf52-sdk12-0-0" /><item><title>RE: softdevice_enable() does not return on nRF52, sdk12.0.0</title><link>https://devzone.nordicsemi.com/thread/86194?ContentTypeID=1</link><pubDate>Fri, 12 May 2017 12:35:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:940fdac2-b7b8-4b73-9b65-cb0ea5473733</guid><dc:creator>Jarmo</dc:creator><description>&lt;p&gt;Okay, I see, thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: softdevice_enable() does not return on nRF52, sdk12.0.0</title><link>https://devzone.nordicsemi.com/thread/86193?ContentTypeID=1</link><pubDate>Fri, 12 May 2017 12:28:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62a40dad-479e-41c4-bde4-38c9d28b5cf9</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;The problem is not in the SoftDevice, the problem is that modules in the SDK(including the SoftDevice-handler module in this case) are trying to print with the NRF_LOG module because the &lt;code&gt;NRF_LOG_ENABLED&lt;/code&gt; flag is set to true. If you remove the &amp;quot;NRF_LOG_INIT()&amp;quot;, you also need to set the &lt;code&gt;NRF_LOG_ENABLED&lt;/code&gt; to 0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: softdevice_enable() does not return on nRF52, sdk12.0.0</title><link>https://devzone.nordicsemi.com/thread/86198?ContentTypeID=1</link><pubDate>Fri, 12 May 2017 06:54:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8572fe97-2d7f-4e6c-8c8b-e407a8de40c9</guid><dc:creator>Jarmo</dc:creator><description>&lt;p&gt;Not sure. But since the softdevice is not recompiled anyway, would it have any effect in this case?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: softdevice_enable() does not return on nRF52, sdk12.0.0</title><link>https://devzone.nordicsemi.com/thread/86197?ContentTypeID=1</link><pubDate>Thu, 11 May 2017 14:09:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccf6ef82-5354-47b6-9ae7-71c4877ca117</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;After removing &amp;quot;NRF_LOG_INIT()&amp;quot;, did you also set &lt;code&gt;NRF_LOG_ENABLED&lt;/code&gt; to 0 in &lt;code&gt;sdk_config.h&lt;/code&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: softdevice_enable() does not return on nRF52, sdk12.0.0</title><link>https://devzone.nordicsemi.com/thread/86196?ContentTypeID=1</link><pubDate>Thu, 11 May 2017 12:11:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f870b63-8b6b-4f26-8e8d-3c4c09e885e6</guid><dc:creator>Jarmo</dc:creator><description>&lt;p&gt;Yep, that is the SDK I am using. The softdevice_enable() now prints&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;**SDH:INFO:sd_ble_enable: RAM START at 0x20002168
SDH:WARNING:sd_ble_enable: app_ram_base should be adjusted to 0x20002128
SDH:WARNING:ram size should be adjusted to 0xded8**
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;So I assume those print outs will fail if NRF_LOG is not initialized. When I adjust those RAM values correctly, it still prints&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;SDH:INFO:sd_ble_enable: RAM START at 0x20002128
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;So maybe NRF_LOG_INIT() is needed even then?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: softdevice_enable() does not return on nRF52, sdk12.0.0</title><link>https://devzone.nordicsemi.com/thread/86195?ContentTypeID=1</link><pubDate>Thu, 11 May 2017 10:35:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3476525-d05b-45c5-a38e-031f9cc0adab</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I need to check that. You are using SDK 12.0.0?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: softdevice_enable() does not return on nRF52, sdk12.0.0</title><link>https://devzone.nordicsemi.com/thread/86192?ContentTypeID=1</link><pubDate>Thu, 11 May 2017 09:02:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87eedb02-39a8-448f-8668-00c75f44bfa4</guid><dc:creator>Jarmo</dc:creator><description>&lt;p&gt;It looks like NRF_LOG_INIT() must be called in order to get softdevice working. This is a bit bad dependency.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>