I have just built a USBtinyISP (thanks ladyada) and am building a USB joystick interface. I am using an external 12MHz clock, which is verified working.
I can read and program the ATmega8 flash memory without any problems, but keep getting errors when trying to set the fuses:
Code: Select all
>avrdude -c usbtiny -p atmega8 -u -U
hfuse:w:0xf9:m -U lfuse:w:0xbf:m
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x1e9307
avrdude: reading input file "0xf9"
avrdude: writing hfuse (1 bytes):
Writing | | 0% 0.00s ***faile
d;
Writing | ################################################## | 100% 0.09s
avrdude: 1 bytes of hfuse written
avrdude: verifying hfuse memory against 0xf9:
avrdude: load data hfuse data from input file 0xf9:
avrdude: input file 0xf9 contains 1 bytes
avrdude: reading on-chip hfuse data:
Reading | ################################################## | 100% 0.00s
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
0xf9 != 0xd9
avrdude: verification error; content mismatch
avrdude done. Thank you.