<?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: USB ENUMERATION PROBLEM</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-ENUMERATION-PROBLEM/m-p/711864#M28723</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="border: none; padding: 0in;"&gt;Hi Kumar,&lt;/P&gt;&lt;P style="border: none; padding: 0in;"&gt;If you are developing a new USB-based application, it is recommended considering a newer Kinetis or LPC microcontroller based on Cortex M4/M0+, as the LPC2xxx family is now legacy.&lt;/P&gt;&lt;P style="border: none; padding: 0in;"&gt;If you really need the USB with LPC2xxx, you could take a look at the following links:&lt;/P&gt;&lt;P style="border: none; padding: 0in;"&gt;&lt;A href="http://www.utasker.com/forum/index.php?topic=894.0"&gt;http://www.utasker.com/forum/index.php?topic=894.0&lt;/A&gt;&lt;/P&gt;&lt;P style="border: none; padding: 0in;"&gt;&lt;A href="https://www.embeddedrelated.com/showthread/lpc2000/54409-1.php"&gt;https://www.embeddedrelated.com/showthread/lpc2000/54409-1.php&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this will be useful for you.&lt;BR /&gt;Best regards!&lt;BR /&gt;/Carlos&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Oct 2017 21:59:08 GMT</pubDate>
    <dc:creator>CarlosCasillas</dc:creator>
    <dc:date>2017-10-02T21:59:08Z</dc:date>
    <item>
      <title>USB ENUMERATION PROBLEM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-ENUMERATION-PROBLEM/m-p/711863#M28722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Trying to enumerate USB Host using NXP's USBHostLite using LPC2468 controller. It stuck at "while (!HOST_RhscIntr)" in Host_EnumDev()&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Below is my Host_init function(reference LPC2468 USBHostlite code)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void Host_Init (void) &lt;BR /&gt;{ &lt;BR /&gt; USB_INT32U pinsel; &lt;BR /&gt; USB_INT32U pinmode; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; PCONP |= 0x80000000; &lt;BR /&gt; VICIntEnClr = (1 &amp;lt;&amp;lt; 22); /* Enable the USB interrupt source */ &lt;BR /&gt; OTG_CLK_CTRL = 0x00000001; /* Enable USB host clock */ &lt;BR /&gt; &lt;BR /&gt; while ((OTG_CLK_STAT &amp;amp; 0x00000001) == 0) { &lt;BR /&gt; } &lt;BR /&gt; /* P0[12] = USB_PPWR2 01 */ &lt;BR /&gt; pinsel = PINSEL0; &lt;BR /&gt; pinsel &amp;amp;= 0xFCFFFFFF; &lt;BR /&gt; pinsel |= 0x01000000; &lt;BR /&gt; PINSEL0 = pinsel; &lt;BR /&gt; /* P0[31] = USB_D+2 */ &lt;BR /&gt; pinsel = PINSEL1; &lt;BR /&gt; pinsel &amp;amp;= 0x3FFFFFFF; &lt;BR /&gt; pinsel |= 0x40000000; &lt;BR /&gt; PINSEL1 = pinsel; &lt;BR /&gt; /* P1[30] = USB_PWRD2 01 */ &lt;BR /&gt; /* P1[31] = USB_OVRCR2 01 */ &lt;BR /&gt; pinsel = PINSEL3; &lt;BR /&gt; pinsel &amp;amp;= 0x0FFFFFFF; &lt;BR /&gt; pinsel |= 0x50000000; &lt;BR /&gt; PINSEL3 = pinsel; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; PRINT_Log("Initializing Host Stack\n\r"); &lt;BR /&gt; Hcca = (volatile HCCA *)0x7FD00000; &lt;BR /&gt; TDHead = (volatile HCTD *)0x7FD00100; &lt;BR /&gt; TDTail = (volatile HCTD *)0x7FD00110; &lt;BR /&gt; EDCtrl = (volatile HCED *)0x7FD00120; &lt;BR /&gt; EDBulkIn = (volatile HCED *)0x7FD00130; &lt;BR /&gt; EDBulkOut = (volatile HCED *)0x7FD00140; &lt;BR /&gt; TDBuffer = (volatile USB_INT08U *)0x7FD00150; &lt;BR /&gt; FATBuffer = (volatile USB_INT08U *)0x7FD001D0; &lt;BR /&gt; UserBuffer = (volatile USB_INT08U *)0x7FD01000; &lt;BR /&gt; &lt;BR /&gt; /* Initialize all the TDs, EDs and HCCA to 0 */ &lt;BR /&gt; Host_EDInit(EDCtrl); &lt;BR /&gt; Host_EDInit(EDBulkIn); &lt;BR /&gt; Host_EDInit(EDBulkOut); &lt;BR /&gt; Host_TDInit(TDHead); &lt;BR /&gt; Host_TDInit(TDTail); &lt;BR /&gt; Host_HCCAInit(Hcca); &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; Host_DelayMS(50); /* Wait 50 ms before apply reset */ &lt;BR /&gt; HcControl = 0; /* HARDWARE RESET */ &lt;BR /&gt; HcControlHeadED = 0; /* Initialize Control list head to Zero */ &lt;BR /&gt; HcBulkHeadED = 0; /* Initialize Bulk list head to Zero */ &lt;BR /&gt; &lt;BR /&gt; /* SOFTWARE RESET */ &lt;BR /&gt; HcCommandStatus = OR_CMD_STATUS_HCR; &lt;BR /&gt; HcFmInterval = DEFAULT_FMINTERVAL; /* Write Fm Interval and Largest Data Packet Counter */ &lt;BR /&gt; &lt;BR /&gt; /* Put HC in operational state */ &lt;BR /&gt; HcControl = (HcControl &amp;amp; (~OR_CONTROL_HCFS)) | OR_CONTROL_HC_OPER; &lt;BR /&gt; HcRhStatus = OR_RH_STATUS_LPSC; /* Set Global Power */ &lt;BR /&gt; &lt;BR /&gt; HcHCCA = (USB_INT32U)Hcca; &lt;BR /&gt; HcInterruptStatus |= HcInterruptStatus; /* Clear Interrrupt Status */ &lt;BR /&gt; /* Enable interrupts */ &lt;BR /&gt; HcInterruptEnable = OR_INTR_ENABLE_MIE | &lt;BR /&gt; OR_INTR_ENABLE_WDH | &lt;BR /&gt; OR_INTR_ENABLE_RHSC; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; VICIntSelect &amp;amp;= ~(1 &amp;lt;&amp;lt; 22); /* Configure the ISR handler */ &lt;BR /&gt; VICVectAddr22 = (USB_INT32U)Host_Isr; /* Set the vector address */ &lt;BR /&gt; VICIntEnable = (1 &amp;lt;&amp;lt; 22); /* Enable the USB interrupt source */ &lt;BR /&gt; PRINT_Log("Host Initialized\n\r"); &lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please what mistake I am doing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 09:26:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-ENUMERATION-PROBLEM/m-p/711863#M28722</guid>
      <dc:creator>utsavkumar</dc:creator>
      <dc:date>2017-09-22T09:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: USB ENUMERATION PROBLEM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-ENUMERATION-PROBLEM/m-p/711864#M28723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="border: none; padding: 0in;"&gt;Hi Kumar,&lt;/P&gt;&lt;P style="border: none; padding: 0in;"&gt;If you are developing a new USB-based application, it is recommended considering a newer Kinetis or LPC microcontroller based on Cortex M4/M0+, as the LPC2xxx family is now legacy.&lt;/P&gt;&lt;P style="border: none; padding: 0in;"&gt;If you really need the USB with LPC2xxx, you could take a look at the following links:&lt;/P&gt;&lt;P style="border: none; padding: 0in;"&gt;&lt;A href="http://www.utasker.com/forum/index.php?topic=894.0"&gt;http://www.utasker.com/forum/index.php?topic=894.0&lt;/A&gt;&lt;/P&gt;&lt;P style="border: none; padding: 0in;"&gt;&lt;A href="https://www.embeddedrelated.com/showthread/lpc2000/54409-1.php"&gt;https://www.embeddedrelated.com/showthread/lpc2000/54409-1.php&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this will be useful for you.&lt;BR /&gt;Best regards!&lt;BR /&gt;/Carlos&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2017 21:59:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-ENUMERATION-PROBLEM/m-p/711864#M28723</guid>
      <dc:creator>CarlosCasillas</dc:creator>
      <dc:date>2017-10-02T21:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: USB ENUMERATION PROBLEM</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-ENUMERATION-PROBLEM/m-p/711865#M28724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently experiencing the same problem with LPC2478. H&lt;SPAN class="" dir="ltr" style="text-align: left;"&gt;ave you been able to solve it? &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 10:53:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-ENUMERATION-PROBLEM/m-p/711865#M28724</guid>
      <dc:creator>leiretorres</dc:creator>
      <dc:date>2018-01-10T10:53:56Z</dc:date>
    </item>
  </channel>
</rss>

