<?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: LPC1768 USB Host mode not working in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-USB-Host-mode-not-working/m-p/612516#M23965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Stuart,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USBHostkeyboard example on LPCOpen was created for being tested on LPCXpresso Base board (&lt;A class="link-titled" href="https://www.embeddedartists.com/products/lpcxpresso/xpr_base.php" title="https://www.embeddedartists.com/products/lpcxpresso/xpr_base.php"&gt;LPCXpresso Base Board | Embedded Artists AB&lt;/A&gt;&amp;nbsp;). I've made a quick review for schematic on mbed application board and it should work as well. Are you powering both mbed application boarde and mbed LPC1768 board through CON1? It seems that VBUS is traken from regulator's output so CON1 needs to be used to power the full system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides it, you can try to change UART module (and pins being used) in order to use UART0 (pins P0.2 and P0.3) instead of example's default UART3 (pins P0.0 and P0.1) and check what is being written on console.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, an USB analyzer could help to check if USB transactions are sent correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this can help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Oct 2016 19:24:33 GMT</pubDate>
    <dc:creator>isaacavila</dc:creator>
    <dc:date>2016-10-20T19:24:33Z</dc:date>
    <item>
      <title>LPC1768 USB Host mode not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-USB-Host-mode-not-working/m-p/612515#M23964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't seem to get USB Host mode working on LPC1768. &amp;nbsp;It always gets stuck during enumeration waiting on the GetDescriptor control call to complete. &amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My primary setup is the mbed NXP LPC1768 on an mbed application board running the lpcusblib_KeyboardHost example project from lpcopen_2_10_lpcxpresso_nxp_lpcxpresso_1769. &amp;nbsp;The DIP switches on the application board are in the Host position, and a USB keyboard is attached to the Mini USB connector on the application board.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It always gets stuck in WaitForTransferComplete(),&amp;nbsp;at this line:&lt;/P&gt;&lt;P style="color: #0326cc; font-size: 11px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #931a68;"&gt;while&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; ( HcdED(EdIdx)-&amp;gt;&lt;/SPAN&gt;status&lt;SPAN style="color: #000000;"&gt; == &lt;/SPAN&gt;HCD_STATUS_TRANSFER_QUEUED&lt;SPAN style="color: #000000;"&gt; ) {}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; color: #0326cc; font-size: 11px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also tried substituting the USBHostLite library in place of lpcusblib, with similar results. &amp;nbsp;In this case, it gets stuck in Host_WDHWait():&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN style="color: #931a68;"&gt;while&lt;/SPAN&gt; (!HOST_WdhIntr) {&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&amp;nbsp; &amp;nbsp; ;&lt;/P&gt;&lt;P style="font-size: 11px;"&gt;&amp;nbsp; }&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Googling it, I don't see anyone else asking about similar problems, so I must be missing something. &amp;nbsp;Can anyone make a suggestion about why my transfers are never completing?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My LPCXpresso project is attached.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stu&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #0326cc; font-size: 11px;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338106"&gt;USBtest.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 21:14:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-USB-Host-mode-not-working/m-p/612515#M23964</guid>
      <dc:creator>stuartjuengst</dc:creator>
      <dc:date>2016-09-12T21:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1768 USB Host mode not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-USB-Host-mode-not-working/m-p/612516#M23965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Stuart,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USBHostkeyboard example on LPCOpen was created for being tested on LPCXpresso Base board (&lt;A class="link-titled" href="https://www.embeddedartists.com/products/lpcxpresso/xpr_base.php" title="https://www.embeddedartists.com/products/lpcxpresso/xpr_base.php"&gt;LPCXpresso Base Board | Embedded Artists AB&lt;/A&gt;&amp;nbsp;). I've made a quick review for schematic on mbed application board and it should work as well. Are you powering both mbed application boarde and mbed LPC1768 board through CON1? It seems that VBUS is traken from regulator's output so CON1 needs to be used to power the full system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides it, you can try to change UART module (and pins being used) in order to use UART0 (pins P0.2 and P0.3) instead of example's default UART3 (pins P0.0 and P0.1) and check what is being written on console.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, an USB analyzer could help to check if USB transactions are sent correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this can help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 19:24:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-USB-Host-mode-not-working/m-p/612516#M23965</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2016-10-20T19:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1768 USB Host mode not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-USB-Host-mode-not-working/m-p/612517#M23966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got the same problem.&lt;/P&gt;&lt;P&gt;The lpcusblib_KeyboardHost application sometimes works and sometimes not.&lt;/P&gt;&lt;P&gt;Also i've not changed the code or the comiler options. It hangs in the "HOST_STATE_DEFAULT" state,&lt;/P&gt;&lt;P&gt;in the "USB_Host_SendControlRequest(corenum, &amp;amp;DevDescriptor)" routine.&lt;/P&gt;&lt;P&gt;There the "HCD_STATUS WaitForTransferComplete(uint8_t EdIdx)" routine is in an endless loop.&lt;/P&gt;&lt;P&gt;Perhaps it is a timing or Power problem ?&lt;/P&gt;&lt;P&gt;Or is it an unreferenced pointer ?&lt;/P&gt;&lt;P&gt;Hoping for help&lt;/P&gt;&lt;P&gt;hauke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 12:37:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-USB-Host-mode-not-working/m-p/612517#M23966</guid>
      <dc:creator>haukereese</dc:creator>
      <dc:date>2017-11-21T12:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1768 USB Host mode not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-USB-Host-mode-not-working/m-p/612518#M23967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some mor Diagnostics:&lt;/P&gt;&lt;P&gt;When I use my hardware (lpx1769 + Base Board) and Lpcxpresso on my Linux PC,&lt;/P&gt;&lt;P&gt;the lpcusblib_KeyboardHost application doesn't work.&lt;/P&gt;&lt;P&gt;When I use the same Hardware and the same application (it's in a Dropbox folder ) with my Windows&lt;/P&gt;&lt;P&gt;Laptop, it works fine.&lt;/P&gt;&lt;P&gt;So perhaps it's atiming problem with the LPC-Link drivers.&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;hauke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 10:13:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-USB-Host-mode-not-working/m-p/612518#M23967</guid>
      <dc:creator>haukereese</dc:creator>
      <dc:date>2017-11-22T10:13:06Z</dc:date>
    </item>
  </channel>
</rss>

