Writing firmware AVRDude settings
Closed this issue · 1 comments
Hi There. I am getting a error where it cannot write the fuses properly using the settings mentioned.
My command I am using is
avrdude -p m328p -P com4 -b 115200 -c arduino -U flash:w:sdisk2.hex:i -U hfuse:w:0xF9:m -U lfuse:w:0xF7:m -U efuse:w:0xFF:m
Below is the output. Not sure what is going on but I have programmed heaps of 328p's before and never seen this.
G:\My Drive\AVRDUDE>avrdude -p m328p -P com4 -b 115200 -c arduino -U flash:w:sdisk2.hex:i -U hfuse:w:0xF9:m -U lfuse:w:0xF7:m -U efuse:w:0xFF:m
avrdude: AVR device initialized and ready to accept instructions
avrdude: device signature = 0x1e950f (probably m328p)
avrdude: Note: flash memory has been specified, an erase cycle will be performed.
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file sdisk2.hex for flash
with 13966 bytes in 1 section within [0, 0x368d]
using 110 pages and 114 pad bytes
avrdude: writing 13966 bytes flash ...
Writing | ################################################## | 100% 2.19 s
avrdude: 13966 bytes of flash written
avrdude: verifying flash memory against sdisk2.hex
Reading | ################################################## | 100% 1.68 s
avrdude: 13966 bytes of flash verified
avrdude: reading input file 0xF9 for hfuse
with 1 byte in 1 section within [0, 0]
avrdude: writing 1 byte hfuse ...
***failed;
avrdude: 1 byte of hfuse written
avrdude: verifying hfuse memory against 0xF9
avrdude warning: verification mismatch
device 0x00 != input 0xf9 at addr 0x0000 (error)
avrdude error: verification mismatch
avrdude done. Thank you.
Ended up using a different programmer instead of my Uno.