Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f52a87e

Browse filesBrowse files
silvanocerzacmaglie
authored andcommitted
Add support for pluggable discovery
1 parent 6fc23be commit f52a87e
Copy full SHA for f52a87e

File tree

3 files changed

+28
-4
lines changed
Filter options

3 files changed

+28
-4
lines changed

‎boards.txt

Copy file name to clipboardExpand all lines: boards.txt
+12Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ uno2018.name=Arduino Uno WiFi Rev2
66

77
uno2018.vid.0=0x03eb
88
uno2018.pid.0=0x2145
9+
uno2018.upload_port.0.vid=0x03eb
10+
uno2018.upload_port.0.pid=0x2145
11+
uno2018.upload_port.1.board=uno2018
912

1013
uno2018.upload.tool=avrdude
14+
uno2018.upload.tool.default=avrdude
15+
uno2018.upload.tool.network=arduino_ota
1116
uno2018.upload.protocol=xplainedmini_updi
1217
uno2018.upload.maximum_size=48640
1318
uno2018.upload.maximum_data_size=6144
@@ -25,6 +30,7 @@ uno2018.build.extra_flags={build.328emulation} -DMILLIS_USE_TIMERB3
2530
#uno2018.build.extra_flags=-B{runtime.tools.atpack.path}/gcc/dev/{build.mcu}
2631

2732
uno2018.bootloader.tool=avrdude
33+
uno2018.bootloader.tool.default=avrdude
2834
uno2018.bootloader.file=atmega4809_uart_bl.hex
2935
uno2018.bootloader.SYSCFG0=0xC9
3036
uno2018.bootloader.BOOTEND=0x02
@@ -43,8 +49,13 @@ nona4809.name=Arduino Nano Every
4349

4450
nona4809.vid.0=0x2341
4551
nona4809.pid.0=0x0058
52+
nona4809.upload_port.0.vid=0x2341
53+
nona4809.upload_port.0.pid=0x0058
54+
nona4809.upload_port.1.board=nona4809
4655

4756
nona4809.upload.tool=avrdude
57+
nona4809.upload.tool.default=avrdude
58+
nona4809.upload.tool.network=arduino_ota
4859
nona4809.upload.protocol=jtag2updi
4960
nona4809.upload.maximum_size=49152
5061
nona4809.upload.maximum_data_size=6144
@@ -62,6 +73,7 @@ nona4809.build.extra_flags={build.328emulation} -DMILLIS_USE_TIMERB3 -DNO_EXTERN
6273
#nona4809.build.extra_flags=-B{runtime.tools.atpack.path}/gcc/dev/{build.mcu}
6374

6475
nona4809.bootloader.tool=avrdude
76+
nona4809.bootloader.tool.default=avrdude
6577
nona4809.bootloader.file=atmega4809_uart_bl.hex
6678
nona4809.bootloader.SYSCFG0=0xC9
6779
nona4809.bootloader.BOOTEND=0x00

‎platform.txt

Copy file name to clipboardExpand all lines: platform.txt
+14-3Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,19 @@ recipe.preproc.includes="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags}
9191
preproc.macros.flags=-w -x c++ -E -CC
9292
recipe.preproc.macros="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} {preproc.macros.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} "-I{build.core.path}/api/deprecated" {includes} "{source_file}" -o "{preprocessed_file_path}"
9393

94+
# Required discoveries and monitors
95+
# ---------------------------------
96+
pluggable_discovery.required.0=builtin:serial-discovery
97+
pluggable_discovery.required.1=builtin:mdns-discovery
98+
pluggable_monitor.required.serial=builtin:serial-monitor
99+
94100
# AVR Uploader/Programmers tools
95101
# ------------------------------
96102

97103
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
102-
103107
tools.avrdude.upload.params.verbose=-v
104108
tools.avrdude.upload.params.quiet=-q -q
105109
# 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
@@ -124,7 +128,14 @@ tools.avrdude.bootloader.pattern="{cmd.path}" "-C{config.path}" {bootloader.verb
124128

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

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
131+
# this is deprecated by pluggable discovery:
132+
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
133+
134+
# ArduinoOTA
135+
tools.arduino_ota.cmd={runtime.tools.arduinoOTA-1.3.0.path}/bin/arduinoOTA
136+
tools.arduino_ota.upload.field.password=Password
137+
tools.arduino_ota.upload.field.password.secret=true
138+
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
128139

129140
# USB Default Flags
130141
# Default blank usb manufacturer will be filled in at compile time

‎programmers.txt

Copy file name to clipboardExpand all lines: programmers.txt
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ medbg.communication=usb
33
medbg.protocol=xplainedmini_updi
44
medbg.program.protocol=xplainedmini_updi
55
medbg.program.tool=avrdude
6-
medbg.program.extra_params=-Pusb
6+
medbg.program.tool.default=avrdude
7+
medbg.program.extra_params=-Pusb

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.