From 3c8da56d604ad37568e01ce9984f429e6a179583 Mon Sep 17 00:00:00 2001 From: Alice King <88600460+alice-king@users.noreply.github.com> Date: Mon, 8 Jul 2024 11:33:38 +0000 Subject: [PATCH] Customizable upload baud rate support for stcgal. Customizable upload baud rate support for stcgal. So users can use "upload_speed = 38400" in platformio.ini to prevent download errors on STC MCUs that are using software UART that can't operate at high baud rates (like STC15F10X) --- builder/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/builder/main.py b/builder/main.py index 1a4642e..323ef90 100644 --- a/builder/main.py +++ b/builder/main.py @@ -150,6 +150,8 @@ def _parseSdccFlags(flags): stcgal_protocol, "-p", "$UPLOAD_PORT", + "-b", + "$UPLOAD_SPEED", "-t", int(f_cpu_khz), "-a",