Problem programming 3.3v/8Mhz board

USB AVR Programmer and SPI interface. Adafruit's USBtinyISP.

Moderators: adafruit_support_bill, adafruit

Problem programming 3.3v/8Mhz board

Postby daryll » Sun Jan 16, 2011 9:09 pm

Hi folks,

I built my USBtinyISP and and the EMSL dev boards. I popped a '168 in to it and could make the LED blink. So the USBtinyISP itself seems to be fine. That was just for testing.

Now I'm trying to make this work with a board I'm building. The setup is Linux with atmega32u4 that I want to run at 3.3v/8Mhz. I'll also mention that crystal I've got in there is 16Mhz, because I thought the mcu could do a divide by two on it.

If I run avrdude with just the -c usbtiny -p m32u4. It "mostly" reports the correct signature and then tells me that it failed to read the lfuse and was giving up. I say mostly reads it correctly because sometimes it corrupts the signature as well.

I can read all the fuses and things seem to work nicely if I let the USBtinyISP provide 5v, but there are other pieces of my circuit that can't tolerate that and I don't have an easy way to avoid them getting power. (Probably something to fix for the next version.)

It seems like this is either a problem with the low power or clock making it marginal. Any idea what I should be doing differently? I'm trying to push past using an Arduino in to making my own board, so I'm probably just doing something dumb.
daryll
 
Posts: 1
Joined: Sun Jan 16, 2011 8:14 pm

Re: Problem programming 3.3v/8Mhz board

Postby westfw » Sun Jan 16, 2011 9:56 pm

I just had an interesting and possibly relevant experience with my own Arduinos; there are a bunch of different fuse settings for the crystal oscillator, and I managed to create an ATmega8 that ran fine in assorted Arduinos w 16MHz crystals, ran fine in an Adafruit BoArduino with resonator, but would not run at all (wouldn't even respond to programming commands) in my SSS clone with a different brand of resonator. Changing the fuse settings (to use the "full swing" oscillator instead of the "low power" oscillator) caused it to work everywhere...
User avatar
westfw
 
Posts: 1321
Joined: Fri Apr 27, 2007 12:01 pm
Location: SF Bay area


Return to USBtinyISP

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 [105]

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]