mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 04:02:27 +00:00
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:
@@ -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 '
|
||||
|
Reference in New Issue
Block a user