Skip to content

Commit

Permalink
avr - support IDE 2 OTA
Browse files Browse the repository at this point in the history
  • Loading branch information
JAndrassy committed May 11, 2022
1 parent d3fac1b commit 259ee60
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions avr/boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ mega.vid.5=0x2341
mega.pid.5=0x0242

mega.upload.tool=arduino:avrdude
mega.upload.tool.network=arduino_ota
mega.upload.protocol=arduino
mega.upload.maximum_size=261120
mega.upload.maximum_data_size=8192
Expand Down
9 changes: 9 additions & 0 deletions avr/platform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,19 @@ build.preferred_out_format=bin
recipe.output.tmp_file={build.project_name}.{build.preferred_out_format}
recipe.output.save_file={build.project_name}.{build.variant}.{build.preferred_out_format}

#IDE 1
tools.avrdude.network_cmd={runtime.hardware.path}/tools/arduinoOTA
tools.avrdude.upload.network_pattern="{network_cmd}" -address {serial.port} -port 65280 -username arduino -password password -sketch "{build.path}/{build.project_name}.bin" -upload /sketch -b

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}.with_bootloader.hex:i"

#IDE 2
tools.arduino_ota.cmd={runtime.tools.arduinoOTA.path}/bin/arduinoOTA
tools.arduino_ota.upload.field.password=Password
tools.arduino_ota.upload.field.password.secret=true
tools.arduino_ota.upload.pattern="{cmd}" -address {serial.port} -port 65280 -username arduino -password "{upload.field.password}" -sketch "{build.path}/{build.project_name}.bin" -upload /sketch -b

#fake programmer
tools.arduinoOTA.cmd={runtime.hardware.path}/tools/arduinoOTA
tools.arduinoOTA.cmd.windows={runtime.hardware.path}/tools/arduinoOTA.exe
tools.arduinoOTA.program.params.verbose=
Expand Down

0 comments on commit 259ee60

Please sign in to comment.