Skip to content

Commit 66fda83

Browse files
committed
Always reprogram fuses and bootloader
1 parent cc2e633 commit 66fda83

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

boards.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ uno2018.build.extra_flags={build.328emulation} -DMILLIS_USE_TIMERB3
2424
uno2018.bootloader.tool=avrdude
2525
uno2018.bootloader.file=atmega4809_uart_bl.hex
2626
uno2018.bootloader.SYSCFG0=0xC9
27-
uno2018.bootloader.BOOTEND=0x00
27+
uno2018.bootloader.BOOTEND=0x02
2828
uno2018.fuses.file=fuses_4809.bin
2929

3030
menu.mode=Registers emulation

platform.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,14 @@ tools.avrdude.upload.params.quiet=-q -q
104104
# tools.avrdude.upload.verify is needed for backwards compatibility with IDE 1.6.8 or older, IDE 1.6.9 or newer overrides this value
105105
tools.avrdude.upload.verify=
106106
tools.avrdude.upload.params.noverify=-V
107-
tools.avrdude.upload.pattern="{cmd.path}" "-C{config.path}" {upload.verbose} {upload.verify} -p{build.mcu} -c{upload.protocol} -Pusb -b{upload.speed} -e -D "-Uflash:w:{build.path}/{build.project_name}.hex:i" "-Ufuse5:w:{bootloader.SYSCFG0}:m" "-Ufuse8:w:{bootloader.BOOTEND}:m"
107+
tools.avrdude.upload.pattern="{cmd.path}" "-C{config.path}" {upload.verbose} {upload.verify} -p{build.mcu} -c{upload.protocol} -Pusb -b{upload.speed} -e -D "-Uflash:w:{build.path}/{build.project_name}.hex:i" "-Ufuse5:w:{bootloader.SYSCFG0}:m" "-Ufuse8:w:{bootloader.BOOTEND}:m" "-Uflash:w:{runtime.platform.path}/bootloaders/{bootloader.file}:i"
108108

109109
tools.avrdude.program.params.verbose=-v
110110
tools.avrdude.program.params.quiet=-q -q
111111
# 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
112112
tools.avrdude.program.verify=
113113
tools.avrdude.program.params.noverify=-V
114-
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}.hex:i" "-Ufuse5:w:{bootloader.SYSCFG0}:m" "-Ufuse8:w:{bootloader.BOOTEND}:m"
114+
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}.hex:i" "-Ufuse5:w:{bootloader.SYSCFG0}:m" "-Ufuse8:w:{bootloader.BOOTEND}:m" "-Uflash:w:{runtime.platform.path}/bootloaders/{bootloader.file}:i"
115115

116116
tools.avrdude.erase.params.verbose=-v
117117
tools.avrdude.erase.params.quiet=-q -q

0 commit comments

Comments
 (0)