<?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: lpc1788 USB device not recognized in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1788-USB-device-not-recognized/m-p/517886#M2390</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by nerd herd on Wed Jul 09 09:07:00 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It sounds like if you are asking if the LPC1788 is "plug and play" compatible without any software. As stated in section 12.13 in the LPC17xx_8x user's manual, there is software initialization that must be done in order for the MCU to be USB device compatible. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Fdocuments%2Fuser_manual%2FUM10470.pdf" rel="nofollow" target="_blank"&gt;http://www.nxp.com/documents/user_manual/UM10470.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;I&gt;The LPC178x/177x USB device controller initialization includes the following steps:&lt;BR /&gt;1. Enable the device controller by setting the PCUSB bit of PCONP.&lt;BR /&gt;2. Configure and enable the PLL and Clock Dividers to provide 48 MHz for usbclk and &lt;BR /&gt;the desired frequency for cclk. For the procedure for determining the PLL setting and &lt;BR /&gt;configuration, see Section 3.10.5 “Procedure for determining PLL settings”.&lt;BR /&gt;3. Enable the device controller clocks by setting DEV_CLK_EN and AHB_CLK_EN bits &lt;BR /&gt;in the ClkCtrl register. Poll the respective clock bits in the ClkSt register until they are &lt;BR /&gt;set.&lt;BR /&gt;4. Select the desired USB port pins using the PortSel register. The PORTSEL_CLK_EN &lt;BR /&gt;bit must be set in ClkCtrl before accessing PortSel and should be cleared after &lt;BR /&gt;accessing PortSel.&lt;BR /&gt;5. Enable the USB pin functions by writing to the corresponding IOCON registers.&lt;BR /&gt;6. Disable the pull-ups and pull-downs on the VBUS pin using the corresponding IOCON &lt;BR /&gt;register by putting the pin in the “plain-input” mode. See Section 7.4.1 “I/O &lt;BR /&gt;configuration register contents (IOCON)”.&lt;BR /&gt;7. Set EpIn and MaxPSize registers for EP0 and EP1, and wait until the EP_RLZED bit &lt;BR /&gt;in DevIntSt is set so that EP0 and EP1 are realized.&lt;BR /&gt;8. Enable endpoint interrupts (Slave mode):&lt;BR /&gt;– Clear all endpoint interrupts using EpIntClr.&lt;BR /&gt;– Clear any device interrupts using DevIntClr.&lt;BR /&gt;– Enable Slave mode for the desired endpoints by setting the corresponding bits in &lt;BR /&gt;EpIntEn.&lt;BR /&gt;– Set the priority of each enabled interrupt using EpIntPri.&lt;BR /&gt;– Configure the desired interrupt mode using the SIE Set Mode command.&lt;BR /&gt;– Enable device interrupts using DevIntEn (normally DEV_STAT, EP_SLOW, and &lt;BR /&gt;possibly EP_FAST).&lt;BR /&gt;9. Configure the DMA (DMA mode):&lt;BR /&gt;– Disable DMA operation for all endpoints using EpDMADis.&lt;BR /&gt;– Clear any pending DMA requests using DMARClr.&lt;BR /&gt;– Clear all DMA interrupts using EoTIntClr, NDDRIntClr, and SysErrIntClr.&lt;BR /&gt;– Prepare the UDCA in system memory.&lt;BR /&gt;– Write the desired address for the UDCA to UDCAH.&lt;BR /&gt;– Enable the desired endpoints for DMA operation using EpDMAEn.&lt;BR /&gt;– Set EOT, DDR, and ERR bits in DMAIntEn.&lt;BR /&gt;10. Install USB interrupt handler in the NVIC by writing its address to the appropriate &lt;BR /&gt;vector table location and enabling the USB interrupt in the NVIC.&lt;BR /&gt;11. Set default USB address to 0x0 and DEV_EN to 1 using the SIE Set Address &lt;BR /&gt;command. A bus reset will also cause this to happen.&lt;BR /&gt;12. Set CON bit to 1 to make CONNECT active using the SIE Set Device Status &lt;BR /&gt;command.&lt;/I&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:30:41 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:30:41Z</dc:date>
    <item>
      <title>lpc1788 USB device not recognized</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1788-USB-device-not-recognized/m-p/517885#M2389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Mohammads on Fri Jul 04 02:18:54 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when I connect the usb device to computer(all flash erased), it says usb device not recognized(Unknown USB Device (Device Descriptor Request Failed))!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is that normal and I have to drive the 'USB Device' in LPC1788 by software?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;maybe I have a hardware problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;here is the schematic:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[img=621x512]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fupload7.ir%2Fimgs%2F2014-07%2F69846740420434595568.png%5B%2Fimg%5D" rel="nofollow" target="_blank"&gt;http://upload7.ir/imgs/2014-07/69846740420434595568.png[/img]&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:30:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1788-USB-device-not-recognized/m-p/517885#M2389</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1788 USB device not recognized</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1788-USB-device-not-recognized/m-p/517886#M2390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by nerd herd on Wed Jul 09 09:07:00 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It sounds like if you are asking if the LPC1788 is "plug and play" compatible without any software. As stated in section 12.13 in the LPC17xx_8x user's manual, there is software initialization that must be done in order for the MCU to be USB device compatible. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Fdocuments%2Fuser_manual%2FUM10470.pdf" rel="nofollow" target="_blank"&gt;http://www.nxp.com/documents/user_manual/UM10470.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;I&gt;The LPC178x/177x USB device controller initialization includes the following steps:&lt;BR /&gt;1. Enable the device controller by setting the PCUSB bit of PCONP.&lt;BR /&gt;2. Configure and enable the PLL and Clock Dividers to provide 48 MHz for usbclk and &lt;BR /&gt;the desired frequency for cclk. For the procedure for determining the PLL setting and &lt;BR /&gt;configuration, see Section 3.10.5 “Procedure for determining PLL settings”.&lt;BR /&gt;3. Enable the device controller clocks by setting DEV_CLK_EN and AHB_CLK_EN bits &lt;BR /&gt;in the ClkCtrl register. Poll the respective clock bits in the ClkSt register until they are &lt;BR /&gt;set.&lt;BR /&gt;4. Select the desired USB port pins using the PortSel register. The PORTSEL_CLK_EN &lt;BR /&gt;bit must be set in ClkCtrl before accessing PortSel and should be cleared after &lt;BR /&gt;accessing PortSel.&lt;BR /&gt;5. Enable the USB pin functions by writing to the corresponding IOCON registers.&lt;BR /&gt;6. Disable the pull-ups and pull-downs on the VBUS pin using the corresponding IOCON &lt;BR /&gt;register by putting the pin in the “plain-input” mode. See Section 7.4.1 “I/O &lt;BR /&gt;configuration register contents (IOCON)”.&lt;BR /&gt;7. Set EpIn and MaxPSize registers for EP0 and EP1, and wait until the EP_RLZED bit &lt;BR /&gt;in DevIntSt is set so that EP0 and EP1 are realized.&lt;BR /&gt;8. Enable endpoint interrupts (Slave mode):&lt;BR /&gt;– Clear all endpoint interrupts using EpIntClr.&lt;BR /&gt;– Clear any device interrupts using DevIntClr.&lt;BR /&gt;– Enable Slave mode for the desired endpoints by setting the corresponding bits in &lt;BR /&gt;EpIntEn.&lt;BR /&gt;– Set the priority of each enabled interrupt using EpIntPri.&lt;BR /&gt;– Configure the desired interrupt mode using the SIE Set Mode command.&lt;BR /&gt;– Enable device interrupts using DevIntEn (normally DEV_STAT, EP_SLOW, and &lt;BR /&gt;possibly EP_FAST).&lt;BR /&gt;9. Configure the DMA (DMA mode):&lt;BR /&gt;– Disable DMA operation for all endpoints using EpDMADis.&lt;BR /&gt;– Clear any pending DMA requests using DMARClr.&lt;BR /&gt;– Clear all DMA interrupts using EoTIntClr, NDDRIntClr, and SysErrIntClr.&lt;BR /&gt;– Prepare the UDCA in system memory.&lt;BR /&gt;– Write the desired address for the UDCA to UDCAH.&lt;BR /&gt;– Enable the desired endpoints for DMA operation using EpDMAEn.&lt;BR /&gt;– Set EOT, DDR, and ERR bits in DMAIntEn.&lt;BR /&gt;10. Install USB interrupt handler in the NVIC by writing its address to the appropriate &lt;BR /&gt;vector table location and enabling the USB interrupt in the NVIC.&lt;BR /&gt;11. Set default USB address to 0x0 and DEV_EN to 1 using the SIE Set Address &lt;BR /&gt;command. A bus reset will also cause this to happen.&lt;BR /&gt;12. Set CON bit to 1 to make CONNECT active using the SIE Set Device Status &lt;BR /&gt;command.&lt;/I&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:30:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1788-USB-device-not-recognized/m-p/517886#M2390</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1788 USB device not recognized</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1788-USB-device-not-recognized/m-p/517887#M2391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Mohammads on Thu Jul 10 00:48:33 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the response&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;some questions; after flashing the 'USB Secondary Bootloader', I get the "USB Device Not Recognized" error!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Should I setting the USB configurations in the 'USB Secondary Bootloader' project or just compile and flash?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it because of bad routing of tracks?(GND track is between the USB resistors)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[img=1020x565]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fupload7.ir%2Fimgs%2F2014-07%2F38680550861349104469.png%5B%2Fimg%5D" rel="nofollow" target="_blank"&gt;http://upload7.ir/imgs/2014-07/38680550861349104469.png[/img]&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:30:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1788-USB-device-not-recognized/m-p/517887#M2391</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1788 USB device not recognized</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1788-USB-device-not-recognized/m-p/517888#M2392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by nerd herd on Fri Jul 11 10:17:00 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So what exactly are you trying to accomplish? Are you just trying to get your MCU to be recognized as a USB device? If you are, you have to initialize the USB controller as a device as stated in my first post. You should not have to mess with any boot loaders. Simply program the flash with the necessary code and execute it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:30:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1788-USB-device-not-recognized/m-p/517888#M2392</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: lpc1788 USB device not recognized</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1788-USB-device-not-recognized/m-p/517889#M2393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Mohammads on Fri Jul 11 17:14:26 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just wanted to be sure there is no hardware problem!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But, OK. I'll try to handle that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you nerd&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:30:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc1788-USB-device-not-recognized/m-p/517889#M2393</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:30:43Z</dc:date>
    </item>
  </channel>
</rss>

