<?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>52833 esb+usbd use together issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94510/52833-esb-usbd-use-together-issue</link><description>I use SDK17.10, when I send radio data using the esb，At this time, insert the usb, it takes a long time to enumerate the usb successfully; when I disable the esb,I plugged in the usb and soon the enumeration was successful.I wonder what causes USB enumeration</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Dec 2022 00:17:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94510/52833-esb-usbd-use-together-issue" /><item><title>RE: 52833 esb+usbd use together issue</title><link>https://devzone.nordicsemi.com/thread/399549?ContentTypeID=1</link><pubDate>Thu, 08 Dec 2022 00:17:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94979315-5960-485e-9088-9588832c0615</guid><dc:creator>summer</dc:creator><description>&lt;p&gt;hi,thank you very much,l got it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52833 esb+usbd use together issue</title><link>https://devzone.nordicsemi.com/thread/399475?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2022 14:38:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ca22855-12a4-46b6-ae4f-9049adf1206f</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Interesting. It should be possible to enter sleep, even when using USB. The critical thing is that you make sure to run app_usbd_event_queue_process() as long as it returns true, before you can go to sleep.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The snippet below is from one of the USB examples in the SDK:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    while (true)
    {
        while (app_usbd_event_queue_process())
        {
            /* Nothing to do */
        }
        
        if(m_send_flag)
        {
            static int  frame_counter;

            size_t size = sprintf(m_tx_buffer, &amp;quot;Hello USB CDC FA demo: %u\r\n&amp;quot;, frame_counter);

            ret = app_usbd_cdc_acm_write(&amp;amp;m_app_cdc_acm, m_tx_buffer, size);
            if (ret == NRF_SUCCESS)
            {
                ++frame_counter;
            }
        }
        

        UNUSED_RETURN_VALUE(NRF_LOG_PROCESS());
        /* Sleep CPU only if there was no interrupt since last loop processing */
        __WFE();
    }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52833 esb+usbd use together issue</title><link>https://devzone.nordicsemi.com/thread/399342?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2022 08:50:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6744d78-5984-4b4c-97df-70fb36cc1ac3</guid><dc:creator>summer</dc:creator><description>&lt;p&gt;hi,The sleep(nrf_pwr_mgmt_run())&amp;nbsp; function cannot be used when working in USB&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52833 esb+usbd use together issue</title><link>https://devzone.nordicsemi.com/thread/399331?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2022 08:23:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd4b371c-a596-48e6-9881-d04d6db5971b</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Good to hear!&lt;/p&gt;
&lt;p&gt;Do you mind sharing what the problem was?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52833 esb+usbd use together issue</title><link>https://devzone.nordicsemi.com/thread/399171?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2022 12:07:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6df13d3-24e9-40c1-a604-604d5b0cb8b9</guid><dc:creator>summer</dc:creator><description>&lt;ul&gt;
&lt;li&gt;
&lt;p class="src grammarSection highlight" data-group="1-1"&gt;Hello, thank you very much. I&amp;#39;ve taken care of it&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 52833 esb+usbd use together issue</title><link>https://devzone.nordicsemi.com/thread/398977?ContentTypeID=1</link><pubDate>Mon, 05 Dec 2022 13:10:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf4caaff-ffa5-4cf6-a92f-5d65912a85e7</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Approximately how many packets are you sending through ESB every second, and how large is the payload?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For every packet sent there will be some interrupts firing and some code that has to be run in order to handle packet buffering etc, and this will take away CPU cycles that could otherwise have been used by the USB stack.&lt;/p&gt;
&lt;p&gt;You are making sure to call&amp;nbsp;app_usbd_event_queue_process() repeatedly from the main loop, even when ESB is running?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>