Browse Source
Archim: PIO upload on Windows, Arduino IDE LCD (#17405)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
vanilla_fb_2.0.x
Ryan
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
20 additions and
4 deletions
-
Marlin/src/HAL/DUE/upload_extra_script.py
-
Marlin/src/HAL/DUE/usb/conf_usb.h
-
platformio.ini
|
@ -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
|
|
|
//! To define a Full speed device
|
|
|
//#define USB_DEVICE_FULL_SPEED
|
|
|
//#define USB_DEVICE_FULL_SPEED
|
|
|
|
|
|
|
|
|
#if MB(ARCHIM1) |
|
|
|
|
|
#define USB_DEVICE_FULL_SPEED |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
//! To authorize the High speed
|
|
|
//! To authorize the High speed
|
|
|
#ifndef USB_DEVICE_FULL_SPEED |
|
|
#ifndef USB_DEVICE_FULL_SPEED |
|
|
#if (UC3A3||UC3A4) |
|
|
#if (UC3A3||UC3A4) |
|
|
|
@ -214,6 +214,7 @@ board = due |
|
|
src_filter = ${common.default_src_filter} +<src/HAL/DUE> |
|
|
src_filter = ${common.default_src_filter} +<src/HAL/DUE> |
|
|
build_flags = ${common.build_flags} |
|
|
build_flags = ${common.build_flags} |
|
|
-DARDUINO_SAM_ARCHIM -DARDUINO_ARCH_SAM -D__SAM3X8E__ -DUSBCON |
|
|
-DARDUINO_SAM_ARCHIM -DARDUINO_ARCH_SAM -D__SAM3X8E__ -DUSBCON |
|
|
|
|
|
extra_scripts = Marlin/src/HAL/DUE/upload_extra_script.py |
|
|
|
|
|
|
|
|
[env:DUE_archim_debug] |
|
|
[env:DUE_archim_debug] |
|
|
# Used when WATCHDOG_RESET_MANUAL is enabled |
|
|
# 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} |
|
|
build_flags = ${common.build_flags} |
|
|
-DARDUINO_SAM_ARCHIM -DARDUINO_ARCH_SAM -D__SAM3X8E__ -DUSBCON |
|
|
-DARDUINO_SAM_ARCHIM -DARDUINO_ARCH_SAM -D__SAM3X8E__ -DUSBCON |
|
|
-funwind-tables -mpoke-function-name |
|
|
-funwind-tables -mpoke-function-name |
|
|
|
|
|
extra_scripts = Marlin/src/HAL/DUE/upload_extra_script.py |
|
|
|
|
|
|
|
|
# |
|
|
# |
|
|
# NXP LPC176x ARM Cortex-M3 |
|
|
# NXP LPC176x ARM Cortex-M3 |
|
|