Atmega32u4 Breakout Board Leonardo Driver Issues

Breakout boards, sensors, Drawdio, Game of Life, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Atmega32u4 Breakout Board Leonardo Driver Issues

Postby karade » Sun Nov 13, 2011 6:02 am

Hi there,

I have recently purchased the Atmega32u4 breakout board, however every attempt I've made to install the leonardo drivers have failed and resulted in a "This device cannot start. (Code 10)" error.
I have tried the drivers included with arduino-1.0-rc2, and also the ones found at http://www.adafruit.com/datasheets/atmega32u4cdc.inf and http://www.ladyada.net/wiki/_media/tuto ... rdoinf.zip

After searching through the forums I have attempted to uninstall and reinstall all the usb drivers, and tried 4 different USB cables, all of which work when plugged into removable hard disks.
I've also tried three different computers, one widows XP and two windows 7 64bit. All show the same error :(

Any help would be greatly appreciated.
karade
 
Posts: 15
Joined: Sat Oct 29, 2011 12:31 am

Re: Atmega32u4 Breakout Board Leonardo Driver Issues

Postby karade » Sun Nov 13, 2011 6:09 am

Forgot to mention, when I plug the breakout board in the little red light comes on without a problem and the reset button works too.
karade
 
Posts: 15
Joined: Sat Oct 29, 2011 12:31 am

Re: Atmega32u4 Breakout Board Leonardo Driver Issues

Postby adafruit » Sun Nov 13, 2011 1:45 pm

we're looking into this issue, please hold on while we see why it works for some but not others!
User avatar
adafruit
 
Posts: 10546
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: Atmega32u4 Breakout Board Leonardo Driver Issues

Postby karade » Sun Nov 13, 2011 6:54 pm

Thanks for this, is there another thread I should be posting in to keep all the info in the one place?

A little bit more information for you, I tested on another xp system (xp home this time). Same results, what struck me as interesting is it correctly identified the device as Arduino Bootloader.
karade
 
Posts: 15
Joined: Sat Oct 29, 2011 12:31 am

Re: Atmega32u4 Breakout Board Leonardo Driver Issues

Postby karade » Sun Nov 13, 2011 6:55 pm

Sorry, is there an edit post feature? I should clarify, it identified the board before any drivers where loaded onto the system.
karade
 
Posts: 15
Joined: Sat Oct 29, 2011 12:31 am

Re: Atmega32u4 Breakout Board Leonardo Driver Issues

Postby adafruit » Mon Nov 14, 2011 11:17 am

thats not unusual, did it load the drivers correctly?
User avatar
adafruit
 
Posts: 10546
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: Atmega32u4 Breakout Board Leonardo Driver Issues

Postby karade » Tue Nov 15, 2011 6:09 am

Yep, drivers loaded correctly across all machines. As soon as they where done installing they gave the code 10 error.
karade
 
Posts: 15
Joined: Sat Oct 29, 2011 12:31 am

Re: Atmega32u4 Breakout Board Leonardo Driver Issues

Postby adafruit » Tue Nov 15, 2011 10:21 am

Can you look in the device manager? is a serial port created?
User avatar
adafruit
 
Posts: 10546
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: Atmega32u4 Breakout Board Leonardo Driver Issues

Postby bigmessowires » Tue Nov 15, 2011 5:12 pm

I'm having this same problem, under Windows 7 64-bit. At first I couldn't even install the driver: if I browsed to the driver location when the hardware was first inserted, Windows complained that a suitable driver could not be found. If I right-clicked the INF file and selected "Install" from the popup menu, Windows complained "The INF file you selected does not support this method of installation."

I was finally able to get the driver to install by going to:

Device Manager->
Arduino Leonardo bootloader->
Update Driver Software->
Browse my Computer for Driver Software->
Let Me Pick from a List of Device Drivers on my Computer->
Have Disk->Browse->
browse to "Arduino Leonardo.inf"->
OK->
(driver is not digitally signed) Next->
(installing is not recommended)Yes->
(Windows cannot verify the publisher) Install Anyway

The result is a new virtual serial port on COM4, but also an error "The device cannot start (code 10)."

error10.png
error10.png (58.62 KiB) Viewed 4298 times
bigmessowires
 
Posts: 59
Joined: Sun Jun 05, 2011 6:34 pm
Location: San Francisco

Re: Atmega32u4 Breakout Board Leonardo Driver Issues

Postby karade » Tue Nov 15, 2011 6:46 pm

Yes, it looks like there is a com device created. I've included a screenshot from my device manager and from the device itself. Please let me know if you require any more information I'm more than happy to provide as much as I can.
arduino2.jpg
arduino2.jpg (38.12 KiB) Viewed 4291 times

arduino1.jpg
arduino1.jpg (105.5 KiB) Viewed 4291 times
karade
 
