2020-04-11 20:39:02 -05:00
|
|
|
#
|
|
|
|
# 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(
|
2020-10-02 17:31:33 -05:00
|
|
|
UPLOADCMD="bossac --info --unlock --write --verify --reset --erase -U false --boot $SOURCE"
|
2020-04-11 20:39:02 -05:00
|
|
|
)
|