<?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>hid_int_ep_write error &amp;quot;Failed to write endpoint buffer 0x81&amp;quot;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95071/hid_int_ep_write-error-failed-to-write-endpoint-buffer-0x81</link><description>I make a ble hid usb dongle with ncs2.0, ble keyboard send keycode to hid dongle, hid dongle send the keycode to computer. 
 When keyboard send keycode slow, it&amp;#39;s work fine. But when keyboard send keycode fast, it show &amp;quot;Failed to write endpoint buffer</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Feb 2026 11:02:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95071/hid_int_ep_write-error-failed-to-write-endpoint-buffer-0x81" /><item><title>RE: hid_int_ep_write error "Failed to write endpoint buffer 0x81"</title><link>https://devzone.nordicsemi.com/thread/560530?ContentTypeID=1</link><pubDate>Fri, 06 Feb 2026 11:02:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0761be7c-2a8c-4e12-9dd3-2c81e1374364</guid><dc:creator>emanuelefalli</dc:creator><description>&lt;p&gt;As a note on this since I had the same issue, I first checked that CONFIG_USB_HID_POLL_INTERVAL_MS was set to 1 in the prj.conf. On top of it, It&amp;#39;s always good to set up a semaphore that is released only on the previous usb transfer being set succesfully, before initiating a new one. The lack of speed in DMA transfer is due to some other limitation in the firmware which slows it down won&amp;#39;t probably depend on the USB transfer speed.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hid_int_ep_write error "Failed to write endpoint buffer 0x81"</title><link>https://devzone.nordicsemi.com/thread/401824?ContentTypeID=1</link><pubDate>Thu, 22 Dec 2022 03:50:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9dd0ebaf-3138-4498-bd11-9ca868a3175f</guid><dc:creator>Jimmy</dc:creator><description>&lt;p&gt;If i wait, the speed is slow down. If i wait, the usb hid speed is slower then ble, &lt;span&gt;it&amp;nbsp;does&amp;nbsp;not&amp;nbsp;make&amp;nbsp;sense.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;How to speed up DMA transfers?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hid_int_ep_write error "Failed to write endpoint buffer 0x81"</title><link>https://devzone.nordicsemi.com/thread/401792?ContentTypeID=1</link><pubDate>Wed, 21 Dec 2022 17:45:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5396984d-f85b-4a50-8380-4a1f89263afd</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Looks like you are getting the waring pritned from here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.2.99-ncs1/subsys/usb/device/usb_device.c#L1312"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/v3.2.99-ncs1/subsys/usb/device/usb_device.c#L1312&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So it seem like you are getting&amp;nbsp;EAGAIN from&amp;nbsp;usb_dc_ep_write()&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.2.99-ncs1/drivers/usb/device/usb_dc_nrfx.c#L1656"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/v3.2.99-ncs1/drivers/usb/device/usb_dc_nrfx.c#L1656&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There is a note here that says:&lt;/p&gt;
&lt;p&gt;/* USBD driver does not allow scheduling multiple DMA transfers&lt;br /&gt; * for one EP at a time. Next USB transfer on this endpoint can be&lt;br /&gt; * triggered after the completion of previous one.&lt;br /&gt; */&lt;/p&gt;
&lt;p&gt;So you will need to wait until the previously scheduled write completes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hid_int_ep_write error "Failed to write endpoint buffer 0x81"</title><link>https://devzone.nordicsemi.com/thread/401746?ContentTypeID=1</link><pubDate>Wed, 21 Dec 2022 14:07:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e6456b7-41ce-4daa-9919-1f6a3f876ecd</guid><dc:creator>Jimmy</dc:creator><description>&lt;p&gt;Not work, i tryed 16,32,64,128.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hid_int_ep_write error "Failed to write endpoint buffer 0x81"</title><link>https://devzone.nordicsemi.com/thread/401727?ContentTypeID=1</link><pubDate>Wed, 21 Dec 2022 13:25:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6303ea1-8d66-41cc-9b9c-840dcf0aa404</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Try increasing the value of&amp;nbsp;&lt;span&gt;CONFIG_BT_HOGP_REPORTS_MAX&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>