Skip to content

Commit a6b972e

Browse files
committed
Merge branch 'release/v1.3.1'
2 parents 36f525c + c4d4e2a commit a6b972e

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

builder/frameworks/arduino.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@
4141
FRAMEWORK_VERSION = platform.get_package_version("framework-arduinoststm32")
4242
assert isdir(FRAMEWORK_DIR)
4343

44-
env.Replace(
45-
LIBS=["m", "gcc"]
46-
)
47-
4844
env.Append(
4945
CCFLAGS=[
5046
"--param", "max-inline-insns-single=500",
@@ -72,7 +68,9 @@
7268
LIBPATH=[
7369
join(FRAMEWORK_DIR, "variants",
7470
board.get("build.variant"), "ld")
75-
]
71+
],
72+
73+
LIBS=["c"]
7674
)
7775

7876
for item in ("-nostartfiles", "-nostdlib"):

builder/main.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,11 @@
137137
UPLOADCMD='$UPLOADER $UPLOADERFLAGS'
138138
)
139139

140-
if "arduino" in env.subst("$PIOFRAMEWORK"):
140+
elif env.subst("$UPLOAD_PROTOCOL") in ("serial", "dfu") \
141+
and "arduino" in env.subst("$PIOFRAMEWORK"):
141142
_upload_tool = "serial_upload"
142143
_upload_flags = ["{upload.altID}", "{upload.usbID}"]
143-
if "dfu" in env.subst("$UPLOAD_PROTOCOL"):
144+
if env.subst("$UPLOAD_PROTOCOL") == "dfu":
144145
_upload_tool = "maple_upload"
145146
_usbids = env.BoardConfig().get("build.hwids")
146147
_upload_flags = [env.BoardConfig().get("upload.boot_version", 2),
@@ -164,7 +165,7 @@
164165
target_firm = env.ElfToBin(join("$BUILD_DIR", "firmware"), target_elf)
165166

166167
AlwaysBuild(env.Alias("nobuild", target_firm))
167-
target_buildprog = env.Alias("buildprog", target_firm)
168+
target_buildprog = env.Alias("buildprog", target_firm, target_firm)
168169

169170
#
170171
# Target: Print binary size

platform.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"type": "git",
1414
"url": "https://github.com/platformio/platform-ststm32.git"
1515
},
16-
"version": "1.3.0",
16+
"version": "1.3.1",
1717
"packageRepositories": [
1818
"https://dl.bintray.com/platformio/dl-packages/manifest.json",
1919
"https://sourceforge.net/projects/platformio-storage/files/packages/manifest.json/download",

0 commit comments

Comments
 (0)