Posts: 15
Joined: Sat Oct 29, 2011 12:31 am

Re: Atmega32u4 Breakout Board Leonardo Driver Issues

Postby bigmessowires » Tue Nov 15, 2011 6:55 pm

I spent some more time looking at this, and I strongly suspect the Leonardo USB bootloader is buggy or is not behaving like a normal USB device under some circumstances. Using an AVR ISP mkII, I re-burned the Leonardo bootloader from Arduino 1.0 RC2 just to make sure I had the right one, but afterwards I got identical behavior to before.

As I test, I tried the ATmega32u4 board in my wife's MacBook. Every time it's inserted or reset, the Mac says "a new network interface has been detected!" and prompts me for network setup information, so something strange is clearly going on. Several times I also got the Mac Keyboard Setup Assistant to pop-up at the same time as the network setup, but that doesn't happen 100% of the time. But surprisingly, I was actually able to successfully program the Blink example after canceling the network and keyboard setup, and pointing the Arduino IDE to /dev/tty.usbmodem1d11. That proves the hardware works, and it's not a bad board or cable or something.

Adafruit, what was the USB bootloader you had on these before switching to the Leonardo bootloader? I'd like to try it out and see if I have better results.
bigmessowires
 
Posts: 59
Joined: Sun Jun 05, 2011 6:34 pm
Location: San Francisco

Re: Atmega32u4 Breakout Board Leonardo Driver Issues

Postby bigmessowires » Tue Nov 15, 2011 7:15 pm

This just keeps getting weirder. After programming the Blink example using the Mac, now whenever I reconnect the board to my PC, it blue-screens, right after the "boop-beep" USB insertion sound. It appears that whatever sketch is programmed to the ATmega is effecting the USB behavior somehow. Is that normal? I've never worked with USB-equipped AVRs before, but it sure sounds fishy to me.
bigmessowires
 
Posts: 59
Joined: Sun Jun 05, 2011 6:34 pm
Location: San Francisco

Re: Atmega32u4 Breakout Board Leonardo Driver Issues

Postby bigmessowires » Tue Nov 15, 2011 7:40 pm

OK... I reburned the Leonardo bootloader for a second time, which cured the constant blue-screens on the PC. Then I reconnected the board, uninstalled the board via the Device Manager, reconnected the board a second time, and now it works. Huh??? :shock:

I didn't even install any driver for it. Windows shows that it's using C:\Windows\system32\DRIVERS\usbser.sys as the driver. And instead of showing "Arduino Leonardo bootloader" in the Device Manager with an error exclamation point on it, now it shows up as just "Arduino Leonardo", with no exclamation point.

leonardo.png
leonardo.png (53.98 KiB) Viewed 4286 times
bigmessowires
 
Posts: 59
Joined: Sun Jun 05, 2011 6:34 pm
Location: San Francisco

Re: Atmega32u4 Breakout Board Leonardo Driver Issues

Postby bigmessowires » Tue Nov 15, 2011 7:49 pm

I have a theory... karade, can you try this:

While holding down the reset button, connect the ATmega32u4 board to your PC. Wait several seconds while continuing to hold the reset button. You shouldn't hear any USB beep-beep insertion feedback audio during this time. After several seconds have gone by, release the reset button and the USB insertion event should occur.
bigmessowires
 
Posts: 59
Joined: Sun Jun 05, 2011 6:34 pm
Location: San Francisco

Re: Atmega32u4 Breakout Board Leonardo Driver Issues

Postby adafruit » Tue Nov 15, 2011 9:55 pm

when we released this board we called it "beta" and it appears some of you did a great job finding an issue with the bootloaders for the first batch of boards (thank you!). some of them seem to work but some are are causing some issues in some cases. if you have one and you can reburn the bootloader (usint ArduinoISP or USBtiny or other) then please do that, we can assist you in the forums with that if you need help. if you cannot burn a bootloader at all, just email support@adafruit.com and we'll work out an exchange or something else!

thanks,
adafruit
User avatar
adafruit
 
Posts: 10546
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Next

Return to Other Adafruit products

Who is online

Users browsing this forum: No registered users and 4 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [114]

Raspberry Pi[82]
 
FLORA[24]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[12]
Arduino[60]
 
NETduino[14]
 
BeagleBone[23]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[39]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[9]


 
Breakout Boards[35]
LCDs & Displays[49]
Components & Parts[70]
Batteries & Power[54]
EL Wire/Tape/Panel[52]
LEDs[112]
 
Wireless[16]
Cables[66]
 
Lasers[6]
Sensors/Parts[147]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[41]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[25]


 
Stickers[41]
 
Skill badges[55]
 
Books[26]
 
Circuit Playground[7]
 
Gift Certificates[4]