diff --git a/tools/pyboard.py b/tools/pyboard.py index 7d06aa847d..e460c69e24 100755 --- a/tools/pyboard.py +++ b/tools/pyboard.py @@ -656,6 +656,12 @@ def main(): help="seconds to wait for USB connected board to become available", ) group = cmd_parser.add_mutually_exclusive_group() + group.add_argument( + "--soft-reset", + default=True, + action=argparse.BooleanOptionalAction, + help="Whether to perform a soft reset when connecting to the board.", + ) group.add_argument( "--follow", action="store_true", @@ -695,7 +701,7 @@ def main(): # we must enter raw-REPL mode to execute commands # this will do a soft-reset of the board try: - pyb.enter_raw_repl() + pyb.enter_raw_repl(args.soft_reset) except PyboardError as er: print(er) pyb.close()