<?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: &amp;quot;Unknown Device&amp;quot; when attempting USBCDC example in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/quot-Unknown-Device-quot-when-attempting-USBCDC-example/m-p/531481#M2525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by NXP_Europe on Mon Apr 25 04:27:04 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello JSchwendeman,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you try to disconnect the LED circuit? This is an extra load for the USBD+ (via 1.5 k).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You are switching the USBD+ via R19 (1.5k) to 3.3V. Did you you check a switching power of +5V? The hardware should be changed a little by e.g. adding an extra NPN transistor. The USBCONNECT-signal needs to be inverted.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 21:43:02 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T21:43:02Z</dc:date>
    <item>
      <title>"Unknown Device" when attempting USBCDC example</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/quot-Unknown-Device-quot-when-attempting-USBCDC-example/m-p/531476#M2520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by JSchwendeman on Mon Apr 18 19:09:42 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello Everyone!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm attempting to implement the USB soft connect transistor as wired in the following schematic (I also use the reset and bootloader circuitry shown): &lt;/SPAN&gt;&lt;A href="http://http://www.microbuilder.eu/Files/Projects/LPC1343RefDesign/LPC1343_Schematic_v1.6.pdf"&gt;http://www.microbuilder.eu/Files/Projects/LPC1343RefDesign/LPC1343_Schematic_v1.6.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The USB bootloader works as expected, and I am able to download code and verify operation (blinking lights, read buttons, etc).&amp;nbsp; However, when i attempt to deploy the USBCDC example, upon reset my computer (XP 32bit) complains about an "Unknown USB" device.&amp;nbsp; Attempting to point to the vcom driver, windows complains that the driver doesn't match the hardware.&amp;nbsp; Checking in the device manager, I can see that the VID and PID for the device are both called out as _0000 (doesn't match the PID/VID in the .inf, makes sense).&amp;nbsp; I checked the config.h code included in the example, and verified that they match those in the lpc134x-vcom.inf file.&amp;nbsp; Recompile, still no luck.&amp;nbsp; I thought there might be some issue with the micro expecting USBVBUS to be low on reset, and then high later on, so I placed a switch in between, allowing me to toggle USBVBUS, still no luck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now here's the interesting part.&amp;nbsp; In the microebuilder code examples, there are some test binaries that allow one to test out their hardware after assembly.&amp;nbsp; If I load the usbcli.bin example, upon reset the device enumerates correctly, I'm able to point to the driver and away we go.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anybody see any glaring differences between the code in the USBCDC example and my hardware that might be causing this issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Questions and comments are greatly appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.jim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:42:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/quot-Unknown-Device-quot-when-attempting-USBCDC-example/m-p/531476#M2520</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: "Unknown Device" when attempting USBCDC example</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/quot-Unknown-Device-quot-when-attempting-USBCDC-example/m-p/531477#M2521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by JSchwendeman on Tue Apr 19 20:04:57 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;An additional piece of information I can supply:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When using the USBCDC binary compiled from LPCXpresso, I see that the SoftConnect is linked to USBVBUS.&amp;nbsp; That is to say, when I plug in my USB cable, VBUS goes high, and the LPC enables the soft connect.&amp;nbsp; Unplug, and the soft connect indicator turns off...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I try the pre-compiled hardware test binary that actually works, I see that the softconnect indicator is always on, regardless of whether VUSB is high or not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's a new, strange piece of information to add to the puzzle.&amp;nbsp; I compiled the USBHID example, loaded, and was able to run as expected!&amp;nbsp; I can run the HID example, get the description strings from the device and toggle the inputs and outputs.&amp;nbsp; Does this suggest some sort of driver problem on the windows side?&amp;nbsp; I've tried this on both my home and work PCs (which are WinXP, 32bit, SP3), so I'm a little surprised if that is the case!?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:43:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/quot-Unknown-Device-quot-when-attempting-USBCDC-example/m-p/531477#M2521</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: "Unknown Device" when attempting USBCDC example</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/quot-Unknown-Device-quot-when-attempting-USBCDC-example/m-p/531478#M2522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ktownsend on Wed Apr 20 02:53:54 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If you're getting 0000 for your VID and PID but the test firmware works, it's almost certainly a SW issue.&amp;nbsp; You'll have to take a better look at the init code, etc.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:43:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/quot-Unknown-Device-quot-when-attempting-USBCDC-example/m-p/531478#M2522</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: "Unknown Device" when attempting USBCDC example</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/quot-Unknown-Device-quot-when-attempting-USBCDC-example/m-p/531479#M2523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by JSchwendeman on Sun Apr 24 09:35:43 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Out of curiosity, what potential issues could throw the init code out of whack for certain examples, but not others?&amp;nbsp; That is to say, I've compiled and tried the following sets of code and they all work as expected (VID and PID show up as expected):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;USBHID, USBHID_ROM, USBMSD_ROM&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've compiled and tried these following sets of code and they all fail (where the USB device shows up as PID and VID = 0000 and windows identifies as "Unknown Device"):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;USBCDC, USBHID_ROM_TINY, USBMSD&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I look at the config.h files in each of these projects, I see that they all have this code in common:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;#define NXP_VID&amp;nbsp; 0x1FC9
