Update digistump uploader

This commit is contained in:
Valeriy Koval
2015-02-23 16:48:26 +02:00
parent dcb1590e57
commit 6a42e1de90
3 changed files with 8 additions and 14 deletions

View File

@ -14,7 +14,7 @@
"disable_flushing": false,
"maximum_ram_size": 512,
"maximum_size": 14844,
"protocol": "usb",
"protocol": "digispark",
"use_1200bps_touch": false,
"wait_for_upload_port": false
}
@ -34,7 +34,7 @@
"disable_flushing": false,
"maximum_ram_size": 512,
"maximum_size": 14844,
"protocol": "usb",
"protocol": "digispark",
"use_1200bps_touch": false,
"wait_for_upload_port": false
}
@ -54,7 +54,7 @@
"disable_flushing": false,
"maximum_ram_size": 512,
"maximum_size": 14844,
"protocol": "usb",
"protocol": "digispark",
"use_1200bps_touch": false,
"wait_for_upload_port": false
}
@ -74,7 +74,7 @@
"disable_flushing": false,
"maximum_ram_size": 512,
"maximum_size": 14844,
"protocol": "usb",
"protocol": "digispark",
"use_1200bps_touch": false,
"wait_for_upload_port": false
}

View File

@ -44,16 +44,10 @@ else:
env = SConscript(env.subst(
join("$PIOBUILDER_DIR", "scripts", "baseavr.py")), exports="env")
env.Replace(
UPLOADER=join("$PIOPACKAGES_DIR", "tool-avrdude", "avrdude"),
UPLOADER=join("$PIOPACKAGES_DIR", "tool-micronucleus", "micronucleus"),
UPLOADERFLAGS=[
"-q", # suppress progress output
"-D", # disable auto erase for flash memory
"-p", "$BOARD_MCU",
"-C", '"%s"' % join("$PIOPACKAGES_DIR",
"tool-avrdude", "avrdude.conf"),
"-c", "$UPLOAD_PROTOCOL",
"-b", "$UPLOAD_SPEED",
"-P", "$UPLOAD_PORT"
"--timeout", "60"
],
UPLOADCMD='"$UPLOADER" $UPLOADERFLAGS -U flash:w:$SOURCES:i'
)

View File

@ -30,7 +30,7 @@ class DigistumpPlatform(BasePlatform):
"default": True
},
"tool-avrdude": {
"tool-micronucleus": {
"default": True
},
@ -54,7 +54,7 @@ class DigistumpPlatform(BasePlatform):
tuploader = "tool-bossac"
else:
tpackage = "toolchain-atmelavr"
tuploader = "tool-avrdude"
tuploader = "tool-micronucleus"
self.PACKAGES[tpackage]['alias'] = "toolchain"
self.PACKAGES[tuploader]['alias'] = "uploader"
break