Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

AVR ATtiny13 fuse reset problem.
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

AVR ATtiny13 fuse reset problem.

by capnregex on Wed Oct 12, 2011 1:36 pm

I have set the fuse settings on my ATtiny13 using the following line.

avrdude -c usbtiny -p t13 -U lfuse:w:0x6b:m -U hfuse:w:0xfd:m

I think that sets it to be clocked at 16khz.. which while odd, would not be so bad for the low power led blinky I'm working on..

problem is now avrdude can't talk to it.. getting avrdude: initialization failed, rc=-1

So, how do I get avrdude / usbtiny to talk to the chip? ( it's still running the program that I loaded prior to the fuse change above )

capnregex
 
Posts: 9
Joined: Wed Oct 12, 2011 1:22 pm

Re: AVR ATtiny13 fuse reset problem.

by sircastor on Thu Oct 13, 2011 3:12 pm

Is your chip plugged in right?
Is your programmer plugged in right?

I've gotten this a lot recently with my tiny45 and I've found that disconnecting the ground from my chip solves the problem. I'm not clear on the cause, but it's seemed to have worked.

Try looking toward the bottom of this page for more ideas:
http://www.ladyada.net/learn/avr/avrdude.html

sircastor
 
Posts: 37
Joined: Mon Jun 22, 2009 1:46 pm

Re: AVR ATtiny13 fuse reset problem.

by joe61 on Sat Oct 15, 2011 3:24 pm

A low fuse byte of 0x6b sets the ATtiny13 to use the 128KHz internal oscillator, not 16KHz, unless I'm reading the data sheet wrong.

You might need to lower the speed of your programmer. The tiny13 needs to be running at least four times as fast as the programmer is sending.

Joe

joe61
 
Posts: 18
Joined: Thu Apr 07, 2011 6:48 pm

Please be positive and constructive with your questions and comments.