The new Raspberry Pi B Model B+ is here - Pick one up in the store and check our detailed guide!

[solved] arduino leonardo - usb device not recognized

by PixelMaster on Tue Aug 07, 2012 9:40 pm

I was uploading some code to it, I don't know if it finished but when it turns on, it does the normal thing then the RX light comes on and I get the "usb device not recognized" message. The weird thing is, if I plug the device into a USB 3.0 port I recognizes it but cant find the drivers for it. Does anyone know how to fix this?
Last edited by PixelMaster on Wed Aug 08, 2012 7:03 pm, edited 1 time in total.
PixelMaster
 
Posts: 22
Joined: Tue Oct 25, 2011 10:05 pm

Re: arduino leonardo - usb device not recognized

by PixelMaster on Tue Aug 07, 2012 9:45 pm

This is what my setupapi.dev.log looks like

Code: Select all | TOGGLE FULL SIZE
>>>  [Device Install (DiShowUpdateDevice) - USB\VID_0000&PID_0000\6&E722E1E&0&2]
>>>  Section start 2012/08/07 22:30:18.373
      cmd: "C:\Windows\system32\mmc.exe" C:\Windows\system32\devmgmt.msc
     dvi: {DIF_UPDATEDRIVER_UI} 22:30:18.373
     dvi:      No class installer for 'Unknown Device'
     dvi:      No CoInstallers found
     dvi:      Default installer: Enter 22:30:18.374
     dvi:      Default installer: Exit
     dvi: {DIF_UPDATEDRIVER_UI - exit(0xe000020e)} 22:30:18.375
     ndv: {Update Driver Software Wizard for USB\VID_0000&PID_0000\6&E722E1E&0&2}
     inf:      Opened PNF: 'C:\Windows\INF\usb.inf' ([strings.0409])
     ndv: {Update Driver Software Wizard exit(00000000)}
<<<  Section end 2012/08/07 22:30:36.990
<<<  [Exit status: SUCCESS]
PixelMaster
 
Posts: 22
Joined: Tue Oct 25, 2011 10:05 pm

Re: arduino leonardo - usb device not recognized

by PixelMaster on Tue Aug 07, 2012 10:13 pm

I have found out that its the Code I uploaded that is causing the problem, tested it (the code) on another leonardo and its doing the same thing. Is there a way to erase the code?
PixelMaster
 
Posts: 22
Joined: Tue Oct 25, 2011 10:05 pm

Re: arduino leonardo - usb device not recognized

by adafruit_support_rick on Wed Aug 08, 2012 12:26 am

It sounds like you must have overwritten the bootloader. If so, you will need to use an ISP programmer or a JTAG pod to rewrite the bootloader.
User avatar
adafruit_support_rick
 
Posts: 10767
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: arduino leonardo - usb device not recognized

by PixelMaster on Wed Aug 08, 2012 9:17 am

Can't I do that with another Arduino?
PixelMaster
 
Posts: 22
Joined: Tue Oct 25, 2011 10:05 pm

Re: arduino leonardo - usb device not recognized

by adafruit_support_rick on Wed Aug 08, 2012 9:23 am

Yes. The Arduino site has a guide for doing that.

HOWEVER: Those instructions assume a 328-based arduino as target, and so they tell you to connect to SPI through digital pins 10-13. On the Leonardo, you have to wire to the SPI header, not the digital pins:
SPI: on the ICSP header. These pins support SPI communication using the SPI library. Note that the SPI pins are not connected to any of the digital I/O pins as they are on the Uno, They are only available on the ICSP connector.


The Leonardo schematic shows the ICSP header pinout. The board has a silkscreened white dot to indicate pin 1
User avatar
adafruit_support_rick
 
Posts: 10767
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: arduino leonardo - usb device not recognized

by PixelMaster on Wed Aug 08, 2012 1:23 pm

Image would this be the right way to wire it?
PixelMaster
 
Posts: 22
Joined: Tue Oct 25, 2011 10:05 pm

Re: arduino leonardo - usb device not recognized

by adafruit_support_rick on Wed Aug 08, 2012 1:33 pm

Looks like you've got SPI mapped correctly. Just because I'm superstitious, I would run power and ground to the matching power and ground headers, instead of running them to the ICSP header.
User avatar
adafruit_support_rick
 
Posts: 10767
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: arduino leonardo - usb device not recognized

by PixelMaster on Wed Aug 08, 2012 7:03 pm

Awesome it works now, thanks for the help :)
PixelMaster
 
Posts: 22
Joined: Tue Oct 25, 2011 10:05 pm

Re: [solved] arduino leonardo - usb device not recognized

by everyoneisugly on Mon Mar 24, 2014 6:55 pm

I'm trying to use this method to fix a Leonardo but not having any luck. I have the two boards wired up as in the diagram, but I keep getting the following error when I try to run the bootloader as per the instructions on arduino.cc:
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.
everyoneisugly
 
Posts: 13
Joined: Tue Jan 14, 2014 10:27 pm

Re: [solved] arduino leonardo - usb device not recognized

by adafruit_support_rick on Mon Mar 24, 2014 8:03 pm

Do you have Leonardo selected as the board type?
User avatar
adafruit_support_rick
 
Posts: 10767
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: [solved] arduino leonardo - usb device not recognized

by everyoneisugly on Tue Mar 25, 2014 12:51 pm

Yep, I only have leonardo boards and double checked that it hasn't been swapped to anything else.
everyoneisugly
 
Posts: 13
Joined: Tue Jan 14, 2014 10:27 pm

Re: [solved] arduino leonardo - usb device not recognized

by adafruit_support_rick on Tue Mar 25, 2014 1:29 pm

After the OP posted that diagram, I suggested running power and ground to the matching power and ground header pins, instead of to the ICSP header. If you don't have it that way, give that a try.
User avatar
adafruit_support_rick
 
Posts: 10767
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: [solved] arduino leonardo - usb device not recognized

by everyoneisugly on Tue Mar 25, 2014 8:28 pm

Yep, started with it power to power, ground to ground as you suggested and still got that error unfortunately.
everyoneisugly
 
Posts: 13
Joined: Tue Jan 14, 2014 10:27 pm

Re: [solved] arduino leonardo - usb device not recognized

by adafruit_support_rick on Wed Mar 26, 2014 9:12 am

Aha! Of course! :oops:
You're using two Leonardos. So you need to wire ICSP to ICSP. In the OP's diagram, the board on the left is an Uno, which brings the SPI lines out to pins 11, 12, and 13. The Leonardo only brings SPI out to the ICSP header.

You want to connect ICSP SCLK<->SCLK, MISO<->MISO, and MOSI<->MOSI
User avatar
adafruit_support_rick
 
Posts: 10767
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY