diff --git a/builder/main.py b/builder/main.py index 83fcc267..83826885 100644 --- a/builder/main.py +++ b/builder/main.py @@ -310,6 +310,10 @@ def __configure_upload_port(env): openocd_args.extend( ["-c", "adapter speed %s" % env.GetProjectOption("debug_speed")] ) + if env.GetProjectOption("upload_resetmethod", ""): + openocd_args.extend( + ["-c", "reset_config %s" % env.GetProjectOption("upload_resetmethod")] + ) openocd_args.extend([ "-c", "program {$SOURCE} %s verify reset; shutdown;" % board.get("upload.offset_address", "")