Add idf.py monitor argument --no-reset (-R) to prevent resetting the MCU target on monitor startup

Add idf.py monitor argument --no-reset (-R) to prevent resetting the CPU on monitor startup

idf.py monitor: fix type signature

idf.py monitor: fix reset key shortcut when --no-reset (-R) argument is used

idf.py monitor: change --no-reset (-R) argument descriptions in help

idf.py monitor: simplify --no-reset (-R) argument checks

idf.py monitor: add warning if --no-reset is used, but --port is not given

idf.py monitor: ignore --no-reset if --port is not given
This commit is contained in:
Nonoo
2022-04-17 10:58:53 +02:00
parent 3aeb80acb6
commit 9266a7c52e
5 changed files with 35 additions and 10 deletions

View File

@@ -17,6 +17,13 @@ def get_parser(): # type: () -> argparse.ArgumentParser
default=os.environ.get('ESPTOOL_PORT', '/dev/ttyUSB0')
)
parser.add_argument(
'--no-reset', '-R',
help='Do not reset the chip on monitor startup',
default=False,
action='store_true'
)
parser.add_argument(
'--disable-address-decoding', '-d',
help="Don't print lines about decoded addresses from the application ELF file",