Skip to content

Commit a97ae51

Browse files
Alltedthinkyhead
andauthored
Archim: PIO upload on Windows, Arduino IDE LCD (#17405)
Co-authored-by: Scott Lahteine <[email protected]>
1 parent e490339 commit a97ae51

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
)

Marlin/src/HAL/DUE/usb/conf_usb.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@
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)

platformio.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ board = due
214214
src_filter = ${common.default_src_filter} +<src/HAL/DUE>
215215
build_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>
223224
build_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

0 commit comments

Comments
 (0)