<?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>nRF5340 - usb incomplete RX transfer until new TX transfer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97451/nrf5340---usb-incomplete-rx-transfer-until-new-tx-transfer</link><description>Hi, here is a nRF5340 generic usb device driver application developed with NCS 2.2.0 (Zephyr 3.2.99). The interface has two bulk endpoint, 0x01 for RX and 0x81 for TX. I can successfully exchange USB data between PC and the target. 
 I&amp;#39;m experiencing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Mar 2023 12:00:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97451/nrf5340---usb-incomplete-rx-transfer-until-new-tx-transfer" /><item><title>RE: nRF5340 - usb incomplete RX transfer until new TX transfer</title><link>https://devzone.nordicsemi.com/thread/414611?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2023 12:00:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f076a7e-12c0-4f18-b0cf-305031991f19</guid><dc:creator>Gabriele</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;I&amp;#39;ve realized the problm is due to the PC application. It was working with a single thred.&lt;br /&gt;This ticket can be closed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 - usb incomplete RX transfer until new TX transfer</title><link>https://devzone.nordicsemi.com/thread/414432?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 15:11:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de441176-ead5-4678-b422-e339b61d8991</guid><dc:creator>Gabriele</dc:creator><description>&lt;p&gt;FYI adding delays doesn&amp;#39;t help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 - usb incomplete RX transfer until new TX transfer</title><link>https://devzone.nordicsemi.com/thread/414429?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 15:06:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:230d41c2-1746-482e-9802-764f53667b02</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;&lt;span style="text-decoration:line-through;"&gt;Quickly glancing the&amp;nbsp;hgw_thread seems to be pretty blocking? Maybe add a small&amp;nbsp;k_msleep(1) between each check of k_fifo_get()?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Will take a look later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 - usb incomplete RX transfer until new TX transfer</title><link>https://devzone.nordicsemi.com/thread/414404?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 14:12:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:caf81ce9-c876-4d72-84c7-c0c8936db60b</guid><dc:creator>Gabriele</dc:creator><description>&lt;p&gt;I don&amp;#39;t see any of that.&lt;br /&gt;I&amp;#39;ve attached the code case_id_304204.zip for reference. Two threads and two fifos.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/case_5F00_id_5F00_304204.zip"&gt;devzone.nordicsemi.com/.../case_5F00_id_5F00_304204.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 - usb incomplete RX transfer until new TX transfer</title><link>https://devzone.nordicsemi.com/thread/414316?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 09:19:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3345e8c9-4707-43dd-baf8-f07e03e0b0b9</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Are you sure you have not done any changes to the code that wait for usb data before you write new usb data?&amp;nbsp;Maybe checking if you are using any of the api in usb_device.h that can be blocking/waiting.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>