Due to high demand expect some shipping delays at this time, orders may not ship for 3-4 business days. On MLK Day no orders will be shipped.
0

Disabling Clock Divide (CKDIV8) using USBtinyISP + AVRDude
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Disabling Clock Divide (CKDIV8) using USBtinyISP + AVRDude

by limaiem on Sat Feb 14, 2009 2:49 pm

Hello,

I just assembled my USBtinyISP. I got he famous "rc=-1" error but I fixed the problem !
I succeeded in flashing my Attyny45 with AVRDude.

Now I am trying to disable the internal Fuse "CKDIV8" that divide the internal clock speed by 8 (I get 1MHz).

I do not what to disable the internal oscillator ! I just need to set CKDIV8 to off so I can get the internal speed to 8Mhz.

I tryed to use the Fuse Calculator Linked in the Ladyada USBtinyISP manual (ref, http://www.engbedded.com/cgi-bin/fc.cgi/) but the link is broken and I do not found any information for to do this.

Since it is a critical manipulation I am asking for Help here ...

Should I first read the all the Fuse statues before setting the new statues of should I just fix the fuse CKDIV8 to 0 !

The instruction will have this syntax ... :

avrdude -c usbtiny -p attiny45 -U hfuse:w:<0xHH>:m

someone can help ?

imed limaiem
(paris)

limaiem
 
Posts: 3
Joined: Sat Feb 14, 2009 2:20 pm

Re: Disabling Clock Divide (CKDIV8) using USBtinyISP + AVRDude

by adafruit on Sat Feb 14, 2009 11:16 pm

either wait till the site goes up or go to avrfreaks.com or read the datasheet

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

Re: Disabling Clock Divide (CKDIV8) using USBtinyISP + AVRDude

by The_Don125 on Sun Feb 15, 2009 1:08 am

http://www.engbedded.com/cgi-bin/fc.cgi/ isn't working for you? I just tried it and its functioning for me...

Anyway, with the 8MHz internal oscillator active and a 64ms start-up time, no clock output on PORTB4, and no clock division, you actually want to set the low fuse, so your command should look more like:
Code: Select all | TOGGLE FULL SIZE
avrdude -c usbtiny -p attiny45 -U lfuse:w:<0x62>:m
The_Don125
 
Posts: 373
Joined: Tue Mar 06, 2007 11:51 pm
Location: Illinois

Re: Disabling Clock Divide (CKDIV8) using USBtinyISP + AVRDude

by magician13134 on Sun Feb 15, 2009 1:46 am

The_Don125 wrote:http://www.engbedded.com/cgi-bin/fc.cgi/ isn't working for you? I just tried it and its functioning for me...
I've tried that link maybe 5 times over the past few months and EVERY time gotten a "500 server error", but now it's working again. Wow...
magician13134
 
Posts: 1119
Joined: Wed Jun 13, 2007 9:17 am
Location: Ann Arbor

Re: Disabling Clock Divide (CKDIV8) using USBtinyISP + AVRDude

by limaiem on Sun Feb 22, 2009 5:59 pm

magician13134 wrote:
The_Don125 wrote:http://www.engbedded.com/cgi-bin/fc.cgi/ isn't working for you? I just tried it and its functioning for me...
I've tried that link maybe 5 times over the past few months and EVERY time gotten a "500 server error", but now it's working again. Wow...



It worked for me last few days and I get the information I needed

The command line to use is:

avrdude -p attiny45 -c usbtiny -U lfuse:w:0xE2:m

All works fine !

Thank you for all,

ps:For those who had issues with "rc=-1" message, it could come from the board where the AVR ship is soldered (it could be write protected) the USBtinyISP is working really good and if all is soldered with even medium quality it should work fine

limaiem
 
Posts: 3
Joined: Sat Feb 14, 2009 2:20 pm

Re: Disabling Clock Divide (CKDIV8) using USBtinyISP + AVRDude

by limaiem on Sun Feb 22, 2009 6:00 pm

The_Don125 wrote:http://www.engbedded.com/cgi-bin/fc.cgi/ isn't working for you? I just tried it and its functioning for me...

Anyway, with the 8MHz internal oscillator active and a 64ms start-up time, no clock output on PORTB4, and no clock division, you actually want to set the low fuse, so your command should look more like:
Code: Select all | TOGGLE FULL SIZE
avrdude -c usbtiny -p attiny45 -U lfuse:w:<0x62>:m



Ok thank you

limaiem
 
Posts: 3
Joined: Sat Feb 14, 2009 2:20 pm

Re: Disabling Clock Divide (CKDIV8) using USBtinyISP + AVRDude

by lyronold on Thu Nov 17, 2011 8:56 am

Hello,

I've tried to do this with a arduino as programmer,
i used the command
Code: Select all | TOGGLE FULL SIZE
avrdude -c Arduino -P COM7 -p attiny45 -U lfuse:w:<0x62>:m
but it responded with:
Code: Select all | TOGGLE FULL SIZE
The system cannot find the file specified


How do i fix this?
lyronold
 
Posts: 3
Joined: Thu Nov 17, 2011 8:54 am

Re: Disabling Clock Divide (CKDIV8) using USBtinyISP + AVRDude

by mwilson on Thu Nov 17, 2011 11:19 am

Try

-U lfuse:w:0x62:m

man avrdude doesn't make any mention of those angle brackets.
mwilson
 
Posts: 46
Joined: Sun Oct 23, 2011 11:17 am
Location: Maynooth, Canada

Re: Disabling Clock Divide (CKDIV8) using USBtinyISP + AVRDude

by lyronold on Thu Nov 17, 2011 11:28 am

aha that's doing something..

now i get the message:
Code: Select all | TOGGLE FULL SIZE
avrdude: stk500_getsync(): not in sync: resp=0x00
lyronold
 
Posts: 3
Joined: Thu Nov 17, 2011 8:54 am

Re: Disabling Clock Divide (CKDIV8) using USBtinyISP + AVRDude

by mwilson on Thu Nov 17, 2011 12:06 pm

That's definitely something else. I don't know, but I googled "avrdude not_in_sync". The first hit wasn't worth much, but the second

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1248528012/all

might be helpful. And there are others.
mwilson
 
Posts: 46
Joined: Sun Oct 23, 2011 11:17 am
Location: Maynooth, Canada

Re: Disabling Clock Divide (CKDIV8) using USBtinyISP + AVRDude

by lyronold on Thu Nov 17, 2011 12:47 pm

It is connected properly, i can upload code to the arduino itself, i can upload to the attiny but no avrdude :(

I am sure i used the right com port..
lyronold
 
Posts: 3
Joined: Thu Nov 17, 2011 8:54 am

Please be positive and constructive with your questions and comments.