Skip to content

Commit

Permalink
Tools: Add --no-reset option for IDF Monitor in order to avoid resett…
Browse files Browse the repository at this point in the history
…ing the chip target upon connection

Closes espressif/esp-idf#8889

Closes IDFGH-7189, IDFGH-7301, IDFGH-5963

Closes espressif/esp-idf#7651

Merges espressif/esp-idf#8788
  • Loading branch information
Martin Gaňo committed May 10, 2022
1 parent b96de8e commit ffa2107
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions tools/idf_monitor_base/argument_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ def get_parser(): # type: () -> argparse.ArgumentParser
)

parser.add_argument(
'--no-reset', '-R',
'--no-reset',
help='Do not reset the chip on monitor startup',
default=False,
action='store_true'
)

Expand Down
1 change: 0 additions & 1 deletion tools/idf_monitor_base/serial_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ def handle_commands(self, cmd, chip, run_make_func, console_reader, serial_reade
console_reader.stop()
serial_reader.stop()
elif cmd == CMD_RESET:
self.serial_instance.setDTR(high) # IO0=HIGH, default state
self.serial_instance.setRTS(low) # EN=LOW, chip in reset
self.serial_instance.setDTR(self.serial_instance.dtr) # usbser.sys workaround
time.sleep(reset_delay)
Expand Down

0 comments on commit ffa2107

Please sign in to comment.