Atmega32u4 Breakout Board Leonardo Driver Issues

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

Moderators: adafruit_support_bill, adafruit

Re: Atmega32u4 Breakout Board Leonardo Driver Issues

Postby bigmessowires » Thu Nov 17, 2011 12:26 pm

toddkrein wrote:Has anyone sucessfully downloaded an arduino sketch w/o it BSoD-ing? If so, then it's a matter of searching for the offending library. If not, I'll dig into the initialization code.


Yes. At first I programmed the Blink example from the Mac, and verified that it was working by hooking up an external LED. When I then brought the board back to the PC, I got a bluescreen BAD_POOL_CALLER crash every time, just like you described. I then reburned the Arduino 1.0 RC2 Leonardo bootlader a second time, and now it seems to work fine on my PC. I successfully programmed the Blink example from the PC, as well as the USB keyboard example. I wish I could explain what I did that seems to have fixed it, but honestly I don't know.
bigmessowires
 
Posts: 59
Joined: Sun Jun 05, 2011 6:34 pm
Location: San Francisco

Re: Atmega32u4 Breakout Board Leonardo Driver Issues

Postby toddkrein » Thu Nov 17, 2011 12:48 pm

Well, that's hopeful...

have you been able to download other sketches, or the blinky again? If so, it sounds like a problem getting to a known state. If not, then there's something else going on. Perhaps some initialization cruft.

The bummer is that with the BSoD, I can't do development during staff meetings... :-}
toddkrein
 
Posts: 17
Joined: Wed May 05, 2010 2:17 pm
Location: Palo Alto / Loomis

Re: Atmega32u4 Breakout Board Leonardo Driver Issues

Postby royco » Thu Nov 17, 2011 8:40 pm

BSODs are now gone.. Dont know how/why.

I just connected it to another PC(same 64bit) installed driver, program ran fine. Uploaded another sketch still ok. Went back to PC with BSODs and it now works AOK. WHa????

It could have been nice to know what caused the BSODs.
royco
 
Posts: 8
Joined: Thu May 05, 2011 1:35 pm

Re: Atmega32u4 Breakout Board Leonardo Driver Issues

Postby royco » Thu Nov 17, 2011 11:27 pm

BSOD is back. but... on one particular USB port only. All other ports are good. So you might want to try those other USB ports if you are having BSODs.

For now all is well. Thanks!
royco
 
Posts: 8
Joined: Thu May 05, 2011 1:35 pm

Re: Atmega32u4 Breakout Board Leonardo Driver Issues

Postby bigmessowires » Thu Nov 17, 2011 11:33 pm

Using a different USB port will probably cause it to be assigned a different COM number, so maybe that's it?

You can force it to be assigned a specific COM number in the Device Manager, under Properties->Advanced if I recall.
bigmessowires
 
Posts: 59
Joined: Sun Jun 05, 2011 6:34 pm
Location: San Francisco

Re: Atmega32u4 Breakout Board Leonardo Driver Issues

Postby toddkrein » Fri Nov 18, 2011 12:57 am

Windoze installs a new version of the driver for each different port that you plug a device into. Crazy, but there you have it. So I"m guessing that it has to do with the driver that's attached to that port's instance of the 32u4. That seems consistant (if anythign is consistant) with the wierdness of having to multiply re-install the same driver to get it to work.

Under Windoze 7, in the device manager you can select "Show Hidden Devices", and then look under the COM & LPT, and see all the drivers. It would be *great* to compare what's loaded and configed for the port that's failing vs. the port that works. Should give us some good information.

Not sure how you do it under XP, if that's what you're running...
toddkrein
 
Posts: 17
Joined: Wed May 05, 2010 2:17 pm
Location: Palo Alto / Loomis

Re: Atmega32u4 Breakout Board Leonardo Driver Issues

Postby royco » Fri Nov 18, 2011 11:18 am

So I did some more testing last night and here's what I found out on that particular offending USB port.

Changing COM ports - still BSOD
Removing Drivers/re-install -still BSOD
Loaded sketch via AVRISPmkii -still BSOD

I think the BSODs have something to do with the Human interface Devices , when the chip is bootloading the HID says Arduino Leonardo Bootloader, when the program runs it is changed to USB input device in the Device Manager. This change is where the BSOD happens. If I load the sketch without the boot loader then connect it to the PC I could see the USB input device being added then BSOD right away.

Anyway, i'll just mark this usb port for now and start playing with this thing.
royco
 
Posts: 8
Joined: Thu May 05, 2011 1:35 pm

Re: Atmega32u4 Breakout Board Leonardo Driver Issues

Postby bigmessowires » Fri Nov 18, 2011 11:40 am

Royco, are you getting BSOD even after burning the most recent Leonardo bootloader from Git?

royco wrote:If I load the sketch without the boot loader then connect it to the PC I could see the USB input device being added then BSOD right away.


