<?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: USB0 initialisation not working in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB0-initialisation-not-working/m-p/567653#M17583</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Mon Feb 29 10:53:54 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe that there are other threads about this issue, suggest you search the forums.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:52:56 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:52:56Z</dc:date>
    <item>
      <title>USB0 initialisation not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB0-initialisation-not-working/m-p/567652#M17582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by pra18 on Sat Feb 27 04:26:22 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a working USB1 driver on my custom board and I am trying&amp;nbsp; to migrate it to the USB0 now Though it seems to be pretty straightforward, I am not able to get it up and running on USB0 .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to do the following initialisation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/*Set up USB0 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CGU_SetPLL0();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CGU_EnableEntity(CGU_CLKSRC_PLL0, ENABLE);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/* for USB0 Connect the output of PLL1 to USB0 base clock */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CGU_EntityConnect(CGU_CLKSRC_PLL0, CGU_BASE_USB0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; scu_pinmux(0x2, 3, MD_PUP | MD_EZI, FUNC7);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // P2_3 USB0_PWR_EN, USB0 VBus function&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I missing anything in the sequence above or is there some configuration error? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am setting up descriptors for USB0 as below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Setup&amp;nbsp; the USB device descriptors */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; USBDesc.device_desc = (uint8_t *) USB_DeviceDescriptor;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; USBDesc.string_desc = (uint8_t *) USB_StringDescriptor;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; USBDesc.high_speed_desc = USB_HsConfigDescriptor;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; USBDesc.full_speed_desc = USB_FsConfigDescriptor;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; USBDesc.device_qualifier = (uint8_t *) USB_DeviceQualifier;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am turning on the PHY before&amp;nbsp; USBD_API-&amp;gt;hw-&amp;gt;Init call()&amp;nbsp; also.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; /* Turn on the USB0 phy */&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; LPC_CREG-&amp;gt;CREG0 &amp;amp;= ~(1&amp;lt;&amp;lt;5);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After all these steps, still I am not finding atleast an Unknown device " or a Virtual COM on the PC .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone help me in this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance, &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:52:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB0-initialisation-not-working/m-p/567652#M17582</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: USB0 initialisation not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB0-initialisation-not-working/m-p/567653#M17583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Mon Feb 29 10:53:54 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe that there are other threads about this issue, suggest you search the forums.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:52:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB0-initialisation-not-working/m-p/567653#M17583</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: USB0 initialisation not working</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB0-initialisation-not-working/m-p/567654#M17584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by pra18 on Tue Mar 01 01:23:26 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Just wanted to know if&amp;nbsp; I am initializing the USB0 correctly and not missing anything in the sequence in the code that I have shared in previous post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anything needs to be checked in HW ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My device is not self powered USB by the way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:52:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB0-initialisation-not-working/m-p/567654#M17584</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:52:57Z</dc:date>
    </item>
  </channel>
</rss>

