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)
Disabling Clock Divide (CKDIV8) using USBtinyISP + AVRDude
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- limaiem
- Posts: 3
- Joined: Sat Feb 14, 2009 2:20 pm
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
Re: Disabling Clock Divide (CKDIV8) using USBtinyISP + AVRDude
either wait till the site goes up or go to avrfreaks.com or read the datasheet
-
- Posts: 373
- Joined: Tue Mar 06, 2007 11:51 pm
Re: Disabling Clock Divide (CKDIV8) using USBtinyISP + AVRDude
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:
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
avrdude -c usbtiny -p attiny45 -U lfuse:w:<0x62>:m
-
- Posts: 1119
- Joined: Wed Jun 13, 2007 9:17 am
Re: Disabling Clock Divide (CKDIV8) using USBtinyISP + AVRDude
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...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...
- limaiem
- Posts: 3
- Joined: Sat Feb 14, 2009 2:20 pm
Re: Disabling Clock Divide (CKDIV8) using USBtinyISP + AVRDude
magician13134 wrote: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...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...
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
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
avrdude -c usbtiny -p attiny45 -U lfuse:w:<0x62>:m
Ok thank you
-
- Posts: 3
- Joined: Thu Nov 17, 2011 8:54 am
Re: Disabling Clock Divide (CKDIV8) using USBtinyISP + AVRDude
Hello,
I've tried to do this with a arduino as programmer,
i used the command but it responded with:
How do i fix this?
I've tried to do this with a arduino as programmer,
i used the command
Code: Select all
avrdude -c Arduino -P COM7 -p attiny45 -U lfuse:w:<0x62>:m
Code: Select all
The system cannot find the file specified
-
- Posts: 46
- Joined: Sun Oct 23, 2011 11:17 am
Re: Disabling Clock Divide (CKDIV8) using USBtinyISP + AVRDude
Try
-U lfuse:w:0x62:m
man avrdude doesn't make any mention of those angle brackets.
-U lfuse:w:0x62:m
man avrdude doesn't make any mention of those angle brackets.
-
- Posts: 3
- Joined: Thu Nov 17, 2011 8:54 am
Re: Disabling Clock Divide (CKDIV8) using USBtinyISP + AVRDude
aha that's doing something..
now i get the message:
now i get the message:
Code: Select all
avrdude: stk500_getsync(): not in sync: resp=0x00
-
- Posts: 46
- Joined: Sun Oct 23, 2011 11:17 am
Re: Disabling Clock Divide (CKDIV8) using USBtinyISP + AVRDude
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/YaB ... 528012/all
might be helpful. And there are others.
http://www.arduino.cc/cgi-bin/yabb2/YaB ... 528012/all
might be helpful. And there are others.
-
- Posts: 3
- Joined: Thu Nov 17, 2011 8:54 am
Re: Disabling Clock Divide (CKDIV8) using USBtinyISP + AVRDude
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..
I am sure i used the right com port..
Please be positive and constructive with your questions and comments.