Skip to content

Commit af5de4e

Browse files
committed
Fixed avrdude path for macos and win
1 parent 7ad4de5 commit af5de4e

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Diff for: hardware/arduino/avr/platform.txt

+8-7
Original file line numberDiff line numberDiff line change
@@ -50,23 +50,24 @@ recipe.size.regex=Total\s+([0-9]+).*
5050
# AVR Uploader/Programmers tools
5151
# -------------------
5252

53-
tools.avrdude.cmd=avrdude
54-
tools.avrdude.path={runtime.ide.path}/hardware/tools
55-
tools.avrdude.config.path={path}/avrdude.conf
53+
tools.avrdude.cmd.path={runtime.ide.path}/hardware/tools/avr/bin/avrdude
54+
tools.avrdude.config.path={runtime.ide.path}/hardware/tools/avr/etc/avrdude.conf
55+
tools.avrdude.cmd.path.linux={runtime.ide.path}/hardware/tools/avrdude
56+
tools.avrdude.config.path.linux={runtime.ide.path}/hardware/tools/avrdude.conf
5657

5758
tools.avrdude.upload.params.verbose=-v -v -v -v
5859
tools.avrdude.upload.params.quiet=-q -q
59-
tools.avrdude.upload.pattern="{path}/{cmd}" "-C{config.path}" {upload.verbose} -p{build.mcu} -c{upload.protocol} -P{serial.port} -b{upload.speed} -D "-Uflash:w:{build.path}/{build.project_name}.hex:i"
60+
tools.avrdude.upload.pattern="{cmd.path}" "-C{config.path}" {upload.verbose} -p{build.mcu} -c{upload.protocol} -P{serial.port} -b{upload.speed} -D "-Uflash:w:{build.path}/{build.project_name}.hex:i"
6061

6162
tools.avrdude.program.params.verbose=-v -v -v -v
6263
tools.avrdude.program.params.quiet=-q -q
63-
tools.avrdude.program.pattern="{path}/{cmd}" "-C{config.path}" {program.verbose} -p{build.mcu} -c{protocol} {program.extra_params} "-Uflash:w:{build.path}/{build.project_name}.hex:i"
64+
tools.avrdude.program.pattern="{cmd.path}" "-C{config.path}" {program.verbose} -p{build.mcu} -c{protocol} {program.extra_params} "-Uflash:w:{build.path}/{build.project_name}.hex:i"
6465

6566
tools.avrdude.erase.params.verbose=-v -v -v -v
6667
tools.avrdude.erase.params.quiet=-q -q
67-
tools.avrdude.erase.pattern="{path}/{cmd}" "-C{config.path}" {erase.verbose} -p{build.mcu} -c{protocol} {program.extra_params} -e -Ulock:w:{bootloader.unlock_bits}:m -Uefuse:w:{bootloader.extended_fuses}:m -Uhfuse:w:{bootloader.high_fuses}:m -Ulfuse:w:{bootloader.low_fuses}:m
68+
tools.avrdude.erase.pattern="{cmd.path}" "-C{config.path}" {erase.verbose} -p{build.mcu} -c{protocol} {program.extra_params} -e -Ulock:w:{bootloader.unlock_bits}:m -Uefuse:w:{bootloader.extended_fuses}:m -Uhfuse:w:{bootloader.high_fuses}:m -Ulfuse:w:{bootloader.low_fuses}:m
6869

6970
tools.avrdude.bootloader.params.verbose=-v -v -v -v
7071
tools.avrdude.bootloader.params.quiet=-q -q
71-
tools.avrdude.bootloader.pattern="{path}/{cmd}" "-C{config.path}" {bootloader.verbose} -p{build.mcu} -c{protocol} {program.extra_params} "-Uflash:w:{runtime.ide.path}/hardware/arduino/avr/bootloaders/{bootloader.file}:i" -Ulock:w:{bootloader.lock_bits}:m
72+
tools.avrdude.bootloader.pattern="{cmd.path}" "-C{config.path}" {bootloader.verbose} -p{build.mcu} -c{protocol} {program.extra_params} "-Uflash:w:{runtime.ide.path}/hardware/arduino/avr/bootloaders/{bootloader.file}:i" -Ulock:w:{bootloader.lock_bits}:m
7273

0 commit comments

Comments
 (0)