That sounds strange. If you loaded the sketch using the AVR ISP mkII, then that should have completely erased the bootloader, right? If so, then plugging in the board to your PC shouldn't enumerate a USB device or do anything at all, unless the sketch you're running is one that uses USB itself (like the mouse and keyboard samples).
bigmessowires
 
Posts: 59
Joined: Sun Jun 05, 2011 6:34 pm
Location: San Francisco

Re: Atmega32u4 Breakout Board Leonardo Driver Issues

Postby royco » Fri Nov 18, 2011 12:02 pm

Yes, Im using the latest boot loader already. and even without the boot loader it still does BSOD on that particular USB port(using blink sketch). Somehow I see the USB device added under the HID category even without the boot loader. I dont know if that one USB port is faulty or something but on my other PC all USB ports work ok.

Thanks
royco
 
Posts: 8
Joined: Thu May 05, 2011 1:35 pm

Re: Atmega32u4 Breakout Board Leonardo Driver Issues

Postby db4476 » Fri Nov 18, 2011 4:28 pm

Is there a solution to this issue yet? The world awaits.... :|
db4476
 
Posts: 1
Joined: Fri Nov 18, 2011 4:20 pm

Re: Atmega32u4 Breakout Board Leonardo Driver Issues

Postby tadpole » Wed Nov 23, 2011 7:42 am

Hi again,
So I was asked to post replies here, along with a screen shot. Mind you this is all on a german language OS, so I hope it isn't too confusing. The device shows up under "unknown devices", and driver isn't recognised. I don't have any way of putting a new bootloader on it, and was wondering if I should still send it back? Postage would run be about $12, and I wonder if there is some other deal we could work out? If there isn't I will send it back, it is just a bit of a pain.
Untitled-2.jpg
Untitled-2.jpg (115.91 KiB) Viewed 2009 times
tadpole
 
Posts: 14
Joined: Thu Nov 10, 2011 3:41 pm

Re: Atmega32u4 Breakout Board Leonardo Driver Issues

Postby vtluu » Wed Nov 23, 2011 11:24 am

tadpole, did you try the driver install procedure bigmessowires posted earlier in this thread? viewtopic.php?f=19&t=24141#p125471

The relevant .inf (driver) file needed is linked in the Downloads section at the bottom of this page: http://ladyada.net/products/atmega32u4breakout/

That got the driver installed for me. Unfortunately I still get the "Could not start" error. I don't have an ISP box so re-flashing the board isn't an option unless/until I get one (which I might do anyway). Too bad, I'd really been hoping to spend some time this holiday weekend hacking on this device.
Viet-Tam Luu (a.k.a. "Tam")
vtluu
 
Posts: 6
Joined: Thu Nov 10, 2011 11:48 am
Location: San Jose, CA, USA

Re: Atmega32u4 Breakout Board Leonardo Driver Issues

Postby tadpole » Wed Nov 23, 2011 12:40 pm

Thanks Vtluu,
I had tried that method (as well what seems like 100 others), but didn't have any luck. The only way I got any sort of progress was to change the driver so that the VID and PID matched the ones that showed up on my system as the corrosponding hardware IDs. That however led to the famous error 10. I ordered this with the belt kit, and was actually expecting it to simply work. lol.
tadpole
 
Posts: 14
Joined: Thu Nov 10, 2011 3:41 pm

Re: Atmega32u4 Breakout Board Leonardo Driver Issues

Postby adafruit » Wed Nov 23, 2011 12:54 pm

tadpole wrote:Thanks Vtluu,
I had tried that method (as well what seems like 100 others), but didn't have any luck. The only way I got any sort of progress was to change the driver so that the VID and PID matched the ones that showed up on my system as the corrosponding hardware IDs. That however led to the famous error 10. I ordered this with the belt kit, and was actually expecting it to simply work. lol.


Hi, we've posted in this thread
viewtopic.php?f=19&t=24141&p=125500#p125500
for anyone still having problems, and unable to burn AVRs on their own, they can contact us for a replacement 32u4 with the latest bootloader on it.
User avatar
adafruit
 
Posts: 10483
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: Atmega32u4 Breakout Board Leonardo Driver Issues

Postby bigmessowires » Wed Nov 23, 2011 12:58 pm

tadpole wrote:I had tried that method (as well what seems like 100 others), but didn't have any luck. The only way I got any sort of progress was to change the driver so that the VID and PID matched the ones that showed up on my system as the corrosponding hardware IDs.


Strange. Can you describe what exactly happens when you tried the driver install method from my earlier post? Does it report some kind of error?

What VID and PID are showing up on your computer? The VID should be 2341. It looks like the PID was changed from 32 to 34 in the November 9th Leonardo bootloader update.
bigmessowires
 
Posts: 59
Joined: Sun Jun 05, 2011 6:34 pm
Location: San Francisco

PreviousNext

Return to Other Adafruit products

Who is online

Users browsing this forum: orbitcoms and 8 guests

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


New Products [102]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
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[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[108]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[69]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


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