mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-26 21:36:21 +00:00
Archim: PIO upload on Windows, Arduino IDE LCD (#17405)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
This commit is contained in:
parent
e4903396d4
commit
a97ae51cc7
18
Marlin/src/HAL/DUE/upload_extra_script.py
Normal file
18
Marlin/src/HAL/DUE/upload_extra_script.py
Normal file
@ -0,0 +1,18 @@
|
||||
#
|
||||
# Set upload_command
|
||||
#
|
||||
# Windows: bossac.exe
|
||||
# Other: leave unchanged
|
||||
#
|
||||
|
||||
import platform
|
||||
current_OS = platform.system()
|
||||
|
||||
if current_OS == 'Windows':
|
||||
|
||||
Import("env")
|
||||
|
||||
# Use bossac.exe on Windows
|
||||
env.Replace(
|
||||
UPLOADCMD="bossac --info --unlock --write --verify --reset --erase -U false --boot"
|
||||
)
|
@ -78,10 +78,6 @@
|
||||
//! To define a Full speed device
|
||||
//#define USB_DEVICE_FULL_SPEED
|
||||
|
||||
#if MB(ARCHIM1)
|
||||
#define USB_DEVICE_FULL_SPEED
|
||||
#endif
|
||||
|
||||
//! To authorize the High speed
|
||||
#ifndef USB_DEVICE_FULL_SPEED
|
||||
#if (UC3A3||UC3A4)
|
||||
|
@ -214,6 +214,7 @@ board = due
|
||||
src_filter = ${common.default_src_filter} +<src/HAL/DUE>
|
||||
build_flags = ${common.build_flags}
|
||||
-DARDUINO_SAM_ARCHIM -DARDUINO_ARCH_SAM -D__SAM3X8E__ -DUSBCON
|
||||
extra_scripts = Marlin/src/HAL/DUE/upload_extra_script.py
|
||||
|
||||
[env:DUE_archim_debug]
|
||||
# Used when WATCHDOG_RESET_MANUAL is enabled
|
||||
@ -223,6 +224,7 @@ src_filter = ${common.default_src_filter} +<src/HAL/DUE>
|
||||
build_flags = ${common.build_flags}
|
||||
-DARDUINO_SAM_ARCHIM -DARDUINO_ARCH_SAM -D__SAM3X8E__ -DUSBCON
|
||||
-funwind-tables -mpoke-function-name
|
||||
extra_scripts = Marlin/src/HAL/DUE/upload_extra_script.py
|
||||
|
||||
#
|
||||
# NXP LPC176x ARM Cortex-M3
|
||||
|
Loading…
Reference in New Issue
Block a user