Tools: Add --no-reset option for IDF Monitor in order to avoid resetting the chip target upon connection

Closes https://github.com/espressif/esp-idf/issues/8889

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

Closes https://github.com/espressif/esp-idf/issues/7651

Merges https://github.com/espressif/esp-idf/pull/8788
This commit is contained in:
Martin Gaňo
2022-05-10 14:19:37 +02:00
parent 9266a7c52e
commit c02c0cc9b7
4 changed files with 14 additions and 5 deletions

View File

@@ -95,7 +95,9 @@ def action_extensions(base_actions, project_path):
if project_desc['target'] != 'linux':
if no_reset and args.port is None:
sys.stderr.write('WARNING: --no-reset is ignored. Please specify the port with the --port argument in order to use this option.\n')
msg = ('WARNING: --no-reset is ignored. '
'Please specify the port with the --port argument in order to use this option.')
yellow_print(msg)
no_reset = False
esp_port = args.port or _get_default_serial_port(args)
@@ -269,7 +271,7 @@ def action_extensions(base_actions, project_path):
'if this option is set. This option is set by default if IDF Monitor was invoked '
'together with encrypted-flash or encrypted-app-flash target.'),
}, {
'names': ['--no-reset', '-R'],
'names': ['--no-reset'],
'is_flag': True,
'help': ('Disable reset on monitor startup. '
'IDF Monitor will not reset the MCU target by toggling DTR/RTS lines on startup '