Skip to content

Commit 43deb31

Browse files
committed
Merge branch 'release/v12.1.1'
2 parents c56c978 + 9bd9926 commit 43deb31

File tree

6 files changed

+44
-21
lines changed

6 files changed

+44
-21
lines changed

boards/nucleo_l412rb_p.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"build": {
3+
"cpu": "cortex-m4",
4+
"extra_flags": "-DSTM32L412xx",
5+
"f_cpu": "80000000L",
6+
"mcu": "stm32l412rbt6p",
7+
"product_line": "STM32L412xx"
8+
},
9+
"debug": {
10+
"default_tools": [
11+
"stlink"
12+
],
13+
"jlink_device": "STM32L412RB",
14+
"onboard_tools": [
15+
"stlink"
16+
],
17+
"openocd_board": "st_nucleo_l4",
18+
"openocd_target": "stm32l4x",
19+
"svd_path": "STM32L4x2.svd"
20+
},
21+
"frameworks": [
22+
"cmsis",
23+
"stm32cube"
24+
],
25+
"name": "ST Nucleo L412RB-P",
26+
"upload": {
27+
"maximum_ram_size": 40960,
28+
"maximum_size": 131072,
29+
"protocol": "stlink",
30+
"protocols": [
31+
"jlink",
32+
"cmsis-dap",
33+
"stlink",
34+
"blackmagic",
35+
"mbed"
36+
]
37+
},
38+
"url": "https://www.st.com/en/evaluation-tools/nucleo-l412rb-p.html",
39+
"vendor": "ST"
40+
}

boards/portenta_h7_m4.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@
1414
[
1515
"0x2341",
1616
"0x035b"
17-
],
18-
[
19-
"0x2341",
20-
"0x025b"
21-
],
22-
[
23-
"0x2341",
24-
"0x045b"
2517
]
2618
]
2719
},

boards/portenta_h7_m7.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@
1414
[
1515
"0x2341",
1616
"0x035b"
17-
],
18-
[
19-
"0x2341",
20-
"0x025b"
21-
],
22-
[
23-
"0x2341",
24-
"0x045b"
2517
]
2618
]
2719
},

builder/main.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def _jlink_cmd_script(env, source):
210210

211211
# default tool for all boards with embedded DFU bootloader over USB
212212
_upload_tool = '"%s"' % join(platform.get_package_dir(
213-
"tool-dfuutil") or "", "bin", "dfu-util"),
213+
"tool-dfuutil") or "", "bin", "dfu-util")
214214
_upload_flags = [
215215
"-d", ",".join(["%s:%s" % (hwid[0], hwid[1]) for hwid in hwids]),
216216
"-a", "0", "-s",
@@ -223,9 +223,7 @@ def _jlink_cmd_script(env, source):
223223
if env.subst("$BOARD").startswith("portenta"):
224224
upload_actions.insert(
225225
0,
226-
env.VerboseAction(
227-
env.AutodetectUploadPort, "Looking for upload port..."
228-
),
226+
env.VerboseAction(BeforeUpload, "Looking for upload port...")
229227
)
230228
elif board.get("build.mcu").startswith("stm32f103"):
231229
# F103 series doesn't have embedded DFU over USB

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": "12.1.0",
21+
"version": "12.1.1",
2222
"frameworks": {
2323
"mbed": {
2424
"package": "framework-mbed",

platform.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def configure_default_packages(self, variables, targets):
3737
self.frameworks["arduino"][
3838
"script"
3939
] = "builder/frameworks/arduino/mbed-core/arduino-core-mbed.py"
40+
self.packages["framework-arduinoststm32"]["optional"] = True
4041
elif build_core == "maple":
4142
self.frameworks["arduino"]["package"] = "framework-arduinoststm32-maple"
4243
self.packages["framework-arduinoststm32-maple"]["optional"] = False

0 commit comments

Comments
 (0)