<?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>LPC MicrocontrollersのトピックRe: Is USB hub support planned in the future?</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Is-USB-hub-support-planned-in-the-future/m-p/524531#M7167</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by matthias.heinz on Wed Dec 11 03:19:17 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;well I am very interested in an answer, too. I've taken a deep look at the source code and there's a lot of work to do to support hubs. If I've understand the code correctly the connected device doesn't even get an address. Have a look at Host.c line 174, there's: USB_Host_SetDeviceAddress(USB_HOST_DEVICEADDRESS). Now have a look at what the function does. Nothing, exactly. It's against the USB spec, but if you're just using one device on the bus, you don't have to change the address from 0, because there's only one device on the bus.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are a few todos in the code. Pipe freeze, unfreeze are just blank functions. Even the version.h is not maintained. It'd be great to hear when they're planing to release a version different to 0x000000.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If NXP would provide a git repository it would be easy to write patches and fix some of this flaws. But instead it's made very hard to get a grip on the programmers...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 16:51:02 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T16:51:02Z</dc:date>
    <item>
      <title>Is USB hub support planned in the future?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Is-USB-hub-support-planned-in-the-future/m-p/524530#M7166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by sturzi on Tue Oct 01 02:12:58 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am currently evaluating the LPCUSBlib and saw that there is no hub support.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this feature planned for a future release?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If not, has anyone successfully implemented this feature? I'm guessing it would be quite a bit of work...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and Best Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:51:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Is-USB-hub-support-planned-in-the-future/m-p/524530#M7166</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Is USB hub support planned in the future?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Is-USB-hub-support-planned-in-the-future/m-p/524531#M7167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by matthias.heinz on Wed Dec 11 03:19:17 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;well I am very interested in an answer, too. I've taken a deep look at the source code and there's a lot of work to do to support hubs. If I've understand the code correctly the connected device doesn't even get an address. Have a look at Host.c line 174, there's: USB_Host_SetDeviceAddress(USB_HOST_DEVICEADDRESS). Now have a look at what the function does. Nothing, exactly. It's against the USB spec, but if you're just using one device on the bus, you don't have to change the address from 0, because there's only one device on the bus.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are a few todos in the code. Pipe freeze, unfreeze are just blank functions. Even the version.h is not maintained. It'd be great to hear when they're planing to release a version different to 0x000000.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If NXP would provide a git repository it would be easy to write patches and fix some of this flaws. But instead it's made very hard to get a grip on the programmers...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:51:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Is-USB-hub-support-planned-in-the-future/m-p/524531#M7167</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is USB hub support planned in the future?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Is-USB-hub-support-planned-in-the-future/m-p/524532#M7168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by matthias.heinz on Wed Dec 11 04:51:36 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;So I did some digging. And it looks like the lpcusblib is derived from LUFA: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.fourwalledcubicle.com%2FLUFA.php" rel="nofollow" target="_blank"&gt;http://www.fourwalledcubicle.com/LUFA.php&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is a USB library for ATMEL devices and if you take a look at the code, then you'll see some similarities. The author of LUFA doesn't seem to have integrated the Hub feature either, I guess because it's a lot of work and memory management is not easy (not running out of memory at all).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:51:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Is-USB-hub-support-planned-in-the-future/m-p/524532#M7168</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is USB hub support planned in the future?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Is-USB-hub-support-planned-in-the-future/m-p/524533#M7169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by matthias.heinz on Wed Dec 11 08:41:37 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: I found the part where the Device address gets set. It's a it above the empty USB_Host_SetDeviceAddress function. But why this function is still there, although it's not needed, I have no idea.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:51:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Is-USB-hub-support-planned-in-the-future/m-p/524533#M7169</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is USB hub support planned in the future?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Is-USB-hub-support-planned-in-the-future/m-p/524534#M7170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by matthias.heinz on Fri Dec 13 02:51:30 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Next hint in case someone wants to integrate hub support.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The device address a connected usb device gets is hardcoded. You'll have to edit Pipe.c and change Pipe_ConfigurePipe to be able to set the address the pipe should point to. Shouldn't be too hard. (You can remove the FIXME annotation afterwards)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:51:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Is-USB-hub-support-planned-in-the-future/m-p/524534#M7170</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Is USB hub support planned in the future?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Is-USB-hub-support-planned-in-the-future/m-p/524535#M7171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jdupre on Tue Dec 17 14:52:18 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Check the errata for your chip.&amp;nbsp; The LPC177x/8x has a bug involving a "dribble bit" which will cause the USB subsystem to hang.&amp;nbsp; The dribble bit may be introduced by "hub switching skews".&amp;nbsp;&amp;nbsp; I read that to mean that the system may not be stable with a hub.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:51:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Is-USB-hub-support-planned-in-the-future/m-p/524535#M7171</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is USB hub support planned in the future?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Is-USB-hub-support-planned-in-the-future/m-p/524536#M7172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by matthias.heinz on Wed Dec 18 02:27:44 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the hint. I'm using an LPC1766, so I should be fine, I guess (and hope).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's another error in the library, which needs fixing: In Pipe.h function Pipe_GetPipeToken tries to get the pipe direction from reading the upper bit of the EndponitAddress (mind the typing error). This will never return a PIPE_TOKEN_IN, because it never gets added to the EndponitAddress.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You'll have to change the Pipe_ConfigurePipe() function in pipe.c and add the "Token" somehow to the EndpointAddress variable. (hint hint: if token == 1, bit 7 must be 1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now it should be possible to get data from IN pipes and not get stuck in an endless loop.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:51:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Is-USB-hub-support-planned-in-the-future/m-p/524536#M7172</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is USB hub support planned in the future?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Is-USB-hub-support-planned-in-the-future/m-p/524537#M7173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by matthias.heinz on Wed Dec 18 03:22:19 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Reread the the errata sheet. All lpc176x chips are affected, too. Well, this is a problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:51:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Is-USB-hub-support-planned-in-the-future/m-p/524537#M7173</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Is USB hub support planned in the future?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Is-USB-hub-support-planned-in-the-future/m-p/524538#M7174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by matthias.heinz on Fri Dec 20 09:18:22 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Next hint: If you're editing Pipe_ConfigurePipe() add the DeviceSpeed variable, too. You will need it for low-speed devices.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:51:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Is-USB-hub-support-planned-in-the-future/m-p/524538#M7174</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:51:07Z</dc:date>
    </item>
  </channel>
</rss>

