File tree Expand file tree Collapse file tree 3 files changed +20
-4
lines changed
Expand file tree Collapse file tree 3 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 1+ #
2+ # Set upload_command
3+ #
4+ # Windows: bossac.exe
5+ # Other: leave unchanged
6+ #
7+
8+ import platform
9+ current_OS = platform .system ()
10+
11+ if current_OS == 'Windows' :
12+
13+ Import ("env" )
14+
15+ # Use bossac.exe on Windows
16+ env .Replace (
17+ UPLOADCMD = "bossac --info --unlock --write --verify --reset --erase -U false --boot"
18+ )
Original file line number Diff line number Diff line change 7878//! To define a Full speed device
7979//#define USB_DEVICE_FULL_SPEED
8080
81- #if MB (ARCHIM1 )
82- #define USB_DEVICE_FULL_SPEED
83- #endif
84-
8581//! To authorize the High speed
8682#ifndef USB_DEVICE_FULL_SPEED
8783 #if (UC3A3 || UC3A4 )
Original file line number Diff line number Diff line change @@ -214,6 +214,7 @@ board = due
214214src_filter = ${common.default_src_filter} +<src/HAL/DUE>
215215build_flags = ${common.build_flags}
216216 -DARDUINO_SAM_ARCHIM -DARDUINO_ARCH_SAM -D__SAM3X8E__ -DUSBCON
217+ extra_scripts = Marlin/src/HAL/DUE/upload_extra_script.py
217218
218219[env:DUE_archim_debug]
219220# Used when WATCHDOG_RESET_MANUAL is enabled
@@ -223,6 +224,7 @@ src_filter = ${common.default_src_filter} +<src/HAL/DUE>
223224build_flags = ${common.build_flags}
224225 -DARDUINO_SAM_ARCHIM -DARDUINO_ARCH_SAM -D__SAM3X8E__ -DUSBCON
225226 -funwind-tables -mpoke-function-name
227+ extra_scripts = Marlin/src/HAL/DUE/upload_extra_script.py
226228
227229#
228230# NXP LPC176x ARM Cortex-M3
You can’t perform that action at this time.
0 commit comments