Skip to content

Commit 99c5eaa

Browse files
committed
Add support for pluggable discovery
1 parent 6fc23be commit 99c5eaa

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

boards.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ uno2018.vid.0=0x03eb
88
uno2018.pid.0=0x2145
99

1010
uno2018.upload.tool=avrdude
11+
uno2018.upload.tool.serial=avrdude
12+
uno2018.upload.tool.network=arduino_ota
1113
uno2018.upload.protocol=xplainedmini_updi
1214
uno2018.upload.maximum_size=48640
1315
uno2018.upload.maximum_data_size=6144
@@ -25,6 +27,8 @@ uno2018.build.extra_flags={build.328emulation} -DMILLIS_USE_TIMERB3
2527
#uno2018.build.extra_flags=-B{runtime.tools.atpack.path}/gcc/dev/{build.mcu}
2628

2729
uno2018.bootloader.tool=avrdude
30+
uno2018.bootloader.tool.serial=avrdude
31+
uno2018.bootloader.tool.network=arduino_ota
2832
uno2018.bootloader.file=atmega4809_uart_bl.hex
2933
uno2018.bootloader.SYSCFG0=0xC9
3034
uno2018.bootloader.BOOTEND=0x02
@@ -45,6 +49,8 @@ nona4809.vid.0=0x2341
4549
nona4809.pid.0=0x0058
4650

4751
nona4809.upload.tool=avrdude
52+
nona4809.upload.tool.serial=avrdude
53+
nona4809.upload.tool.network=arduino_ota
4854
nona4809.upload.protocol=jtag2updi
4955
nona4809.upload.maximum_size=49152
5056
nona4809.upload.maximum_data_size=6144
@@ -62,6 +68,8 @@ nona4809.build.extra_flags={build.328emulation} -DMILLIS_USE_TIMERB3 -DNO_EXTERN
6268
#nona4809.build.extra_flags=-B{runtime.tools.atpack.path}/gcc/dev/{build.mcu}
6369

6470
nona4809.bootloader.tool=avrdude
71+
nona4809.bootloader.tool.serial=avrdude
72+
nona4809.bootloader.tool.network=arduino_ota
6573
nona4809.bootloader.file=atmega4809_uart_bl.hex
6674
nona4809.bootloader.SYSCFG0=0xC9
6775
nona4809.bootloader.BOOTEND=0x00

platform.txt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
name=Arduino megaAVR Boards
99
version=1.8.7
1010

11+
# pluggable discovery support
12+
# For more info:
13+
# https://arduino.github.io/arduino-cli/latest/platform-specification/#pluggable-discovery
14+
pluggable_discovery.required.0=builtin:serial-discovery
15+
pluggable_discovery.required.1=builtin:mdns-discovery
16+
1117
# AVR compile variables
1218
# ---------------------
1319

@@ -98,7 +104,7 @@ tools.avrdude.path={runtime.tools.avrdude-6.3.0-arduino17.path}
98104
tools.avrdude.cmd.path={path}/bin/avrdude
99105
tools.avrdude.config.path={path}/etc/avrdude.conf
100106

101-
tools.avrdude.network_cmd={runtime.tools.arduinoOTA-1.3.0.path}/bin/arduinoOTA
107+
tools.arduino_ota.cmd={runtime.tools.arduinoOTA-1.3.0.path}/bin/arduinoOTA
102108

103109
tools.avrdude.upload.params.verbose=-v
104110
tools.avrdude.upload.params.quiet=-q -q
@@ -124,7 +130,11 @@ tools.avrdude.bootloader.pattern="{cmd.path}" "-C{config.path}" {bootloader.verb
124130

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

127-
tools.avrdude.upload.network_pattern="{network_cmd}" -address {serial.port} -port 65280 -username arduino -password "{network.password}" -sketch "{build.path}/{build.project_name}.bin" -upload /sketch -d -v
133+
tools.avrdude.upload.network_pattern="{tools.arduino_ota.cmd}" -address {serial.port} -port 65280 -username arduino -password "{network.password}" -sketch "{build.path}/{build.project_name}.bin" -upload /sketch -d -v
134+
135+
tools.arduino_ota.upload.field.password=Password
136+
tools.arduino_ota.upload.field.password.secret=true
137+
tools.arduino_ota.upload.pattern="{tools.arduino_ota.cmd}" -address {upload.port.address} -port 65280 -username arduino -password "{upload.field.password}" -sketch "{build.path}/{build.project_name}.bin" -upload /sketch -d -v
128138

129139
# USB Default Flags
130140
# Default blank usb manufacturer will be filled in at compile time

0 commit comments

Comments
 (0)