<?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 HID crash when ESB is used</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76460/usb-hid-crash-when-esb-is-used</link><description>I want to develop a 2.4G mouse Dongle and have used NRF52840 and SDK 17.0.2. When I have used USB or ESB one by one - all is Ok. But when they are used together - usb driver goes into an infinite loop here: 
 
 I enqueue the received mouse data in the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Jun 2021 03:47:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76460/usb-hid-crash-when-esb-is-used" /><item><title>RE: USB HID crash when ESB is used</title><link>https://devzone.nordicsemi.com/thread/316370?ContentTypeID=1</link><pubDate>Tue, 22 Jun 2021 03:47:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6997307-8105-4caf-a1f9-fc9abd60340f</guid><dc:creator>nicholas_cage</dc:creator><description>&lt;p&gt;Thanks ，&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;The problem has been solved after replacing the board. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;nRF52840-DK&amp;nbsp; is&amp;nbsp; ok.&lt;/p&gt;
&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;There seems to be a problem on my nRF5240-PDK.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class="DNFg3e"&gt;
&lt;div class="oJweqc KKjvXb"&gt;
&lt;div class="PrVWEc"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="SN2gnd"&gt;
&lt;div class="xu46lf"&gt;
&lt;div class="ir3uv uWlRce co39ub"&gt;
&lt;div class="xq3j6 ERcjC"&gt;
&lt;div class="X6jHbb GOJTSe"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="HBnAAc"&gt;
&lt;div class="X6jHbb GOJTSe"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="xq3j6 dj3yTd"&gt;
&lt;div class="X6jHbb GOJTSe"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB HID crash when ESB is used</title><link>https://devzone.nordicsemi.com/thread/316050?ContentTypeID=1</link><pubDate>Fri, 18 Jun 2021 10:59:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e5ced79-b9cc-463e-aee9-b9407583aa33</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;It looks like you are sending HID data prior to eventually the USBD interrupt fires after interrupts are enabled; then ending up in the while-loop.&lt;/p&gt;
&lt;p&gt;Do you have preprocessor defines &amp;quot;DEBUG_NRF&amp;quot; and &amp;quot;DEBUG&amp;quot; set in your project? If not, could you please set these?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I do not see anything related to ESB in your stack trace, but do note that the radio and esb evt handler runs on isr priority 1 and 2 by default, while your usbd runs on 6 (sdk_config.h::USBD_CONFIG_IRQ_PRIORITY)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How long do you need to run the device before this occurs?&lt;/p&gt;
&lt;p&gt;Have you tried to&amp;nbsp;run this on a nRF52840-DK and see if the same issue occurs then?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>