Skip to content

Commit a1b66f0

Browse files
committed
Target individual fuses via boards.txt
This will help getting rid of fuses.bin
1 parent d2a8109 commit a1b66f0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Diff for: boards.txt

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ uno2018.build.extra_flags={build.328emulation} -DMILLIS_USE_TIMERB3
2323

2424
uno2018.bootloader.tool=avrdude
2525
uno2018.bootloader.SYSCFG0=0xC9
26+
uno2018.bootloader.BOOTEND=0x00
2627
uno2018.fuses.file=fuses_4809.bin
2728

2829
menu.mode=Registers emulation

Diff for: platform.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -102,22 +102,22 @@ tools.avrdude.upload.params.quiet=-q -q
102102
# 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
103103
tools.avrdude.upload.verify=
104104
tools.avrdude.upload.params.noverify=-V
105-
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" "-Ufuses:w:{runtime.platform.path}/fuses/{fuses.file}:r"
105+
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"
106106

107107
tools.avrdude.program.params.verbose=-v
108108
tools.avrdude.program.params.quiet=-q -q
109109
# 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
110110
tools.avrdude.program.verify=
111111
tools.avrdude.program.params.noverify=-V
112-
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" "-Ufuses:w:{runtime.platform.path}/fuses/{fuses.file}:r"
112+
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"
113113

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

118118
tools.avrdude.bootloader.params.verbose=-v
119119
tools.avrdude.bootloader.params.quiet=-q -q
120-
tools.avrdude.bootloader.pattern="{cmd.path}" "-C{config.path}" {bootloader.verbose} -p{build.mcu} -c{protocol} {program.extra_params} "-Ufuses:w:{runtime.platform.path}/fuses/{fuses.file}:r"
120+
tools.avrdude.bootloader.pattern="{cmd.path}" "-C{config.path}" {bootloader.verbose} -p{build.mcu} -c{protocol} {program.extra_params} "-Ufuse5:w:{bootloader.SYSCFG0}:m" "-Ufuse8:w:{bootloader.BOOTEND}:m"
121121

122122
tools.avrdude_remote.upload.pattern=/usr/bin/run-avrdude /tmp/sketch.hex {upload.verbose} -p{build.mcu}
123123

0 commit comments

Comments
 (0)