Re: avrdude and fuse programming
[email protected] (Joerg Wunsch) Fri, 16 May 2003 16:59:46 +0200 (MET DST)
| Newsgroups | gmane.comp.hardware.avr.general |
|---|---|
| Organization | interface systems GmbH, Dresden |
| Message-ID | <[email protected]> |
Matt Everett <[email protected]> wrote: > Does anyone out there use avrdude and know how to properly program > fuses with it? I can load my programs to my atmega32 just fine > (using a dt006 type programming cable), but my clock options are > stuck with the 1MHz internal oscillator until I can figure out how > to reprogram the fuse bits! You program them as any other memory range. The simplest method by now would be »terminal mode«: avrdude ... -t avrdude> d lf Should tell you 0xe1, which is the default for the fuse low byte. Setting this to 0xef should be for you, see the datasheet: avrdude> w lf 0 0xef avrdude> d hf The fuse high byte, ought to be 0x99 by default. Set it to 0x89 in order to set the CKOPT fuse (which is used for crystals > 1 MHz): avrdude> w hf 0 0x89 avrdude> q -- J"org Wunsch Unix support engineer [email protected] http://www.interface-systems.de/~j/