Skip to content

Commit

Permalink
Archim: PIO upload on Windows, Arduino IDE LCD (MarlinFirmware#17405)
Browse files Browse the repository at this point in the history
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
  • Loading branch information
2 people authored and Emmanuel Viala committed Aug 21, 2020
1 parent 03c9956 commit cfc8330
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
18 changes: 18 additions & 0 deletions Marlin/src/HAL/DUE/upload_extra_script.py
Original file line number Diff line number Diff line change
@@ -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 changes: 0 additions & 4 deletions Marlin/src/HAL/DUE/usb/conf_usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit cfc8330

Please sign in to comment.