<?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>nRF52840 DK USB HID with SoftDevice Fails with nRF5_SDK_15.0.0_a53641a</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37132/nrf52840-dk-usb-hid-with-softdevice-fails-with-nrf5_sdk_15-0-0_a53641a</link><description>Hello Nordic Experts, 
 I&amp;#39;d like to add the usb hid composite to one of BLE examples. I followed link below and combined the example usbd_hid_composite with ble_app_blinki_c. 
 https://devzone.nordicsemi.com/f/nordic-q-a/28119/nrf52840-template-project</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 May 2020 06:58:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37132/nrf52840-dk-usb-hid-with-softdevice-fails-with-nrf5_sdk_15-0-0_a53641a" /><item><title>RE: nRF52840 DK USB HID with SoftDevice Fails with nRF5_SDK_15.0.0_a53641a</title><link>https://devzone.nordicsemi.com/thread/250579?ContentTypeID=1</link><pubDate>Tue, 19 May 2020 06:58:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:940f457a-e2f8-4881-b822-f43630d31e90</guid><dc:creator>pipixia_8_8</dc:creator><description>&lt;p&gt;hi,i compile the project&amp;nbsp;&lt;em&gt;usbd_ble_uart, i use pca10056 ,sdk is&amp;nbsp;&lt;span&gt;SDK 16.0&amp;nbsp;.when try to stop the ble stack in the project ,there will show a log :Fatal error . so if it is impossible to stop the sd in the usb project ?my code like this:&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;/** @brief Application main function. */
int main(void)
{
    ret_code_t ret;
    static const app_usbd_config_t usbd_config = {
        .ev_state_proc = usbd_user_ev_handler
    };
    // Initialize.
    log_init();
    timers_init();

    buttons_leds_init();

    app_usbd_serial_num_generate();

    ret = nrf_drv_clock_init();
    APP_ERROR_CHECK(ret);

    NRF_LOG_INFO(&amp;quot;USBD BLE UART example started.&amp;quot;);

    ret = app_usbd_init(&amp;amp;usbd_config);
    APP_ERROR_CHECK(ret);

    app_usbd_class_inst_t const * class_cdc_acm = app_usbd_cdc_acm_class_inst_get(&amp;amp;m_app_cdc_acm);
    ret = app_usbd_class_append(class_cdc_acm);
    APP_ERROR_CHECK(ret);

    ble_stack_init();
    gap_params_init();
    gatt_init();
    services_init();
    advertising_init();
    conn_params_init();

    // Start execution.
    advertising_start();



//try to stop the  stack
    sd_ble_gap_adv_stop(m_advertising.adv_handle);
    uint32_t err_code;
    err_code = ble_conn_params_stop();
	  NRF_LOG_INFO(&amp;quot;err_code =%d&amp;quot;,err_code);
    APP_ERROR_CHECK(err_code);

    err_code = nrf_sdh_disable_request();
    APP_ERROR_CHECK(err_code);
    ASSERT(!nrf_sdh_is_enabled());





    ret = app_usbd_power_events_enable();
    APP_ERROR_CHECK(ret);

    // Enter main loop.
    for (;;)
    {
        while (app_usbd_event_queue_process())
        {
            /* Nothing to do */
        }
        idle_state_handle();
    }
}&lt;/pre&gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DK USB HID with SoftDevice Fails with nRF5_SDK_15.0.0_a53641a</title><link>https://devzone.nordicsemi.com/thread/142888?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 20:27:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16b26708-b399-499a-9981-6b6b9e885347</guid><dc:creator>HSh</dc:creator><description>&lt;p&gt;Thanks, I was not aware of that example. Totally helpful and resolved my issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DK USB HID with SoftDevice Fails with nRF5_SDK_15.0.0_a53641a</title><link>https://devzone.nordicsemi.com/thread/142815?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 12:22:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc1339d2-6bfb-40ba-a4cf-748493fd9efc</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In SDK 15.0 we added a &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/usbd_ble_uart_example.html?cp=4_0_0_4_5_49_1"&gt;USB+BLE example&lt;/a&gt;. &lt;/span&gt;You can find the source code and the project file of the example in the following folder:&amp;nbsp;&lt;em&gt;&amp;lt;SDK_InstallFolder&amp;gt;\examples\peripheral\usbd_ble_uart&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Please take a look at that example, to see how to combine USB and BLE/SoftDevice.&lt;/p&gt;
&lt;p&gt;Let me know if you still have issues with this after looking at that example.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Side note: If you are working on SDK 15.0 and nRF52840 DK 1.0.0, then there is a bug you should be aware of. See &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/34605/usb-not-enumerating-after-reset/133051#133051"&gt;this post&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DK USB HID with SoftDevice Fails with nRF5_SDK_15.0.0_a53641a</title><link>https://devzone.nordicsemi.com/thread/142708?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 00:40:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ee0454b-0bd3-4a0e-ac4f-8548d586dfbd</guid><dc:creator>HSh</dc:creator><description>&lt;p&gt;Here is my main.c file.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8304.main.c"&gt;devzone.nordicsemi.com/.../8304.main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>