Jan,

For the Arduino Uno we have been using the following command string 
successfully:

avrdude -p m328p -c avrispmkII -P usb -U efuse:w:0xFF:m -U hfuse:w:0xD9:m -U 
lfuse:w:0xFF:m -U flash:w:uno.hex:i -U eeprom:w:uno.eep.hex:i

Thus argument for efuse is set to FF instead of 05.  

The short explanation for this is a change inplemented in newer versions of 
AVRDude (something to do with how AVRDude reads back unused bits).  I had the 
same problem when I started with AMForth and it cost me a lot of time... 

Peter



> On 16 Oct 2018, at 20:56, Jan Kromhout <krom1...@hotmail.com> wrote:
> 
> When loading AmForth into my Arduino Uno  I get an error on the end.
> My question is what to do in that case?
> Are my settings of the fuse one?
> 
> Cheers,
> 
> Jan
> 
> 
> avrdude: verifying ...
> avrdude: verification error, first mismatch at byte 0x0000
>         0xfd != 0x05
> avrdude: verification error; content mismatch
> 
> avrdude: safemode: efuse changed! Was 5, and is now fd
> Would you like this fuse to be changed back? [y/n] n
> avrdude: safemode: Fuses OK (E:05, H:DE, L:FF)
> 
> My question is what to do in that situation?
> 
> 
> 
> 
> 
> MacBook-Pro-van-Jan-5:avrdude jankromhout$ avrdude -P 
> /dev/tty.usbmodem00230362 -c avrispv2 -b 19200 -p m328p -e -U 
> flash:w:uno.hex:i -U eeprom:w:uno.eep.hex:i -U efuse:w:0x05:m -U 
> hfuse:w:0xD9:m -U lfuse:w:0xFF:m
> 
> avrdude: AVR device initialized and ready to accept instructions
> 
> Reading | ################################################## | 100% 0.00s
> 
> avrdude: Device signature = 0x1e950f (probably m328p)
> avrdude: erasing chip
> avrdude: reading input file "uno.hex"
> avrdude: writing flash (32638 bytes):
> 
> Writing | ################################################## | 100% 2.06s
> 
> avrdude: 32638 bytes of flash written
> avrdude: verifying flash memory against uno.hex:
> avrdude: load data flash data from input file uno.hex:
> avrdude: input file uno.hex contains 32638 bytes
> avrdude: reading on-chip flash data:
> 
> Reading | ################################################## | 100% 1.86s
> 
> avrdude: verifying ...
> avrdude: 32638 bytes of flash verified
> avrdude: reading input file "uno.eep.hex"
> avrdude: writing eeprom (144 bytes):
> 
> Writing | ################################################## | 100% 0.06s
> 
> avrdude: 144 bytes of eeprom written
> avrdude: verifying eeprom memory against uno.eep.hex:
> avrdude: load data eeprom data from input file uno.eep.hex:
> avrdude: input file uno.eep.hex contains 144 bytes
> avrdude: reading on-chip eeprom data:
> 
> Reading | ################################################## | 100% 0.02s
> 
> avrdude: verifying ...
> avrdude: 144 bytes of eeprom verified
> avrdude: reading input file "0x05"
> avrdude: writing efuse (1 bytes):
> 
> Writing | ################################################## | 100% 0.01s
> 
> avrdude: 1 bytes of efuse written
> avrdude: verifying efuse memory against 0x05:
> avrdude: load data efuse data from input file 0x05:
> avrdude: input file 0x05 contains 1 bytes
> avrdude: reading on-chip efuse data:
> 
> Reading | ################################################## | 100% 0.00s
> 
> avrdude: verifying ...
> avrdude: verification error, first mismatch at byte 0x0000
>         0xfd != 0x05
> avrdude: verification error; content mismatch
> 
> avrdude: safemode: efuse changed! Was 5, and is now fd
> Would you like this fuse to be changed back? [y/n] n
> avrdude: safemode: Fuses OK (E:05, H:DE, L:FF)
> 
> avrdude done.  Thank you.
> 
> MacBook-Pro-van-Jan-5:avrdude jankromhout$
> 
> _______________________________________________
> Amforth-devel mailing list for http://amforth.sf.net/
> Amforth-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amforth-devel



_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to