I am having quite a bit of trouble with the fuse bits and I have 4
chips which exhibit this issue. I am able to program the chip
with the default factory settings and it functions fine. However,
I need to use a 16Mhz external crystal. So I have that hooked up
between the two XTAL pins with two 22pF caps to gnd.
programming the fuses fails with the following:
[code]
C:\Documents and Settings\Chrispy\Desktop\a>make fuse
avrdude -u -pm32 -cbsd -E noreset -U lfuse:w:0x5f:m
avrdude: AVR device initialized and ready to accept instructions
avrdude: current erase-rewrite cycle count is -50462977 (if being tracked)
avrdude: safemode is enabled, you will NOT be able to change the fuse bits. Use
-u option to disable
avrdude> d lfuse
>>> d lfuse
0000
00
|.
|
avrdude> d hfuse
>>> d hfuse
0000
00
|.
|
avrdude> d lock
>>> d lock
0000
00
|.
|
avrdude>
[/code]
I do not know why programming the fuses would make the chip completely
non-functional. I did not program the lock bits either so this is
very puzzling. Any attempt to program the chip results in a
similar verification error with first mismatch at 0x000.
I would appreciate anyone's help. I have 4 chips with this issue.