aboutsummaryrefslogtreecommitdiff
path: root/Marlin/src/HAL/DUE/upload_extra_script.py
blob: d52a0a3642b4509c7ea94a8a07517a1e71091309 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 $SOURCE"
	)