#define MY_VID&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x????

#define USB_VENDOR_ID NXP_VID // Vendor ID
#define USB_PROD_ID&amp;nbsp;&amp;nbsp; 0x0003// Product ID
#define USB_DEVICE&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0100// Device ID&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This would indicate that they all have the same VID and PID programmed correct?&amp;nbsp; I should probably point out that these are all examples downloaded off the LPCXpresso and haven't changed any source code at this point...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been using the bootloader to program all of these, rather than the LPC-Link.&amp;nbsp; Are there differences between where and how the code is executed between either location that could lead to this issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could my selection of SoftConnect transistor result in some timing sensitivity for some of these examples?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:43:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/quot-Unknown-Device-quot-when-attempting-USBCDC-example/m-p/531479#M2523</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: "Unknown Device" when attempting USBCDC example</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/quot-Unknown-Device-quot-when-attempting-USBCDC-example/m-p/531480#M2524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ktownsend on Sun Apr 24 15:20:12 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If you've already installed a device using one profile like mass storage or CDC or HID with the same VID and PID, Windows may be confused because it previously installed a driver for a different profile with these same IDs.&amp;nbsp; Try changing the PID to something else (and updating the .inf file as well if using USBCDC) and see if this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:43:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/quot-Unknown-Device-quot-when-attempting-USBCDC-example/m-p/531480#M2524</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: "Unknown Device" when attempting USBCDC example</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/quot-Unknown-Device-quot-when-attempting-USBCDC-example/m-p/531481#M2525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by NXP_Europe on Mon Apr 25 04:27:04 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello JSchwendeman,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you try to disconnect the LED circuit? This is an extra load for the USBD+ (via 1.5 k).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You are switching the USBD+ via R19 (1.5k) to 3.3V. Did you you check a switching power of +5V? The hardware should be changed a little by e.g. adding an extra NPN transistor. The USBCONNECT-signal needs to be inverted.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:43:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/quot-Unknown-Device-quot-when-attempting-USBCDC-example/m-p/531481#M2525</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: "Unknown Device" when attempting USBCDC example</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/quot-Unknown-Device-quot-when-attempting-USBCDC-example/m-p/531482#M2526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by JSchwendeman on Tue Apr 26 19:09:34 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello NXP_Europe,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why would this softconnect circuit work for the USBHID and other USB examples, but not work for the USBCDC example?&amp;nbsp; Likewise for the bootloader?&amp;nbsp; I am easily able to plug the device in, enumerate as mass storage, and load new binaries on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regarding the PNP transistor, I guess I don't see how the LED acts as an additional load on the USB+ line.&amp;nbsp; The transistor collector goes to ~3.3V when USBCONNECT goes low.&amp;nbsp; That 3.3V pulls up the 1.5k resister to USB+ and also drives the LED, but one shouldn't effect the other, should it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:43:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/quot-Unknown-Device-quot-when-attempting-USBCDC-example/m-p/531482#M2526</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: "Unknown Device" when attempting USBCDC example</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/quot-Unknown-Device-quot-when-attempting-USBCDC-example/m-p/531483#M2527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by JSchwendeman on Tue Apr 26 20:21:20 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi KTownsend,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I deleted the drivers when moving between the HID and MSD examples to get them to work, but at least I see that the VID and PID of the device is correct.&amp;nbsp; For all of these instances, the PID and VID are _0000.&amp;nbsp; I tried changing PID and VID with no luck, still shows up as zeros.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This just seems bizarre to me that I can get some samples that work consistently, and some samples that fail consistently...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: KTownsend&lt;/STRONG&gt;&lt;BR /&gt;If you've already installed a device using one profile like mass storage or CDC or HID with the same VID and PID, Windows may be confused because it previously installed a driver for a different profile with these same IDs.&amp;nbsp; Try changing the PID to something else (and updating the .inf file as well if using USBCDC) and see if this helps.&lt;/SPAN&gt;&lt;HR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:43:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/quot-Unknown-Device-quot-when-attempting-USBCDC-example/m-p/531483#M2527</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:43:04Z</dc:date>
    </item>
  </channel>
</rss>

