Fix missed --boot flag for sam3x uploader // Issue # 710

This commit is contained in:
Valeriy Koval
2016-07-04 13:40:43 +03:00
parent 98f5f73a41
commit 241ad8174f

View File

@ -103,10 +103,6 @@ if "sam3x8e" in BOARD_OPTIONS.get("build", {}).get("mcu", ""):
LINKFLAGS=[
"-Wl,--entry=Reset_Handler",
"-Wl,--start-group"
],
UPLOADERFLAGS=[
"--boot",
]
)
@ -174,6 +170,9 @@ elif upload_protocol == "sam-ba":
UPLOADCMD='"$UPLOADER" $UPLOADERFLAGS $SOURCES'
)
if "sam3x8e" in BOARD_OPTIONS.get("build", {}).get("mcu", ""):
env.Append(UPLOADERFLAGS=["--boot"])
#
# Target: Build executable and linkable firmware
#