<?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 Re: USB demo on TWRK64F120M with HUB in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-demo-on-TWRK64F120M-with-HUB/m-p/499049#M31109</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know where your 'demo' came from, compared to the 'Freescale USB stack' I am using, but in usb_classes.c is:&lt;/P&gt;&lt;P&gt;/* here hub is considered as device from host point of view */&lt;/P&gt;&lt;P&gt;#ifdef USBCLASS_INC_HUB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "usb_host_hub.h"&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and, within USB_CLASS_MAP_CONST CLASS_MAP class_interface_map[] =&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;#ifdef USBCLASS_INC_HUB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; usb_class_hub_init,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sizeof(USB_HUB_CLASS_INTF_STRUCT),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USB_CLASS_HUB,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USB_SUBCLASS_HUB_NONE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USB_PROTOCOL_HUB_FS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFF, 0x00, 0x00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;and of course the 'usb_hub_host' driver files to go with those.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for 'multiple', I'm not convinced that the stack I am looking at has the 'hooks' so that EACH 'callback' (for instance) on a HID instantiation references a different handle-indexed structure so that 'multiples' could be kept entirely isolated.&amp;nbsp; If your stack looks so sub-indexed, then you are one step ahead!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 May 2016 19:50:09 GMT</pubDate>
    <dc:creator>egoodii</dc:creator>
    <dc:date>2016-05-04T19:50:09Z</dc:date>
    <item>
      <title>USB demo on TWRK64F120M with HUB</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-demo-on-TWRK64F120M-with-HUB/m-p/499046#M31106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does the demo keyboard should work also with HUB ?&lt;/P&gt;&lt;P&gt;When connecting directly the keyboard to K64 USB port it works everything OK (can see keyboard using terminal thru UART)&lt;/P&gt;&lt;P&gt;Now, I have connected the K64 USB to a HUB (Microchip USB2422) and a keyboard to the HUB downstream USB port.&lt;/P&gt;&lt;P&gt;The USB2422 HUB have "Power_EN" ports to enable power to it's downstream ports&lt;/P&gt;&lt;P&gt;My problem is that there is no "Power_EN" from the HUB to its downstream ports in that case&lt;/P&gt;&lt;P&gt;I have tried other HOST - connected the HUB upstream port to a PC (instead of the K64) - in that case everything works great - The HUB enables power to downstream ports&lt;/P&gt;&lt;P&gt;What can be the difference between the K64 and the PC ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Eduard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 13:49:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-demo-on-TWRK64F120M-with-HUB/m-p/499046#M31106</guid>
      <dc:creator>eduardrazumovsk</dc:creator>
      <dc:date>2016-05-04T13:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: USB demo on TWRK64F120M with HUB</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-demo-on-TWRK64F120M-with-HUB/m-p/499047#M31107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The 'demo' probably doesn't have the 'HUB' class enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But note of course that once you have a 'hub', the stack must be ready to accept multiple simultaneous devices, even of the same 'class'.&amp;nbsp; The demo may not be set up for THAT either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try uTasker.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 14:43:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-demo-on-TWRK64F120M-with-HUB/m-p/499047#M31107</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2016-05-04T14:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: USB demo on TWRK64F120M with HUB</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-demo-on-TWRK64F120M-with-HUB/m-p/499048#M31108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thanks for the reply&lt;/P&gt;&lt;P&gt;I also assumed that the demo doesn't support HUB, but wasn't sure... How can I know for sure ? &lt;/P&gt;&lt;P&gt;Regarding the multiple simultaneous devices - I don't think that the stack have to support it - It is the HUBs job - the HUB should do it and upstream the data on the individual K64 USB port&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Eduard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 18:04:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-demo-on-TWRK64F120M-with-HUB/m-p/499048#M31108</guid>
      <dc:creator>eduardrazumovsk</dc:creator>
      <dc:date>2016-05-04T18:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: USB demo on TWRK64F120M with HUB</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-demo-on-TWRK64F120M-with-HUB/m-p/499049#M31109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know where your 'demo' came from, compared to the 'Freescale USB stack' I am using, but in usb_classes.c is:&lt;/P&gt;&lt;P&gt;/* here hub is considered as device from host point of view */&lt;/P&gt;&lt;P&gt;#ifdef USBCLASS_INC_HUB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "usb_host_hub.h"&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and, within USB_CLASS_MAP_CONST CLASS_MAP class_interface_map[] =&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;#ifdef USBCLASS_INC_HUB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; usb_class_hub_init,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sizeof(USB_HUB_CLASS_INTF_STRUCT),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USB_CLASS_HUB,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USB_SUBCLASS_HUB_NONE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USB_PROTOCOL_HUB_FS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFF, 0x00, 0x00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;and of course the 'usb_hub_host' driver files to go with those.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for 'multiple', I'm not convinced that the stack I am looking at has the 'hooks' so that EACH 'callback' (for instance) on a HID instantiation references a different handle-indexed structure so that 'multiples' could be kept entirely isolated.&amp;nbsp; If your stack looks so sub-indexed, then you are one step ahead!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 19:50:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-demo-on-TWRK64F120M-with-HUB/m-p/499049#M31109</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2016-05-04T19:50:09Z</dc:date>
    </item>
  </channel>
</rss>

