<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic the USB endpoint buffer maybe exausted in KHCI driver in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/the-USB-endpoint-buffer-maybe-exausted-in-KHCI-driver/m-p/1344884#M61540</link>
    <description>&lt;P&gt;hello NXP&lt;/P&gt;&lt;P&gt;We encountered a problem when using the KHCI driver (KSDK 1.3) in our application&lt;/P&gt;&lt;P&gt;When Kinetis K81 is connected to an Android device via USB, the endpoint buffer (usb_dev_ptr-&amp;gt;xd_entries) will be exhausted when the Android SDK calls the following functions to close and open the HCI connection:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;android.hardware.usb.UsbDeviceConnection.releaseInterface(UsbInterface intf)&lt;/LI&gt;&lt;LI&gt;android.hardware.usb.UsbDeviceConnection.close()&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Context.&lt;/SPAN&gt;&lt;SPAN&gt;getSystemService&lt;/SPAN&gt;&lt;SPAN&gt;(Context.USB_SERVICE)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;becuase&amp;nbsp;usb_dci_khci_init_xd() is called only when a &lt;SPAN&gt;USBRST interrupt (K81 reset, USB plug on/plug off) occurs, if the USB host continues to obtain device descriptors, xd_entries may be exhausted&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;how can I release the xd_entries buffer correctly if USB device didn't be plug off and on on during the life cycle?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Robin&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Sep 2021 08:37:42 GMT</pubDate>
    <dc:creator>robinliao</dc:creator>
    <dc:date>2021-09-23T08:37:42Z</dc:date>
    <item>
      <title>the USB endpoint buffer maybe exausted in KHCI driver</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/the-USB-endpoint-buffer-maybe-exausted-in-KHCI-driver/m-p/1344884#M61540</link>
      <description>&lt;P&gt;hello NXP&lt;/P&gt;&lt;P&gt;We encountered a problem when using the KHCI driver (KSDK 1.3) in our application&lt;/P&gt;&lt;P&gt;When Kinetis K81 is connected to an Android device via USB, the endpoint buffer (usb_dev_ptr-&amp;gt;xd_entries) will be exhausted when the Android SDK calls the following functions to close and open the HCI connection:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;android.hardware.usb.UsbDeviceConnection.releaseInterface(UsbInterface intf)&lt;/LI&gt;&lt;LI&gt;android.hardware.usb.UsbDeviceConnection.close()&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Context.&lt;/SPAN&gt;&lt;SPAN&gt;getSystemService&lt;/SPAN&gt;&lt;SPAN&gt;(Context.USB_SERVICE)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;becuase&amp;nbsp;usb_dci_khci_init_xd() is called only when a &lt;SPAN&gt;USBRST interrupt (K81 reset, USB plug on/plug off) occurs, if the USB host continues to obtain device descriptors, xd_entries may be exhausted&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;how can I release the xd_entries buffer correctly if USB device didn't be plug off and on on during the life cycle?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Robin&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 08:37:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/the-USB-endpoint-buffer-maybe-exausted-in-KHCI-driver/m-p/1344884#M61540</guid>
      <dc:creator>robinliao</dc:creator>
      <dc:date>2021-09-23T08:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: the USB endpoint buffer maybe exausted in KHCI driver</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/the-USB-endpoint-buffer-maybe-exausted-in-KHCI-driver/m-p/1348616#M61601</link>
      <description>&lt;P&gt;I recommend that you changed to MCUExpresso and test the SDK for that&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 18:07:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/the-USB-endpoint-buffer-maybe-exausted-in-KHCI-driver/m-p/1348616#M61601</guid>
      <dc:creator>vicentegomez</dc:creator>
      <dc:date>2021-09-29T18:07:09Z</dc:date>
    </item>
  </channel>
</rss>

