Skip to content

Commit 4b5ff01

Browse files
committed
Switch to a standalone stm32flash package
The new package supersedes the outdated tool-stm32duino package Resolves #610, resolves #640, resolves #665
1 parent d831a63 commit 4b5ff01

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

builder/main.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,8 @@ def __configure_upload_port(env):
281281

282282
env.Replace(
283283
__configure_upload_port=__configure_upload_port,
284-
UPLOADER=join(
285-
'"%s"' % platform.get_package_dir("tool-stm32duino") or "",
286-
"stm32flash", "stm32flash"),
284+
UPLOADER='"%s"' % join(
285+
platform.get_package_dir("tool-stm32flash") or "", "stm32flash"),
287286
UPLOADERFLAGS=[
288287
"-g", board.get("upload.offset_address", "0x08000000"),
289288
"-b", env.subst("$UPLOAD_SPEED") or "115200", "-w"

platform.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -300,11 +300,11 @@
300300
"owner": "platformio",
301301
"version": "~3.40100.0"
302302
},
303-
"tool-stm32duino": {
303+
"tool-stm32flash": {
304304
"type": "uploader",
305305
"optional": true,
306306
"owner": "platformio",
307-
"version": "~1.0.1"
307+
"version": "~0.7.0"
308308
},
309309
"tool-openocd": {
310310
"type": "uploader",

0 commit comments

Comments
 (0)