<?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>nrf52832 SDK15.2 softdevice6.1.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51014/nrf52832-sdk15-2-softdevice6-1-0</link><description>the execution procedure of my application as following: 
 bluetooth_init(void) -&amp;gt; start advertising (timeout 10s) -&amp;gt; nrf_sdh_disable_request() -&amp;gt; nrf_pwr_mgmt_run() -&amp;gt; after 1min -&amp;gt; nrf_sdh_enable_request() -&amp;gt; restart adverting 
 the result is: 
 &amp;lt;error</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 May 2020 11:35:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51014/nrf52832-sdk15-2-softdevice6-1-0" /><item><title>RE: nrf52832 SDK15.2 softdevice6.1.0</title><link>https://devzone.nordicsemi.com/thread/250680?ContentTypeID=1</link><pubDate>Tue, 19 May 2020 11:35:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9dddd7df-2dd7-473a-b1d7-64239463b948</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Unless it is a very similar question, it is better to create a new ticket, instead of reviving old threads.&lt;/p&gt;
&lt;p&gt;You have another return value from another softdevice call (I think). Is it ble_stack_init() that returns NRF_ERROR_INVALID_STATE? Perhaps it is already initialized? You should investigate which function inside ble_stack_init() that returned 8. You say it is requested to be disabled. Are you sure it is completely disabled? Did you get an event saying that the disable was completed?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If these hints doesn&amp;#39;t help, please create a new ticket.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 SDK15.2 softdevice6.1.0</title><link>https://devzone.nordicsemi.com/thread/250582?ContentTypeID=1</link><pubDate>Tue, 19 May 2020 07:08:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c23a1d01-20d8-40e1-b13c-10d4ed4a31f8</guid><dc:creator>lavande</dc:creator><description>&lt;p&gt;@Andreas, It will catch the ERROR 8 [NRF_ERROR_INVALID_STATE]&amp;nbsp; if we trying to call &lt;span&gt;ble_stack_init&amp;nbsp; before ble_start_advertising(), on the condition that softdevice is request to disable.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 SDK15.2 softdevice6.1.0</title><link>https://devzone.nordicsemi.com/thread/204196?ContentTypeID=1</link><pubDate>Thu, 15 Aug 2019 06:55:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8da115d-9a54-4793-9f6c-c93e72e6cb3d</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Looks like you haven&amp;#39;t enabled the SoftDevice properly.&lt;/p&gt;
&lt;p&gt;Have you called ble_stack_init()?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void ble_stack_init(void)
{
    ret_code_t err_code;

    err_code = nrf_sdh_enable_request();
    APP_ERROR_CHECK(err_code);

    // Configure the BLE stack using the default settings.
    // Fetch the start address of the application RAM.
    uint32_t ram_start = 0;
    err_code = nrf_sdh_ble_default_cfg_set(APP_BLE_CONN_CFG_TAG, &amp;amp;ram_start);
    APP_ERROR_CHECK(err_code);

    // Enable BLE stack.
    err_code = nrf_sdh_ble_enable(&amp;amp;ram_start);
    APP_ERROR_CHECK(err_code);

    // Register a handler for BLE events.
    NRF_SDH_BLE_OBSERVER(m_ble_observer, APP_BLE_OBSERVER_PRIO, ble_evt_handler, NULL);
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>