<?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 USB Generic HID+MSD Composite enumeration problems in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-Generic-HID-MSD-Composite-enumeration-problems/m-p/496611#M4650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am re-posting from the Kinetis Fourm:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2019" data-containertype="14" data-objectid="382113" data-objecttype="1" href="https://community.nxp.com/thread/382113"&gt;USB Generic HID+MSD Composite enumeration problems&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I am having some strange issues:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;I have a strange USB enumeration problem with a MK22FN512. It took a long time but I got the USB to enumerate properly and working, but unfortunately it only works when I have USBlyzer running to see enumeration issues. If USBlyzer is closed the device will not enumerate properly and it will always times out with a &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #eb7a3d;"&gt;USB_PRINTF("not find interface");&lt;/SPAN&gt; in the USB_Class_Hid_Event() function in &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #eb7a3d;"&gt;usb_hid.c&lt;/SPAN&gt;.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;With USBlyzer open it does the following in hid1_application_callback, and properly enumerates:&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_ENUM_COMPLETE&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_ENUM_COMPLETE&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;USB_HID_SET_IDLE_REQUEST&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #e23d39;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;* attached is a USBlyzer capture file when it works.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;With USBlyzer closed it does the following before timing out in hid1_application_callback:&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_ENUM_COMPLETE&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_ENUM_COMPLETE&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_ENUM_COMPLETE&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;and then times out at:&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;not find interface&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;@Mark Butcher found:&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;Your problem is that when the host sends a SetConfiguration (interface 1) your device is responding with a zero data paket (correct) but is it responding with a DATA0 packet, rather than a DATA1 packet and the host rejects this because it is incorrect.&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;After 5s or so of waiting (the device doesn't send anything else) the host restets the connection and tries again. The same repeats after the reset but sometimes also the SetAddress fails with the device returning malformed frames back - this again causes reset and it goes on forever like this (randomly failing on the SetAddress or the SetInterface).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;This is also seen at the semi-hosting output:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;SEGGER J-Link GDB Server V4.98b - Terminal output channel&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;USB_DEV_EVENT_ENUM_COMPLETE&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;USB_DEV_EVENT_DATA_RECEIVED&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;USB_DEV_EVENT_SEND_COMPLETE&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;got one raw packet&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;USB_DEV_EVENT_DATA_RECEIVED&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;USB_DEV_EVENT_ENUM_COMPLETE&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;got one raw packet&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;I have no explanation as to why it works with the analyser operating, unless it puts the interface into a promiscuous mode of some sort that allows receiving incorrect DATA packets (?)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;Unfortunately these are fairly low-level driver problems - unless you broke something you may have uncovered latent bugs by changing the enumeration sequence length, for example.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;So I am re-posting here because there may be some issues with the KSDK Usb drivers. I need some help tracking this down, I am completely stuck and don't know where to go from here.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Dec 2015 18:36:27 GMT</pubDate>
    <dc:creator>thcooke77</dc:creator>
    <dc:date>2015-12-18T18:36:27Z</dc:date>
    <item>
      <title>USB Generic HID+MSD Composite enumeration problems</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-Generic-HID-MSD-Composite-enumeration-problems/m-p/496611#M4650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am re-posting from the Kinetis Fourm:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2019" data-containertype="14" data-objectid="382113" data-objecttype="1" href="https://community.nxp.com/thread/382113"&gt;USB Generic HID+MSD Composite enumeration problems&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I am having some strange issues:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;I have a strange USB enumeration problem with a MK22FN512. It took a long time but I got the USB to enumerate properly and working, but unfortunately it only works when I have USBlyzer running to see enumeration issues. If USBlyzer is closed the device will not enumerate properly and it will always times out with a &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #eb7a3d;"&gt;USB_PRINTF("not find interface");&lt;/SPAN&gt; in the USB_Class_Hid_Event() function in &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #eb7a3d;"&gt;usb_hid.c&lt;/SPAN&gt;.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;With USBlyzer open it does the following in hid1_application_callback, and properly enumerates:&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_ENUM_COMPLETE&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_ENUM_COMPLETE&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;USB_HID_SET_IDLE_REQUEST&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #e23d39;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;* attached is a USBlyzer capture file when it works.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;With USBlyzer closed it does the following before timing out in hid1_application_callback:&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_ENUM_COMPLETE&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_ENUM_COMPLETE&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_ENUM_COMPLETE&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;and then times out at:&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;not find interface&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3334ca;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;@Mark Butcher found:&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;Your problem is that when the host sends a SetConfiguration (interface 1) your device is responding with a zero data paket (correct) but is it responding with a DATA0 packet, rather than a DATA1 packet and the host rejects this because it is incorrect.&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;After 5s or so of waiting (the device doesn't send anything else) the host restets the connection and tries again. The same repeats after the reset but sometimes also the SetAddress fails with the device returning malformed frames back - this again causes reset and it goes on forever like this (randomly failing on the SetAddress or the SetInterface).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;This is also seen at the semi-hosting output:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;SEGGER J-Link GDB Server V4.98b - Terminal output channel&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;USB_DEV_EVENT_ENUM_COMPLETE&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;USB_DEV_EVENT_DATA_RECEIVED&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;USB_DEV_EVENT_SEND_COMPLETE&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;got one raw packet&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;USB_DEV_EVENT_DATA_RECEIVED&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;USB_DEV_EVENT_ENUM_COMPLETE&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;got one raw packet&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;&lt;SPAN style="font-weight: bold; font-style: inherit; font-family: inherit;"&gt;USB_DEV_EVENT_BUS_RESET&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;I have no explanation as to why it works with the analyser operating, unless it puts the interface into a promiscuous mode of some sort that allows receiving incorrect DATA packets (?)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;Unfortunately these are fairly low-level driver problems - unless you broke something you may have uncovered latent bugs by changing the enumeration sequence length, for example.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f; padding-left: 30px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;So I am re-posting here because there may be some issues with the KSDK Usb drivers. I need some help tracking this down, I am completely stuck and don't know where to go from here.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2015 18:36:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-Generic-HID-MSD-Composite-enumeration-problems/m-p/496611#M4650</guid>
      <dc:creator>thcooke77</dc:creator>
      <dc:date>2015-12-18T18:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: USB Generic HID+MSD Composite enumeration problems</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-Generic-HID-MSD-Composite-enumeration-problems/m-p/496612#M4651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I finally figured out the USB issues. For some reason Semi-hosting to debug print to the console caused all of the enumeration issues. So by debugging the USB with printf's via Semi-hosting, I caused the USB not to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Terry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 18:47:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-Generic-HID-MSD-Composite-enumeration-problems/m-p/496612#M4651</guid>
      <dc:creator>thcooke77</dc:creator>
      <dc:date>2015-12-21T18:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: USB Generic HID+MSD Composite enumeration problems</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-Generic-HID-MSD-Composite-enumeration-problems/m-p/496613#M4652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The correct answer is in this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/383873"&gt;KDS3.1 + KSDK1.3 USB HID interrupt out endpoint causes enumeration errors (k22f)&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Terry Cooke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 19:49:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/USB-Generic-HID-MSD-Composite-enumeration-problems/m-p/496613#M4652</guid>
      <dc:creator>thcooke77</dc:creator>
      <dc:date>2016-01-20T19:49:13Z</dc:date>
    </item>
  </channel>
</rss>

