hello NXP
We encountered a problem when using the KHCI driver (KSDK 1.3) in our application
When Kinetis K81 is connected to an Android device via USB, the endpoint buffer (usb_dev_ptr->xd_entries) will be exhausted when the Android SDK calls the following functions to close and open the HCI connection:
- android.hardware.usb.UsbDeviceConnection.releaseInterface(UsbInterface intf)
- android.hardware.usb.UsbDeviceConnection.close()
Context.getSystemService(Context.USB_SERVICE)
becuase usb_dci_khci_init_xd() is called only when a USBRST interrupt (K81 reset, USB plug on/plug off) occurs, if the USB host continues to obtain device descriptors, xd_entries may be exhausted
how can I release the xd_entries buffer correctly if USB device didn't be plug off and on on during the life cycle?
Thank you
Robin