diff --git a/builder/main.py b/builder/main.py index 642fdb3..a6ca5b0 100644 --- a/builder/main.py +++ b/builder/main.py @@ -463,7 +463,7 @@ elif upload_protocol in debug_tools: openocd_args.extend( [ "-c", - "adapter_khz %s" % env.GetProjectOption("debug_speed", "5000"), + "adapter speed %s" % env.GetProjectOption("debug_speed", "5000"), "-c", "program_esp {{$SOURCE}} %s verify" % ( diff --git a/platform.py b/platform.py index c1856e4..4bbf708 100644 --- a/platform.py +++ b/platform.py @@ -247,7 +247,7 @@ class Espressif32Platform(PlatformBase): if "openocd" in (debug_config.server or {}).get("executable", ""): debug_config.server["arguments"].extend( - ["-c", "adapter_khz %s" % (debug_config.speed or "5000")] + ["-c", "adapter speed %s" % (debug_config.speed or "5000")] ) ignore_conds = [