From 1093afcb02e2296239e93784181b0488f191d072 Mon Sep 17 00:00:00 2001 From: MCUdude Date: Wed, 11 Jan 2023 19:58:37 +0100 Subject: [PATCH] Write all fuse bytes in a big bunch rather than induvidually --- megaavr/platform.txt | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/megaavr/platform.txt b/megaavr/platform.txt index 6b6eac4..dc5d862 100644 --- a/megaavr/platform.txt +++ b/megaavr/platform.txt @@ -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