Jan,

Have a look at this:  

https://github.com/arduino/Arduino/pull/5182 
<https://github.com/arduino/Arduino/pull/5182>

At some stage AVRDude changed the way it reads back the unused fuse bits and 
thus the e-fuse parameter in the command line had to be adjusted.  I had this 
problem with the Arduino Uno.  While I am not familiar with the Leonardo, your 
problem might be the same.

It appears to me that you are probably using the new settings with an old 
version of AVRDude…

Implying that you should probably change efuse:w:0xFF:m to efuse:w:0xCF:m or 
update AVRDude.

Peter


> On 13 Dec 2018, at 12:34, Jan Kromhout <krom1...@hotmail.com> wrote:
> 
> Tristan,
> 
> 
> This is what I get
> Perhaps the fuse values are incorrect!
> 
> 
> MacBook-Pro-van-Jan-10:avrdude jankromhout$ avrdude -p m32u4 -c avrispv2 -P 
> /dev/tty.usbmodem00230362 -U efuse:w:0xFF:m -U hfuse:w:0xD9:m -U 
> lfuse:w:0xFF:m -U flash:w:leonardo.hex:i -U eeprom:w:leonardo.eep.hex:i
> 
> avrdude: AVR device initialized and ready to accept instructions
> 
> Reading | ################################################## | 100% 0.00s
> 
> avrdude: Device signature = 0x1e9587 (probably m32u4)
> 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 "0xFF"
> avrdude: writing efuse (1 bytes):
> 
> Writing | ################################################## | 100% 0.01s
> 
> avrdude: 1 bytes of efuse written
> avrdude: verifying efuse memory against 0xFF:
> avrdude: load data efuse data from input file 0xFF:
> avrdude: input file 0xFF contains 1 bytes
> avrdude: reading on-chip efuse data:
> 
> Reading | ################################################## | 100% 0.00s
> 
> avrdude: verifying ...
> avrdude: verification error, first mismatch at byte 0x0000
>         0xcf != 0xff
> avrdude: verification error; content mismatch
> 
> avrdude: safemode: efuse changed! Was ff, and is now cf
> Would you like this fuse to be changed back? [y/n]
> 
> Op 13 dec. 2018, om 12:24 heeft Tristan Williams 
> <h...@tjnw.co.uk<mailto:h...@tjnw.co.uk>> het volgende geschreven:
> 
> Jan,
> 
> What error is avrdude reporting?
> 
> Kind regards,
> 
> Tristan
> 
> On 13Dec18 10:09, Jan Kromhout wrote:
> Hi,
> 
> Flashing the Arduino Uno is giving no problems.
> 
> Try to flash the Leonardo.
> I’m using the Pololu AVR programmer v2.1
> This is my command.
> 
> MacBook-Pro-van-Jan-10:avrdude jankromhout$ avrdude -p m32u4 -c avrispv2 -P 
> /dev/tty.usbmodem00230362 -U efuse:w:0xFF:m -U hfuse:w:0xD9:m -U 
> lfuse:w:0xFF:m -U flash:w:leonardo.hex:i -U eeprom:w:leonardo.eep.hex:i
> 
> It isn’t working
> Can someone help me with this problem.
> 
> 
> Cheers,
> 
> Jan
> 
> _______________________________________________
> Amforth-devel mailing list for http://amforth.sf.net/
> Amforth-devel@lists.sourceforge.net<mailto: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<mailto: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


_______________________________________________
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