Programming bootloader in Leonardo

Can someone tell me what should be the setting of the fuses in an Arduino Leonardo?
I'm trying to reprogram the Bootloader through Atmel-ICE's ISP.
But I get the below error.

avrdude: WARNING: invalid value for unused bits in fuse "lock", should be set to 1 according to datasheet
This behaviour is deprecated and will result in an error in future version
You probably want to use 0xff instead of 0x3f (double check with your datasheet first).

It's a warning and can be ignored.

Are you experiencing other problems after burning the bootloader?

These are the settings from Arduino's boards.txt

leonardo.bootloader.low_fuses=0xff
leonardo.bootloader.high_fuses=0xd8
leonardo.bootloader.extended_fuses=0xcb

Ok thanks for your answer.
It is strange that you get this warning then?
Everything else seems to work fine. And in the end I had my fuses correct.

Arduino has complete control over which version of AVRDUDE is used to upload sketches to your Leonardo. This means the deprecation is not a problem because if the time comes when AVRDUDE fully drops support for the old fuses style, Arduino will be able to update to the new fuses style at the same time they update to the new version of AVRDUDE that requires the change.

The deprecation notice is more for people who aren't using AVRDUDE in an integrated platform with controlled tools dependencies. The deprecation notice is intended to push those users to migrate to the new fuse style since they might decide to update their AVRDUDE at any moment.


If you are interested in all the boring details, take a look at this issue report, and at all the links off of that page:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.