<?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 nxpUSBLIB: OTG socket not powered in host mode in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/nxpUSBLIB-OTG-socket-not-powered-in-host-mode/m-p/523590#M6226</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dima2611 on Fri Feb 24 06:11:22 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I try the example of MassStorageHost with LPC4350 (board LPC-4350-DB1). I use a "A-Socket to mini-B-plug" cable. I connected pins #4 and #5 to make it look like "mini-A". So, USB0_ID is connected to GND. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I miss the point where in the software the VBUS is switched on. Currently, I have no power there, so an attached device cannot be detected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No VBUS power =&amp;gt; no call of USB0_IRQHandler()&amp;nbsp; =&amp;gt; no checking for EHC_USBSTS_PortChangeDetect.. etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are a couple of calls which can be thought of as if they could manage VBUS:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(located in Drivers/USB/Core/LPC/Host_LPC.c)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- USB_Host_VBUS_Manual_Off&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- USB_OTGPAD_On&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- USB_Host_VBUS_Auto_Enable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- USB_Host_VBUS_Auto_On&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But... 1st: they are empty (see macros in ..../Host_LPC.h) 2nd: they are intended to be called in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Host_LPC.c: USB_Host_ProcessNextHostState: HOST_State_Powered which is set through&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;HcdIrqHandler =&amp;gt; PortStatusChangeIsr =&amp;gt; USB_Host_Enumerate&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But as I said HcdIrqHandler does nothing because unpowered USB OTG socket sees no change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope it is only a configuration problem. Please help! :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/Dima&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 16:44:31 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T16:44:31Z</dc:date>
    <item>
      <title>nxpUSBLIB: OTG socket not powered in host mode</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/nxpUSBLIB-OTG-socket-not-powered-in-host-mode/m-p/523590#M6226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dima2611 on Fri Feb 24 06:11:22 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I try the example of MassStorageHost with LPC4350 (board LPC-4350-DB1). I use a "A-Socket to mini-B-plug" cable. I connected pins #4 and #5 to make it look like "mini-A". So, USB0_ID is connected to GND. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I miss the point where in the software the VBUS is switched on. Currently, I have no power there, so an attached device cannot be detected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No VBUS power =&amp;gt; no call of USB0_IRQHandler()&amp;nbsp; =&amp;gt; no checking for EHC_USBSTS_PortChangeDetect.. etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are a couple of calls which can be thought of as if they could manage VBUS:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(located in Drivers/USB/Core/LPC/Host_LPC.c)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- USB_Host_VBUS_Manual_Off&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- USB_OTGPAD_On&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- USB_Host_VBUS_Auto_Enable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- USB_Host_VBUS_Auto_On&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But... 1st: they are empty (see macros in ..../Host_LPC.h) 2nd: they are intended to be called in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Host_LPC.c: USB_Host_ProcessNextHostState: HOST_State_Powered which is set through&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;HcdIrqHandler =&amp;gt; PortStatusChangeIsr =&amp;gt; USB_Host_Enumerate&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But as I said HcdIrqHandler does nothing because unpowered USB OTG socket sees no change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope it is only a configuration problem. Please help! :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/Dima&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:44:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/nxpUSBLIB-OTG-socket-not-powered-in-host-mode/m-p/523590#M6226</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: nxpUSBLIB: OTG socket not powered in host mode</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/nxpUSBLIB-OTG-socket-not-powered-in-host-mode/m-p/523591#M6227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dima2611 on Sat Feb 25 12:59:02 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this new LPC-4350-DB1 board has no power supply for VBUS line which could deliver 5VDC for the device when enabled by HI at usb0_PWR_EN pin. Since I only wanted a host, I supplied the power directly. The quick-n-dirty workaround can be seen at the attached picture. BEWARE that your external power supply may not exceed 5VDC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/Dima &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:44:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/nxpUSBLIB-OTG-socket-not-powered-in-host-mode/m-p/523591#M6227</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: nxpUSBLIB: OTG socket not powered in host mode</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/nxpUSBLIB-OTG-socket-not-powered-in-host-mode/m-p/523592#M6228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tuong on Mon Mar 26 20:30:49 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Dear Dima2611,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently the stack configures P6_3 as USB0_VBUS_EN pin, this pin used to drive 5VDC out on USB connector vbus pin, together with a MOSFET or equal parts, after every initiation has finished.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your board, LPC-4350-DB1, is designed for USB device only, so there is no 5VDC supply on VBUS. Your workarround is simple but, I think, the best way to use host function in this case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tuong Nguyen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:44:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/nxpUSBLIB-OTG-socket-not-powered-in-host-mode/m-p/523592#M6228</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:44:32Z</dc:date>
    </item>
  </channel>
</rss>

