Skip to content

Commit 645729a

Browse files
committed
Merge branch 'release/v14.0.1'
2 parents 3b7dfe1 + 7340c3e commit 645729a

File tree

10 files changed

+40
-27
lines changed

10 files changed

+40
-27
lines changed

boards/disco_l475vg_iot01a.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
],
4141
"name": "ST B-L475E-IOT01A Discovery kit",
4242
"upload": {
43-
"maximum_ram_size": 131072,
43+
"maximum_ram_size": 98304,
4444
"maximum_size": 1048576,
4545
"protocol": "stlink",
4646
"protocols": [

boards/nucleo_l452re.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
],
3232
"name": "ST Nucleo L452RE",
3333
"upload": {
34-
"maximum_ram_size": 65536,
35-
"maximum_size": 262144,
34+
"maximum_ram_size": 163840,
35+
"maximum_size": 524288,
3636
"protocol": "stlink",
3737
"protocols": [
3838
"jlink",

boards/nucleo_l476rg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
],
3434
"name": "ST Nucleo L476RG",
3535
"upload": {
36-
"maximum_ram_size": 131072,
36+
"maximum_ram_size": 98304,
3737
"maximum_size": 1048576,
3838
"protocol": "stlink",
3939
"protocols": [

boards/nucleo_l496zg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
],
3434
"name": "ST Nucleo L496ZG",
3535
"upload": {
36-
"maximum_ram_size": 131072,
36+
"maximum_ram_size": 327680,
3737
"maximum_size": 1048576,
3838
"protocol": "stlink",
3939
"protocols": [

boards/vccgnd_f407zg_mini.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"debug": {
1515
"jlink_device": "STM32F407ZG",
16-
"openocd_target": "stm32f1x",
16+
"openocd_target": "stm32f4x",
1717
"svd_path": "STM32F407xx.svd"
1818
},
1919
"frameworks": [

builder/frameworks/libopencm3

builder/frameworks/spl.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,17 @@ def get_linker_script(mcu):
6262
with open(template_file) as fp:
6363
data = Template(fp.read())
6464
content = data.substitute(
65-
stack=hex(0x20000000 + ram), # 0x20000000 - start address for RAM
66-
ram=str(int(ram/1024)) + "K",
67-
flash=str(int(flash/1024)) + "K"
65+
stack=hex(0x20000000 + ram), # 0x20000000 - start address for RAM
66+
ram=str(int(ram / 1024)) + "K",
67+
flash=str(int(flash / 1024)) + "K"
6868
)
6969

7070
with open(default_ldscript, "w") as fp:
7171
fp.write(content)
7272

7373
return default_ldscript
7474

75+
7576
env.Append(
7677
CPPPATH=[
7778
join(FRAMEWORK_DIR, board.get("build.core"),
@@ -82,6 +83,9 @@ def get_linker_script(mcu):
8283
"variants", board.get("build.mcu")[0:7], "inc"),
8384
join(FRAMEWORK_DIR, board.get("build.core"), "spl",
8485
"variants", board.get("build.mcu")[0:7], "src")
86+
],
87+
LINKFLAGS=[
88+
"-nostartfiles"
8589
]
8690
)
8791

builder/frameworks/stm32cube.py

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ def generate_hal_config_file():
137137

138138

139139
def build_custom_lib(lib_path, lib_manifest=None):
140+
if not os.path.isdir(lib_path):
141+
return
140142
if board.get("build.stm32cube.disable_embedded_libs", "no") == "yes":
141143
return
142144
if lib_path:
@@ -255,8 +257,9 @@ def build_usb_libs(usb_libs_root):
255257

256258
bsp_dir = os.path.join(FRAMEWORK_DIR, "Drivers", "BSP")
257259
components_dir = os.path.join(bsp_dir, "Components")
258-
for component in os.listdir(components_dir):
259-
build_custom_lib(os.path.join(components_dir, component))
260+
if os.path.isdir(components_dir):
261+
for component in os.listdir(components_dir):
262+
build_custom_lib(os.path.join(components_dir, component))
260263

261264
if os.path.isdir(os.path.join(bsp_dir, "Adafruit_Shield")):
262265
build_custom_lib(os.path.join(bsp_dir, "Adafruit_Shield"))
@@ -266,19 +269,25 @@ def build_usb_libs(usb_libs_root):
266269
#
267270

268271
utils_dir = os.path.join(FRAMEWORK_DIR, "Utilities")
269-
for util in os.listdir(utils_dir):
270-
util_dir = os.path.join(utils_dir, util)
271-
# Some of utilities is not meant to be built
272-
if not any(f.endswith((".c", ".h")) for f in os.listdir(util_dir)):
273-
continue
274-
build_custom_lib(
275-
os.path.join(utils_dir, util),
276-
{
277-
"name": "Util-%s" % util,
278-
"dependencies": [{"name": "FrameworkVariantBSP"}],
279-
"build": {"flags": ["-I $PROJECT_SRC_DIR", "-I $PROJECT_INCLUDE_DIR"], "libLDFMode": "deep"},
280-
},
281-
)
272+
if os.path.isdir(utils_dir):
273+
for util in os.listdir(utils_dir):
274+
util_dir = os.path.join(utils_dir, util)
275+
# Some of utilities is not meant to be built
276+
if not os.path.isdir(util_dir) or not any(
277+
f.endswith((".c", ".h")) for f in os.listdir(util_dir)
278+
):
279+
continue
280+
build_custom_lib(
281+
os.path.join(utils_dir, util),
282+
{
283+
"name": "Util-%s" % util,
284+
"dependencies": [{"name": "FrameworkVariantBSP"}],
285+
"build": {
286+
"flags": ["-I $PROJECT_SRC_DIR", "-I $PROJECT_INCLUDE_DIR"],
287+
"libLDFMode": "deep",
288+
},
289+
},
290+
)
282291

283292
#
284293
# USB libraries from ST

builder/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def __configure_upload_port(env):
305305
]
306306
openocd_args.extend(
307307
debug_tools.get(upload_protocol).get("server").get("arguments", []))
308-
if env.GetProjectOption("debug_speed"):
308+
if env.GetProjectOption("debug_speed", ""):
309309
openocd_args.extend(
310310
["-c", "adapter speed %s" % env.GetProjectOption("debug_speed")]
311311
)

platform.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"type": "git",
1919
"url": "https://github.com/platformio/platform-ststm32.git"
2020
},
21-
"version": "14.0.0",
21+
"version": "14.0.1",
2222
"frameworks": {
2323
"mbed": {
2424
"package": "framework-mbed",

0 commit comments

Comments
 (0)