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
parent
commit
a97ae51cc7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 18
      Marlin/src/HAL/DUE/upload_extra_script.py
  2. 4
      Marlin/src/HAL/DUE/usb/conf_usb.h
  3. 2
      platformio.ini

18
Marlin/src/HAL/DUE/upload_extra_script.py

@ -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"
)

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

@ -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)

2
platformio.ini

@ -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…
Cancel
Save