diff --git a/builder/main.py b/builder/main.py index 8df00252..c99b66c4 100644 --- a/builder/main.py +++ b/builder/main.py @@ -320,6 +320,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", "")