Skip to content

Commit

Permalink
Merge pull request #130 from d3lta-v/master
Browse files Browse the repository at this point in the history
Fixed fuse flashing in Nano Every configuration
  • Loading branch information
MCUdude authored Oct 27, 2021
2 parents 1337691 + 1d9de4f commit a384133
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions megaavr/platform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,16 @@ tools.avrdude.erase.params.verbose=-v
tools.avrdude.erase.params.quiet=-q -q
tools.avrdude.erase.pattern="{cmd.path}" "-C{config.path}" -v -p{build.mcu} -c{protocol} {program.extra_params} -e {bootloader.fuse0} {bootloader.fuse1} {bootloader.fuse2} {bootloader.fuse4} {bootloader.fuse5} {bootloader.fuse6} {bootloader.fuse7} {bootloader.fuse8} {bootloader.lock}

tools.avrdude_nanoevery.bootloader.fuse0="-Ufuse0:w:{bootloader.WDTCFG}:m"
tools.avrdude_nanoevery.bootloader.fuse1="-Ufuse1:w:{bootloader.BODCFG}:m"
tools.avrdude_nanoevery.bootloader.fuse2="-Ufuse2:w:{bootloader.OSCCFG}:m"
tools.avrdude_nanoevery.bootloader.fuse4="-Ufuse4:w:{bootloader.TCD0CFG}:m"
tools.avrdude_nanoevery.bootloader.fuse5="-Ufuse5:w:{bootloader.SYSCFG0}:m"
tools.avrdude_nanoevery.bootloader.fuse6="-Ufuse6:w:{bootloader.SYSCFG1}:m"
tools.avrdude_nanoevery.bootloader.fuse7="-Ufuse7:w:{bootloader.APPEND}:m"
tools.avrdude_nanoevery.bootloader.fuse8="-Ufuse8:w:{bootloader.BOOTEND}:m"
tools.avrdude_nanoevery.bootloader.lock="-Ulock:w:{bootloader.LOCKBIT}:m"

tools.avrdude.bootloader.fuse0="-Ufuse0:w:{bootloader.WDTCFG}:m"
tools.avrdude.bootloader.fuse1="-Ufuse1:w:{bootloader.BODCFG}:m"
tools.avrdude.bootloader.fuse2="-Ufuse2:w:{bootloader.OSCCFG}:m"
Expand Down

0 comments on commit a384133

Please sign in to comment.