Skip to content

Commit ea6eade

Browse files
committed
Fix Tian remote upload
1 parent 428433f commit ea6eade

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

boards.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -317,14 +317,15 @@ tian.build.board=SAMD_TIAN
317317
tian.build.core=arduino
318318
tian.build.extra_flags=-D__SAMD21G18A__ -mthumb {build.usb_flags}
319319
tian.build.ldscript=linker_scripts/gcc/flash_with_bootloader.ld
320+
tian.build.openocdscript=openocd_scripts/arduino_zero.cfg
320321
tian.build.variant=arduino_mzero
321322
tian.build.variant_system_lib=
322323
tian.build.vid=0x2a03
323324
tian.build.pid=0x8052
324325
tian.build.preferred_out_format=hex
325326
tian.bootloader.size=0x4000
326327
tian.build.emu.mcu=atmega2560
327-
tian.bootloader.tool=avrdude
328+
tian.bootloader.tool=openocd-withbootsize
328329
tian.bootloader.low_fuses=0xff
329330
tian.bootloader.file=sofia/Sofia_Tian_151118.hex
330331
tian.drivers=SiliconLabs-CP2105/Silicon Labs VCP Driver.pkg

platform.txt

+2
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ tools.avrdude.upload.params.quiet=-q -q
126126
tools.avrdude.upload.params.noverify=-V
127127
tools.avrdude.upload.pattern="{cmd}" "-C{config.path}" {upload.verbose} -p{build.emu.mcu} -c{upload.protocol} -P{serial.port} -b{upload.speed} "-Uflash:w:{build.path}/{build.project_name}.hex:i"
128128

129+
tools.avrdude_remote.upload.pattern=/usr/bin/run-avrdude /tmp/sketch.hex
130+
129131
#
130132
# BOSSA
131133
#

0 commit comments

Comments
 (0)