<?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>Enable/Disable BLE Stack and Softdevice -- SDK 15.3 S132</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46836/enable-disable-ble-stack-and-softdevice----sdk-15-3-s132</link><description>Have an application that configures a wifi SOC using spim before enabling BLE scanner. 
 When it is running there are 4 timer events running and the main loop check status and sends data using the wifi soc. 
 All that works fine until there is a socket</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Jul 2019 17:42:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46836/enable-disable-ble-stack-and-softdevice----sdk-15-3-s132" /><item><title>RE: Enable/Disable BLE Stack and Softdevice -- SDK 15.3 S132</title><link>https://devzone.nordicsemi.com/thread/199356?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2019 17:42:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9014792-a2a3-4e65-ae06-8a1d40b5fe79</guid><dc:creator>Guilherme de Paula</dc:creator><description>&lt;p&gt;The soft reset will not leave your variables intact.&amp;nbsp; The variables will be reset to their power-up state and the modules will be re-initialized.&lt;/p&gt;
&lt;p&gt;As long as your are not connected, not advertising and not scanning, a blocking function (Ints disabled) will not interfere with the stack scheduling of those BLE events (since they are not running).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable/Disable BLE Stack and Softdevice -- SDK 15.3 S132</title><link>https://devzone.nordicsemi.com/thread/185222?ContentTypeID=1</link><pubDate>Fri, 03 May 2019 14:13:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f02ba185-c2b7-4deb-88a0-ab7a211d9a47</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Can you clarify what you mean by blocking? Is the function running in an interrupt context with priority &amp;#39;0&amp;#39; (highest)? The Softdevice should not assert if it&amp;#39;s not doing any timing critical (maintaining a BLE connection, advertising, etc). Have you seen any errors from the Softdevice when running this function?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A soft reset (call to nvic_systemreset() from the code) will make the device reboot and everything will be re-initialized.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable/Disable BLE Stack and Softdevice -- SDK 15.3 S132</title><link>https://devzone.nordicsemi.com/thread/185202?ContentTypeID=1</link><pubDate>Fri, 03 May 2019 13:13:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6924aeed-cf6e-43c1-b9c8-80f62e6c8a96</guid><dc:creator>cemerick</dc:creator><description>&lt;p&gt;If I just stop the scanning (and stack ?) will that allow blocking functions that take &amp;gt;100ms to run without causing an exception ? I will certainly change the lfclk per your suggestions, thanks. Sorry, I am not following/understanding what you mean by performing a soft reset. Does that take the system back to a state where all the variables are still intact but all the modules need to be re-initialized ? I will research but would appreciate a little more info on what you have in mind in that area.&lt;/p&gt;
&lt;p&gt;Thanks so much for the help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable/Disable BLE Stack and Softdevice -- SDK 15.3 S132</title><link>https://devzone.nordicsemi.com/thread/185148?ContentTypeID=1</link><pubDate>Fri, 03 May 2019 11:10:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a0489f8-1002-4818-abf8-e44d3c298291</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you sure that you need to completely disable the Softdevice? I think it should be sufficient to stop scanning/advertising. That said, if you need to disable the Softdevice you can call&amp;nbsp;nrf_drv_clock_lfclk_request() before ble_stack_init(). This will tell the clock driver that there is another user/module that relies on the LF clock&amp;nbsp;so it won&amp;#39;t be released when you disable the Softdevice.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp;I think it should work if you keep the LF clock running. Sounds like the SPIM and RTC may have to be re-initialized otherwise (have not verified it here).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3. Would it be acceptable to perform a soft reset to recover instead of disabling the Softdevice?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>