I can't warite fuse in AtMega48 via avrdude

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
# avrdude -p m48 -U hfuse:w:0xDC:m

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9205
avrdude: current erase-rewrite cycle count is -117834497 (if being tracked)
avrdude: reading input file "0xDC"
avrdude: writing hfuse (1 bytes):

Writing |                                                    | 0% 0.00s ***failed;
Writing | ################################################## | 100% 0.04s

avrdude: 1 bytes of hfuse written
avrdude: verifying hfuse memory against 0xDC:
avrdude: load data hfuse data from input file 0xDC:
avrdude: input file 0xDC contains 1 bytes
avrdude: reading on-chip hfuse data:

Reading | ################################################## | 100% 0.00s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
         0xdc != 0xdf
avrdude: verification error; content mismatch

avrdude: safemode: hfuse changed! Was dc, and is now df
Would you like this fuse to be changed back? [y/n] y
avrdude: and COULD NOT be changed
avrdude: safemode: Fuses not recovered, sorry

avrdude done.  Thank you.

I use programmer stk200

Last Edited: Wed. Jul 2, 2008 - 02:56 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have never used avrdude, but the stk500.exe requires that you set the high-fuse and the low-fuse together.

Perhaps you can give the appropriate command to avrdude to set both fuses.

Or better. Wait for a reply from an avrdude user.

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Fuses must be set together an in right order

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Given that the high fuse defaults to 0xDF and you are just changing this to 0xDC it seems the only thing being changed are BODLEVEL1/0 so this should work. I can only assume that as soon as it's enabled the BOD is triggering but it seems you are setting the 4.3V level. Is it possible that Vcc is below 4.3V? Maybe you are running at 3.3V?