<?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>USB Bulk IN Becomes Busy</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30405/usb-bulk-in-becomes-busy</link><description>Hi, 
 
 I&amp;#39;m trying to use a Bulk IN endpoint (EPIN3) and am running into an issue. 
 I call the nrf_drv_usbd_ep_is_busy() function to test whether it is safe to proceed with a transfer. 
 Whenever it reports not busy I proceed and everything seems OK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Oct 2019 14:12:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30405/usb-bulk-in-becomes-busy" /><item><title>RE: USB Bulk IN Becomes Busy</title><link>https://devzone.nordicsemi.com/thread/216412?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 14:12:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:020f5532-f046-4a03-89b0-955ea4ef420f</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This thread is quite old, and related to issues in engineering silicon. Please create a new ticket with your inquiry.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;H&amp;aring;kon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Bulk IN Becomes Busy</title><link>https://devzone.nordicsemi.com/thread/216395?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 13:26:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b9fe825-752d-4b99-858a-a885d1d50826</guid><dc:creator>iceseyes</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;m experiencing the same problem with the nRF52840 chips using SDK 15.3. In my main loop&amp;nbsp;&lt;span&gt;I call the&amp;nbsp;nrf_drv_usbd_ep_is_busy() but on linux and os x after the first read the ep return ready and I can read new input from host. On Windows,&amp;nbsp;m_ep_dma_waiting never return to 0 and I can&amp;#39;t read any other data. my test is this.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have noticed that on Linux and on Mac after I sent the reply to host two RESET event are dispatched. But on Windows this does not happen. On Host I use libusb to speak with device.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;Can you help me?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Bulk IN Becomes Busy</title><link>https://devzone.nordicsemi.com/thread/121567?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2018 17:43:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b31d0ef-aa81-4832-af54-223caf500938</guid><dc:creator>Laurence</dc:creator><description>&lt;p&gt;Fantastic!&lt;/p&gt;
&lt;p&gt;It works. Thank you Hakon.&lt;/p&gt;
&lt;p&gt;I can also confirm that the original issue is gone too with this rev of the PDK.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Larry&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Bulk IN Becomes Busy</title><link>https://devzone.nordicsemi.com/thread/121528?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2018 13:57:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbb0ff2b-66e2-48a7-aea1-7adfdea4f98e</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Larry,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Unfortunately, SDK v14.2 does not include errata workarounds for rev B yet, but will in SDK v15. I suspect that your firmware hangs because of this errata:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52840.EngB.errata/dita/errata/nRF52840/EngineeringB/latest/anomaly_840_187.html?cp=2_0_1_1_1_21"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52840.EngB.errata/dita/errata/nRF52840/EngineeringB/latest/anomaly_840_187.html?cp=2_0_1_1_1_21&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you try implementing this in nrf_drv_usbd.h::nrf_usbd_enable() ?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void nrf_usbd_enable(void)
{
    *(volatile uint32_t *)0x4006EC00 = 0x00009375;
    *(volatile uint32_t *)0x4006ED14 = 0x00000003;
    *(volatile uint32_t *)0x4006EC00 = 0x00009375;

    /* Enable the peripheral */
    NRF_USBD-&amp;gt;ENABLE = USBD_ENABLE_ENABLE_Enabled&amp;lt;&amp;lt; USBD_ENABLE_ENABLE_Pos;

    /* Waiting for peripheral to enable, this should take a few �s */
    while (0 == (NRF_USBD-&amp;gt;EVENTCAUSE &amp;amp; USBD_EVENTCAUSE_READY_Msk))
    {
        /* Empty loop */
    }
    NRF_USBD-&amp;gt;EVENTCAUSE &amp;amp;= ~USBD_EVENTCAUSE_READY_Msk;

    *(volatile uint32_t *)0x4006EC00 = 0x00009375;
    *(volatile uint32_t *)0x4006ED14 = 0x00000000;
    *(volatile uint32_t *)0x4006EC00 = 0x00009375;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Bulk IN Becomes Busy</title><link>https://devzone.nordicsemi.com/thread/121449?ContentTypeID=1</link><pubDate>Tue, 20 Feb 2018 22:19:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5326ac1a-b235-48a9-8a77-3edec9919571</guid><dc:creator>Laurence</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a new PDK.&amp;nbsp; PCA10056 Version 0.11.0.&lt;/p&gt;
&lt;p&gt;Unfortunately USB doesn&amp;#39;t seem to run at all.&lt;/p&gt;
&lt;p&gt;It can&amp;#39;t even enable USB.&lt;/p&gt;
&lt;p&gt;In the debugger I can trace it to&amp;nbsp;nrf_usbd_eventcause_clear(), where it seems to hang.&lt;/p&gt;
&lt;p&gt;Called from&amp;nbsp;nrf_drv_usbd_enable()&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;p&gt;Do I need a specific version of firmware to be loaded?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Larry&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Bulk IN Becomes Busy</title><link>https://devzone.nordicsemi.com/thread/120875?ContentTypeID=1</link><pubDate>Wed, 14 Feb 2018 15:19:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:785a4405-3d95-4fae-bd8c-1cc6c4215c0b</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Larry,&lt;/p&gt;
&lt;p&gt;RSM = regional sales manager, and PM=personal message.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Bulk IN Becomes Busy</title><link>https://devzone.nordicsemi.com/thread/120834?ContentTypeID=1</link><pubDate>Wed, 14 Feb 2018 13:46:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b1e48ad-6a0c-4877-ae06-b67c734a38f3</guid><dc:creator>Laurence</dc:creator><description>&lt;p&gt;Hi Hakon,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not clear on the acronyms.&amp;nbsp; What do you mean by PM and RSM?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Larry&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Bulk IN Becomes Busy</title><link>https://devzone.nordicsemi.com/thread/120801?ContentTypeID=1</link><pubDate>Wed, 14 Feb 2018 10:17:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8611862b-e61c-4b9a-9380-eee0cef783de</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;You can contact your regional sales manager to get more information on how to obtain the newest revision. If you do not already have the details of your RSM, send me a PM with your location and I can provide you with this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Bulk IN Becomes Busy</title><link>https://devzone.nordicsemi.com/thread/120759?ContentTypeID=1</link><pubDate>Tue, 13 Feb 2018 21:01:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13ab4eab-6bda-4fec-868d-b0797cafc21f</guid><dc:creator>Laurence</dc:creator><description>&lt;p&gt;How can I get a new revision?&amp;nbsp; Is this available now in a development kit?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Bulk IN Becomes Busy</title><link>https://devzone.nordicsemi.com/thread/120679?ContentTypeID=1</link><pubDate>Tue, 13 Feb 2018 09:10:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6136ee42-ebb7-4c43-9174-56a279f290b6</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It is very likely that you are experiencing the side-effects of erratum #104.&lt;/p&gt;
&lt;p&gt;As shown &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52840.EngA.errata/err_840_new.html?cp=2_0_1_2_1"&gt;in this list&lt;/a&gt;, there are quite a few erratas on the USBD for engineering A of the nRF52840.&lt;/p&gt;
&lt;p&gt;I&amp;#39;d recommend to get a newer revision of the nRF52840 silicon to avoid the erratum #104.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Bulk IN Becomes Busy</title><link>https://devzone.nordicsemi.com/thread/120588?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2018 14:33:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fdf24b0-3295-49a0-acd5-71d9610d012c</guid><dc:creator>Laurence</dc:creator><description>&lt;p&gt;Is it possible that I am experiencing Errata 104 (EPDATA event is not always generated)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>