<?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 Not Disabled</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69872/softdevice-not-disabled</link><description>Hi, 
 I am using the following snippet in my application. it is working fine sometimes but the other times it&amp;#39;s not coming out of the while loop. 
 can anybody point out the problem? 
 while(nrf_sdh_is_enabled()) { //ble_deinit(); err_code = nrf_sdh_disable_request</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Jan 2021 10:53:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69872/softdevice-not-disabled" /><item><title>RE: Softdevice Not Disabled</title><link>https://devzone.nordicsemi.com/thread/287918?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2021 10:53:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21233e9a-0cb5-4343-b7b2-7b5027e716db</guid><dc:creator>Surya</dc:creator><description>&lt;p&gt;No, but I changed my code so that disabling SD is not required. I think this ticket should be closed but how?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice Not Disabled</title><link>https://devzone.nordicsemi.com/thread/287880?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2021 09:20:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a0853dd-69a8-4a85-b1a2-23cdea21aa19</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Have you had any progress on this? The state flag is cleared right after sd_softdevice_disable() so there must be something preventing the programming from reaching this line. I suggest placing breakpoints on the return statements above sd_softdevice_disable() in nrf_sdh_disable_request() to see if there are any unexpected returns.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1610011453646v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice Not Disabled</title><link>https://devzone.nordicsemi.com/thread/287406?ContentTypeID=1</link><pubDate>Tue, 05 Jan 2021 07:41:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a628cee5-d4f8-4ad6-a01a-5b185e52f41a</guid><dc:creator>Surya</dc:creator><description>&lt;p&gt;yes,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrf_sdh_disable_request() return NRF_SUCCESS even when the Softdevice did not get disabled.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice Not Disabled</title><link>https://devzone.nordicsemi.com/thread/287161?ContentTypeID=1</link><pubDate>Mon, 04 Jan 2021 09:46:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b2ed587-61f3-48fa-b14d-2bc73ae09c45</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;No, only state observers should be able to reject the SD disable requests.&amp;nbsp; Does nrf_sdh_disable_request() return NRF_SUCCESS even when the Softdevice did not get disabled?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice Not Disabled</title><link>https://devzone.nordicsemi.com/thread/286920?ContentTypeID=1</link><pubDate>Wed, 30 Dec 2020 07:24:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d6b0569-b9fe-4a53-bea6-1f318d439dcb</guid><dc:creator>Surya</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;I am using NRF_SDH_BLE_OBSERVER in my application.&amp;nbsp; can this also deny&amp;nbsp;&lt;span&gt;NRF_SDH_EVT_DISABLE_REQUEST??&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice Not Disabled</title><link>https://devzone.nordicsemi.com/thread/286792?ContentTypeID=1</link><pubDate>Tue, 29 Dec 2020 07:57:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e550bd4-681f-4a0b-ba2c-e719c95293bc</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please check if you have any &lt;span&gt;&lt;a title="Example of registering a SoftDevice state observer" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_softdevice_handler.html?cp=7_1_3_48_5#lib_sdh_state_example"&gt;SoftDevice state observers&amp;nbsp; &lt;/a&gt;&lt;/span&gt;&lt;span&gt;that might potentially deny the NRF_SDH_EVT_DISABLE_REQUEST.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>