Black Lives Matter - Action and Equality.
0

Default fuse settings for Diecimila / Mega168?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Default fuse settings for Diecimila / Mega168?

by azog on Mon May 12, 2008 8:07 pm

I was messing around with the Diecimila connected via ISP to my STK500 and borked the fuses to the point where I needed to use HVPP to unbork it. Somewhere along the line, I think I've set the clock incorrectly, because now I can't upload a sketch in the Arduino IDE (I did re-program the bootloader, just in case). AVRStudio tells me that the fuses read 0xF8, 0xDD, 0xCF, which has the clock set at CKSEL=1111 SUT=00.

It may be late and I'm tired, but a google of "arduino default fuses for mega168" doesn't give me much information on what the fuses should be. Can someone give me a reading on their fuse settings? Thanks!
azog
 
Posts: 10
Joined: Thu Jan 24, 2008 8:49 am

by Matt on Mon May 12, 2008 9:07 pm

Just choose "Tools>Burn bootloader" in the Arduino IDE. It writes the fuses before burning the bootloader. That should write the default values.
Matt
 
Posts: 26
Joined: Sat Jul 01, 2006 6:40 pm

by azog on Tue May 13, 2008 3:41 pm

Is there any documentation on how to use the Arduino IDE to burn the bootloader using an STK500? Because it does not work as you suggest:

avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: successfully opened stk500v2 device -- please use -c stk500v2
avrdude: stk500v2_command(): command failed
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.

I know the STK500 works fine, because I can use it within the AVRStudio environment.
azog
 
Posts: 10
Joined: Thu Jan 24, 2008 8:49 am

Please be positive and constructive with your questions and comments.