From 5af9b3634968296e393d674ec70f42d63b6381f8 Mon Sep 17 00:00:00 2001 From: Maximilian Gerhardt Date: Tue, 12 Jul 2022 21:08:20 +0200 Subject: [PATCH] Correct flashing with offset when using stm32flash --- builder/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/main.py b/builder/main.py index 9125e69d..c6a64ecd 100644 --- a/builder/main.py +++ b/builder/main.py @@ -274,7 +274,7 @@ def __configure_upload_port(env): '"%s"' % platform.get_package_dir("tool-stm32duino") or "", "stm32flash", "stm32flash"), UPLOADERFLAGS=[ - "-g", board.get("upload.offset_address", "0x08000000"), + "-S", board.get("upload.offset_address", "0x08000000"), "-b", env.subst("$UPLOAD_SPEED") or "115200", "-w" ], UPLOADCMD='$UPLOADER $UPLOADERFLAGS "$SOURCE" "${__configure_upload_port(__env__)}"'