-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add idf.py monitor argument --no-reset (-R) (IDFGH-7189) #8788
Conversation
Thanks for your contribution. |
Hi @nonoo. https://github.com/espressif/esp-idf/runs/6052952029?check_suite_focus=true is failing. Can you please set up the pre-commit hooks locally (https://docs.espressif.com/projects/esp-idf/en/latest/esp32/contribute/install-pre-commit-hook.html) and fix the failures. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution. Looks good to me in general.
There's one caveat, if no --port argument is given, tools/idf_py_actions/serial_ext.py calls esptool.get_default_connected_device() which opens the serial port by setting the chip into reset state. This needs to be fixed in esptool.get_default_connected_device() (both DTR and RTS needs to be set high in the esptool Python module). A temporary workaround for this could be that we require the user to define the --port argument when using --no-reset. |
I don't think we could avoid that.
Yes, this looks good to me. Maybe don't need to "require" it. We could just print a warning that " |
One more thing I forgot to mention. Please squash the commits into one. (https://www.git-tower.com/learn/git/faq/git-squash/) |
…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
1bd6c8b
to
9266a7c
Compare
Thanks for the corrections! |
sha=9266a7c52e078389e36fb90f1fba905683db5eae |
…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
Add idf.py monitor argument --no-reset (-R) to be able to optionally prevent resetting the CPU on monitor startup.