Skip to content

Commit

Permalink
Fix uploading to USB-native boards using SAMBA // Resolve #10 Resolve #…
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed Apr 10, 2017
1 parent a3a7a73 commit f8abe99
Show file tree
Hide file tree
Showing 18 changed files with 19 additions and 2 deletions.
1 change: 1 addition & 0 deletions boards/adafruit_circuitplayground_m0.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"disable_flushing": true,
"maximum_ram_size": 32768,
"maximum_size": 262144,
"native_usb": true,
"protocol": "sam-ba",
"require_upload_port": true,
"use_1200bps_touch": true,
Expand Down
1 change: 1 addition & 0 deletions boards/adafruit_feather_m0_usb.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"disable_flushing": true,
"maximum_ram_size": 32768,
"maximum_size": 262144,
"native_usb": true,
"protocol": "sam-ba",
"require_upload_port": true,
"use_1200bps_touch": true,
Expand Down
1 change: 1 addition & 0 deletions boards/digix.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"disable_flushing": true,
"maximum_ram_size": 28672,
"maximum_size": 524288,
"native_usb": true,
"protocol": "sam-ba",
"require_upload_port": true,
"use_1200bps_touch": true,
Expand Down
1 change: 1 addition & 0 deletions boards/due.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"disable_flushing": true,
"maximum_ram_size": 32768,
"maximum_size": 524288,
"native_usb": false,
"protocol": "sam-ba",
"require_upload_port": true,
"use_1200bps_touch": true,
Expand Down
1 change: 1 addition & 0 deletions boards/dueUSB.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"disable_flushing": true,
"maximum_ram_size": 32768,
"maximum_size": 524288,
"native_usb": true,
"protocol": "sam-ba",
"require_upload_port": true,
"use_1200bps_touch": true,
Expand Down
1 change: 1 addition & 0 deletions boards/mkr1000USB.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"disable_flushing": true,
"maximum_ram_size": 32768,
"maximum_size": 262144,
"native_usb": true,
"protocol": "sam-ba",
"require_upload_port": true,
"use_1200bps_touch": true,
Expand Down
1 change: 1 addition & 0 deletions boards/mkrfox1200.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"disable_flushing": true,
"maximum_ram_size": 32768,
"maximum_size": 262144,
"native_usb": true,
"protocol": "sam-ba",
"require_upload_port": true,
"use_1200bps_touch": true,
Expand Down
1 change: 1 addition & 0 deletions boards/mkrzero.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"disable_flushing": true,
"maximum_ram_size": 32768,
"maximum_size": 262144,
"native_usb": true,
"protocol": "sam-ba",
"require_upload_port": true,
"use_1200bps_touch": true,
Expand Down
1 change: 1 addition & 0 deletions boards/sainSmartDue.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"disable_flushing": true,
"maximum_ram_size": 32768,
"maximum_size": 524288,
"native_usb": false,
"protocol": "sam-ba",
"require_upload_port": true,
"use_1200bps_touch": true,
Expand Down
1 change: 1 addition & 0 deletions boards/sainSmartDueUSB.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"maximum_ram_size": 32768,
"maximum_size": 524288,
"protocol": "sam-ba",
"native_usb": true,
"require_upload_port": true,
"use_1200bps_touch": true,
"wait_for_upload_port": true
Expand Down
1 change: 1 addition & 0 deletions boards/sodaq_autonomo.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"disable_flushing": true,
"maximum_ram_size": 32768,
"maximum_size": 262144,
"native_usb": true,
"protocol": "sam-ba",
"require_upload_port": true,
"use_1200bps_touch": true,
Expand Down
1 change: 1 addition & 0 deletions boards/sodaq_explorer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"disable_flushing": true,
"maximum_ram_size": 32768,
"maximum_size": 262144,
"native_usb": true,
"protocol": "sam-ba",
"require_upload_port": true,
"use_1200bps_touch": true,
Expand Down
1 change: 1 addition & 0 deletions boards/sodaq_one.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"disable_flushing": true,
"maximum_ram_size": 32768,
"maximum_size": 262144,
"native_usb": true,
"protocol": "sam-ba",
"require_upload_port": true,
"use_1200bps_touch": true,
Expand Down
1 change: 1 addition & 0 deletions boards/sodaq_wdt.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"disable_flushing": true,
"maximum_ram_size": 32768,
"maximum_size": 262144,
"native_usb": true,
"protocol": "sam-ba",
"require_upload_port": true,
"use_1200bps_touch": true,
Expand Down
1 change: 1 addition & 0 deletions boards/sparkfun_samd21_dev_usb.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"disable_flushing": true,
"maximum_ram_size": 32768,
"maximum_size": 262144,
"native_usb": true,
"protocol": "sam-ba",
"require_upload_port": true,
"use_1200bps_touch": true,
Expand Down
1 change: 1 addition & 0 deletions boards/sparkfun_samd21_mini_usb.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"disable_flushing": true,
"maximum_ram_size": 32768,
"maximum_size": 262144,
"native_usb": true,
"protocol": "sam-ba",
"require_upload_port": true,
"use_1200bps_touch": true,
Expand Down
1 change: 1 addition & 0 deletions boards/zeroUSB.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"disable_flushing": true,
"maximum_ram_size": 32768,
"maximum_size": 262144,
"native_usb": true,
"protocol": "sam-ba",
"require_upload_port": true,
"use_1200bps_touch": true,
Expand Down
4 changes: 2 additions & 2 deletions builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ def BeforeUpload(target, source, env): # pylint: disable=W0613,W0621
"--verify",
"--reset",
"-U",
"true" if ("usb" in env.subst("$BOARD").lower(
) or env.subst("$BOARD") == "digix") else "false"
"true" if env.BoardConfig().get(
"upload.native_usb", False) else "false"
],

UPLOADCMD='"$UPLOADER" $UPLOADERFLAGS $SOURCES'
Expand Down

0 comments on commit f8abe99

Please sign in to comment.