Atmega32u4 breakout won't start uploaded code

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Atmega32u4 breakout won't start uploaded code

Postby jcrood » Mon Feb 27, 2012 3:17 pm

Hi all,

I've just received my Atmega32u4 breakout board and as a test I uploaded a simple "blink the boot led" program, with just about no result. No blinken lights for me. While uploading via avrdude through the bootloader went down without a hitch, after a reset and past the boot loader timeout, the little thing just sits there, doing nothing. After trying a few other small test programs with the same result, I decided to try programming it directly via the isp header. And funny enough, that did work.

So, I can upload through the bootloader just fine, but afterwards it doesn't seem to make to my program code, yet when the same program's loaded through isp, it does work. Is this a case of me not reading enough of the fine manual and overlooking something obvious, or is something else going on?

Best regards,
John
User avatar
jcrood
 
Posts: 2
Joined: Mon Feb 27, 2012 2:43 pm
Location: The Netherlands

Re: Atmega32u4 breakout won't start uploaded code

Postby adafruit » Mon Feb 27, 2012 3:50 pm

after you've uploaded via the bootloader, are you resetting the board, power cycling, etc? it could be stuck in the bootloader waiting for more data
User avatar
adafruit
 
Posts: 10491
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: Atmega32u4 breakout won't start uploaded code

Postby jcrood » Mon Feb 27, 2012 7:02 pm

Hi,

I've tried both resetting and re-plugging the board, to no avail. After a regular upload the program still doesn't seem to run. In further attempts to make the board behave properly, I figured the bootloader might have been wonky and re-programmed it, but that didn't help either. The only result of this is getting the efuse stuck on 0xC3 (I tried both boot loaders from http://github.com/adafruit/Atmega32u4-Breakout-Board and http://github.com/adafruit/lufa-lib, where the latter sets the efuse to 0xC3 when you use the provided makefile). Now it won't let me reset this to 0xF3, but luckily the upper bits are not in use and I hope this has no ill effect. I assume this can only be fixed with high-voltage programming now?
User avatar
jcrood
 
Posts: 2
Joined: Mon Feb 27, 2012 2:43 pm
Location: The Netherlands

Re: Atmega32u4 breakout won't start uploaded code

Postby adafruit » Mon Feb 27, 2012 10:13 pm

upper bits may be read differently. the board and bootloader have been pretty thoroughly tested and it sounds like it works when you ISP program so not sure what could be happening!
User avatar
adafruit
 
Posts: 10491
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc


Return to Microcontrollers

Who is online

Users browsing this forum: Zener and 3 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]