File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 41
41
FRAMEWORK_VERSION = platform .get_package_version ("framework-arduinoststm32" )
42
42
assert isdir (FRAMEWORK_DIR )
43
43
44
- env .Replace (
45
- LIBS = ["m" , "gcc" ]
46
- )
47
-
48
44
env .Append (
49
45
CCFLAGS = [
50
46
"--param" , "max-inline-insns-single=500" ,
72
68
LIBPATH = [
73
69
join (FRAMEWORK_DIR , "variants" ,
74
70
board .get ("build.variant" ), "ld" )
75
- ]
71
+ ],
72
+
73
+ LIBS = ["c" ]
76
74
)
77
75
78
76
for item in ("-nostartfiles" , "-nostdlib" ):
Original file line number Diff line number Diff line change 137
137
UPLOADCMD = '$UPLOADER $UPLOADERFLAGS'
138
138
)
139
139
140
- if "arduino" in env .subst ("$PIOFRAMEWORK" ):
140
+ elif env .subst ("$UPLOAD_PROTOCOL" ) in ("serial" , "dfu" ) \
141
+ and "arduino" in env .subst ("$PIOFRAMEWORK" ):
141
142
_upload_tool = "serial_upload"
142
143
_upload_flags = ["{upload.altID}" , "{upload.usbID}" ]
143
- if "dfu" in env .subst ("$UPLOAD_PROTOCOL" ):
144
+ if env .subst ("$UPLOAD_PROTOCOL" ) == "dfu" :
144
145
_upload_tool = "maple_upload"
145
146
_usbids = env .BoardConfig ().get ("build.hwids" )
146
147
_upload_flags = [env .BoardConfig ().get ("upload.boot_version" , 2 ),
164
165
target_firm = env .ElfToBin (join ("$BUILD_DIR" , "firmware" ), target_elf )
165
166
166
167
AlwaysBuild (env .Alias ("nobuild" , target_firm ))
167
- target_buildprog = env .Alias ("buildprog" , target_firm )
168
+ target_buildprog = env .Alias ("buildprog" , target_firm , target_firm )
168
169
169
170
#
170
171
# Target: Print binary size
Original file line number Diff line number Diff line change 13
13
"type" : " git" ,
14
14
"url" : " https://github.com/platformio/platform-ststm32.git"
15
15
},
16
- "version" : " 1.3.0 " ,
16
+ "version" : " 1.3.1 " ,
17
17
"packageRepositories" : [
18
18
" https://dl.bintray.com/platformio/dl-packages/manifest.json" ,
19
19
" https://sourceforge.net/projects/platformio-storage/files/packages/manifest.json/download" ,
You can’t perform that action at this time.
0 commit comments