Skip to content

Commit

Permalink
Merge branch 'release/v12.1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
valeros committed Apr 5, 2021
2 parents c56c978 + 9bd9926 commit 43deb31
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 21 deletions.
40 changes: 40 additions & 0 deletions boards/nucleo_l412rb_p.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"build": {
"cpu": "cortex-m4",
"extra_flags": "-DSTM32L412xx",
"f_cpu": "80000000L",
"mcu": "stm32l412rbt6p",
"product_line": "STM32L412xx"
},
"debug": {
"default_tools": [
"stlink"
],
"jlink_device": "STM32L412RB",
"onboard_tools": [
"stlink"
],
"openocd_board": "st_nucleo_l4",
"openocd_target": "stm32l4x",
"svd_path": "STM32L4x2.svd"
},
"frameworks": [
"cmsis",
"stm32cube"
],
"name": "ST Nucleo L412RB-P",
"upload": {
"maximum_ram_size": 40960,
"maximum_size": 131072,
"protocol": "stlink",
"protocols": [
"jlink",
"cmsis-dap",
"stlink",
"blackmagic",
"mbed"
]
},
"url": "https://www.st.com/en/evaluation-tools/nucleo-l412rb-p.html",
"vendor": "ST"
}
8 changes: 0 additions & 8 deletions boards/portenta_h7_m4.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@
[
"0x2341",
"0x035b"
],
[
"0x2341",
"0x025b"
],
[
"0x2341",
"0x045b"
]
]
},
Expand Down
8 changes: 0 additions & 8 deletions boards/portenta_h7_m7.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@
[
"0x2341",
"0x035b"
],
[
"0x2341",
"0x025b"
],
[
"0x2341",
"0x045b"
]
]
},
Expand Down
6 changes: 2 additions & 4 deletions builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def _jlink_cmd_script(env, source):

# default tool for all boards with embedded DFU bootloader over USB
_upload_tool = '"%s"' % join(platform.get_package_dir(
"tool-dfuutil") or "", "bin", "dfu-util"),
"tool-dfuutil") or "", "bin", "dfu-util")
_upload_flags = [
"-d", ",".join(["%s:%s" % (hwid[0], hwid[1]) for hwid in hwids]),
"-a", "0", "-s",
Expand All @@ -223,9 +223,7 @@ def _jlink_cmd_script(env, source):
if env.subst("$BOARD").startswith("portenta"):
upload_actions.insert(
0,
env.VerboseAction(
env.AutodetectUploadPort, "Looking for upload port..."
),
env.VerboseAction(BeforeUpload, "Looking for upload port...")
)
elif board.get("build.mcu").startswith("stm32f103"):
# F103 series doesn't have embedded DFU over USB
Expand Down
2 changes: 1 addition & 1 deletion platform.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"type": "git",
"url": "https://github.com/platformio/platform-ststm32.git"
},
"version": "12.1.0",
"version": "12.1.1",
"frameworks": {
"mbed": {
"package": "framework-mbed",
Expand Down
1 change: 1 addition & 0 deletions platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def configure_default_packages(self, variables, targets):
self.frameworks["arduino"][
"script"
] = "builder/frameworks/arduino/mbed-core/arduino-core-mbed.py"
self.packages["framework-arduinoststm32"]["optional"] = True
elif build_core == "maple":
self.frameworks["arduino"]["package"] = "framework-arduinoststm32-maple"
self.packages["framework-arduinoststm32-maple"]["optional"] = False
Expand Down

0 comments on commit 43deb31

Please sign in to comment.