Can't program ATMega32u4 breakout from Arduino IDE, only cmd line

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

Moderators: adafruit_support_bill, adafruit

Can't program ATMega32u4 breakout from Arduino IDE, only cmd line

Postby Bradley » Fri Sep 16, 2011 12:51 am

I've been trying to reprogram my ATMega32u4 breakout board. I re-downloaded the pre-built IDE from Adafruit, but it still won't work.

Upon upload, it begins the process but stops after displaying "Programmer Supports the following devices: Device code 0x44"

I can however, program it using AVRDude from the command line.

Any clues on how to get it working in the IDE?
Bradley
 
Posts: 9
Joined: Wed Apr 13, 2011 9:57 am

Re: Can't program ATMega32u4 breakout from Arduino IDE, only cmd line

Postby pburgess » Fri Sep 16, 2011 1:45 am

I'd been observing exactly that phenomenon when first trying to upload to the 32u4 board from the Arduino IDE. Pulled hair for a couple hours before figuring it out: it was working all along, it just gives really horrible feedback (no progress bar, etc.). Try writing an obvious LED blink program to the board and see what happens...if it blinks, everything's good.
User avatar
pburgess
 
Posts: 1343
Joined: Sun Oct 26, 2008 1:29 am

Re: Can't program ATMega32u4 breakout from Arduino IDE, only cmd line

Postby Bradley » Fri Sep 16, 2011 9:31 am

NO, it doesn't work at all through Arduino IDE. Again, only through AVRDUDE command line.

Someone else have any ideas?
Bradley
 
Posts: 9
Joined: Wed Apr 13, 2011 9:57 am


Re: Can't program ATMega32u4 breakout from Arduino IDE, only cmd line

Postby Bradley » Mon Sep 19, 2011 7:21 am

Of course.

Like I said, I can program it using AVRDude directly, but not from the Arduino IDE. I've tried it from several computers with fresh installs.
Bradley
 
Posts: 9
Joined: Wed Apr 13, 2011 9:57 am


Re: Can't program ATMega32u4 breakout from Arduino IDE, only cmd line

Postby Bradley » Mon Sep 19, 2011 8:41 am

Tried it on Win7 64bit and Win XP
Bradley
 
Posts: 9
Joined: Wed Apr 13, 2011 9:57 am

Re: Can't program ATMega32u4 breakout from Arduino IDE, only cmd line

Postby adafruit_support_bill » Mon Sep 19, 2011 10:00 am

Make sure that your Java is up-to-date. I'll see if I can duplicate the symptoms here.
User avatar
adafruit_support_bill
 
Posts: 16054
Joined: Sat Feb 07, 2009 9:11 am

Re: Can't program ATMega32u4 breakout from Arduino IDE, only cmd line

Postby Bradley » Mon Sep 19, 2011 10:05 am

Yes, it's up to date.

Again, I tried it with your IDE download on three different machines (2 Win7 and 1 Win XP)
Bradley
 
Posts: 9
Joined: Wed Apr 13, 2011 9:57 am

Re: Can't program ATMega32u4 breakout from Arduino IDE, only cmd line

Postby abqlewis » Mon Sep 19, 2011 1:23 pm

OK, here's my guess - When you run avrdude from the command line, it is not always the same as the avrdude in the IDE. Since your error mentions a problem with a supported device, and the old avrdude in the IDE didn't support the 32u4, something could have fouled up when you updated the avrdude.exe or avrdude.conf to the version from ladyada's site. Or your path could be calling in an avrdude from somewhere else (less likely). Either way, do a search for anything avrdude.* and make sure it is what you expect (5.10 or better), or specifically run the avrdude in the IDE bin area from the command line.
abqlewis
 
Posts: 57
Joined: Fri Dec 11, 2009 1:19 am

Re: Can't program ATMega32u4 breakout from Arduino IDE, only cmd line

Postby Bradley » Mon Sep 19, 2011 1:49 pm

I don't think so. Again, I've downloaded AdaFruit's custom setup IDE for this board to banned PC's. It doesn't work -- only from the command line
Bradley
 
Posts: 9
Joined: Wed Apr 13, 2011 9:57 am

Re: Can't program ATMega32u4 breakout from Arduino IDE, only cmd line

Postby adafruit_support_bill » Mon Sep 19, 2011 3:17 pm

Bradley,
Upon upload, it begins the process but stops after displaying "Programmer Supports the following devices: Device code 0x44"

I was able to reproduce this exact output as described using a Win7-64 bit machine. However, as pburgess says, the lack of feedback does not necessarily indicate that the upload failed.

If I hold the shift-key down while pressing the upload button, it enables full diagnostic output from Avrdude and confirms that the upload does in fact succeed.
User avatar
adafruit_support_bill
 
Posts: 16054
Joined: Sat Feb 07, 2009 9:11 am

Re: Can't program ATMega32u4 breakout from Arduino IDE, only cmd line

Postby Bradley » Mon Sep 19, 2011 4:00 pm

I don't think this is the case, because the old code remained on the board, but I'll verify what you say and post my output.
Bradley
 
Posts: 9
Joined: Wed Apr 13, 2011 9:57 am

Re: Can't program ATMega32u4 breakout from Arduino IDE, only cmd line

Postby adafruit » Wed Sep 21, 2011 12:15 am

just as an aside, if you really want to use teensyduino, we suggest using the teensy board. adapting it to work with the 32u4 breakout is a hack on top of a hack. its worked for many people but its not a strongly supported method of programming it :/
User avatar
adafruit
 
Posts: 10491
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: Can't program ATMega32u4 breakout from Arduino IDE, only cmd line

Postby Bradley » Wed Sep 21, 2011 8:32 am

I haven't yet had a chance to verify the programming from the IDE yet. I will get to it soon.

I'm simply following your tutuorial as part of the led belt kit which contained this board. I realize this setup is not optimal, but that's what you packaged in your kit, so I'm stuck with it.
Bradley
 
Posts: 9
Joined: Wed Apr 13, 2011 9:57 am

Next

Return to Other Adafruit products

Who is online

Users browsing this forum: No registered users and 5 guests

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


New Products [103]

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[109]
 
Wireless[14]
Cables[61]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
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]