Skip to content

Commit

Permalink
Write all fuse bytes in a big bunch rather than induvidually
Browse files Browse the repository at this point in the history
  • Loading branch information
MCUdude committed Jan 11, 2023
1 parent be87c76 commit 1093afc
Showing 1 changed file with 3 additions and 23 deletions.
26 changes: 3 additions & 23 deletions megaavr/platform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,38 +131,18 @@ tools.avrdude_nanoevery.upload.params.verbose=-v
tools.avrdude_nanoevery.upload.params.quiet=-q -q
tools.avrdude_nanoevery.upload.verify=
tools.avrdude_nanoevery.upload.params.noverify=-V
tools.avrdude_nanoevery.upload.pattern="{runtime.tools.avrdude.path}/bin/avrdude" "-C{runtime.platform.path}/avrdude.conf" {upload.verbose} {upload.verify} -p{build.mcu} -c{upload.protocol} {program.extra_params} "-Uflash:w:{build.path}/{build.project_name}.hex:i" {bootloader.fuse0} {bootloader.fuse1} {bootloader.fuse2} {bootloader.fuse4} {bootloader.fuse5} {bootloader.fuse6} {bootloader.fuse7} {bootloader.fuse8} {bootloader.lock}
tools.avrdude_nanoevery.upload.pattern="{runtime.tools.avrdude.path}/bin/avrdude" "-C{runtime.platform.path}/avrdude.conf" {upload.verbose} {upload.verify} -p{build.mcu} -c{upload.protocol} {program.extra_params} -Ufuses:w:{bootloader.WDTCFG},{bootloader.BODCFG},{bootloader.OSCCFG},0xff,{bootloader.TCD0CFG},{bootloader.SYSCFG0},{bootloader.SYSCFG1},{bootloader.APPEND},{bootloader.BOOTEND}:m -Ulock:w:{bootloader.LOCKBIT}:m "-Uflash:w:{build.path}/{build.project_name}.hex:i"

tools.avrdude.program.params.verbose=-v
tools.avrdude.program.params.quiet=-q -q
# tools.avrdude.program.verify is needed for backwards compatibility with IDE 1.6.8 or older, IDE 1.6.9 or newer overrides this value
tools.avrdude.program.verify=
tools.avrdude.program.params.noverify=-V
tools.avrdude.program.pattern="{cmd.path}" "-C{config.path}" {program.verbose} {program.verify} -p{build.mcu} -c{protocol} {program.extra_params} "-Uflash:w:{build.path}/{build.project_name}.with_bootloader.hex:i" {bootloader.fuse0} {bootloader.fuse1} {bootloader.fuse2} {bootloader.fuse4} {bootloader.fuse5} {bootloader.fuse6} {bootloader.fuse7} {bootloader.fuse8} {bootloader.lock}
tools.avrdude.program.pattern="{cmd.path}" "-C{config.path}" {program.verbose} {program.verify} -p{build.mcu} -c{protocol} {program.extra_params} -Ufuses:w:{bootloader.WDTCFG},{bootloader.BODCFG},{bootloader.OSCCFG},0xff,{bootloader.TCD0CFG},{bootloader.SYSCFG0},{bootloader.SYSCFG1},{bootloader.APPEND},{bootloader.BOOTEND}:m -Ulock:w:{bootloader.LOCKBIT}:m "-Uflash:w:{build.path}/{build.project_name}.with_bootloader.hex:i"

tools.avrdude.erase.params.verbose=-v
tools.avrdude.erase.params.quiet=-q -q
tools.avrdude.erase.pattern="{cmd.path}" "-C{config.path}" -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="-Uwdtcfg:w:{bootloader.WDTCFG}:m"
tools.avrdude_nanoevery.bootloader.fuse1="-Ubodcfg:w:{bootloader.BODCFG}:m"
tools.avrdude_nanoevery.bootloader.fuse2="-Uosccfg:w:{bootloader.OSCCFG}:m"
tools.avrdude_nanoevery.bootloader.fuse4="-Utcd0cfg:w:{bootloader.TCD0CFG}:m"
tools.avrdude_nanoevery.bootloader.fuse5="-Usyscfg0:w:{bootloader.SYSCFG0}:m"
tools.avrdude_nanoevery.bootloader.fuse6="-Usyscfg1:w:{bootloader.SYSCFG1}:m"
tools.avrdude_nanoevery.bootloader.fuse7="-Uappend:w:{bootloader.APPEND}:m"
tools.avrdude_nanoevery.bootloader.fuse8="-Ubootend:w:{bootloader.BOOTEND}:m"
tools.avrdude_nanoevery.bootloader.lock="-Ulock:w:{bootloader.LOCKBIT}:m"

tools.avrdude.bootloader.fuse0="-Uwdtcfg:w:{bootloader.WDTCFG}:m"
tools.avrdude.bootloader.fuse1="-Ubodcfg:w:{bootloader.BODCFG}:m"
tools.avrdude.bootloader.fuse2="-Uosccfg:w:{bootloader.OSCCFG}:m"
tools.avrdude.bootloader.fuse4="-Utcd0cfg:w:{bootloader.TCD0CFG}:m"
tools.avrdude.bootloader.fuse5="-Usyscfg0:w:{bootloader.SYSCFG0}:m"
tools.avrdude.bootloader.fuse6="-Usyscfg1:w:{bootloader.SYSCFG1}:m"
tools.avrdude.bootloader.fuse7="-Uappend:w:{bootloader.APPEND}:m"
tools.avrdude.bootloader.fuse8="-Ubootend:w:{bootloader.BOOTEND}:m"
tools.avrdude.bootloader.lock="-Ulock:w:{bootloader.LOCKBIT}:m"
tools.avrdude.erase.pattern="{cmd.path}" "-C{config.path}" -p{build.mcu} -c{protocol} {program.extra_params} -e -Ufuses:w:{bootloader.WDTCFG},{bootloader.BODCFG},{bootloader.OSCCFG},0xff,{bootloader.TCD0CFG},{bootloader.SYSCFG0},{bootloader.SYSCFG1},{bootloader.APPEND},{bootloader.BOOTEND}:m -Ulock:w:{bootloader.LOCKBIT}:m

tools.avrdude.bootloader.params.verbose=-v
tools.avrdude.bootloader.params.quiet=-q -q
Expand Down

0 comments on commit 1093afc

Please sign in to comment.