micropython/tools
Angus Gratton 3dd8073c29 tools/mpremote: Workaround ESP DTR/RTS reset quirk at disconnect time.
The problem with ESP board spurious reset happens at disconnect time on
Windows (clearing DTR before RTS triggers a reset).

Previous workarounds tried to detect possible ESP boards and apply the
correct DTR and RTS settings when opening the port.

Instead, we can manually clear RTS before closing the port and thereby
avoid the reset issue. Opening the port can keep the default behaviour
(RTS & DTR both set).

close() is called from a finally block in the mpremote main module
(via do_disconnect()) - so this should always happen provided the Python
process isn't terminated by the OS.

One additional workaround is needed to prevent a spurious reset first time
a Silicon Labs CP210x-based ESP board is opened by mpremote after
enumeration.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
2025-10-01 09:10:38 +10:00
..
autobuild tools: Add an environment variable MICROPY_MAINTAINER_BUILD. 2025-09-09 11:31:42 +10:00
mpremote tools/mpremote: Workaround ESP DTR/RTS reset quirk at disconnect time. 2025-10-01 09:10:38 +10:00
.gitattributes micropython-upip: Mark as binary file and re-commit. 2015-06-06 23:09:23 +03:00
ar_util.py tools/mpy_ld.py: Allow linking static libraries. 2025-03-17 13:03:27 +11:00
boardgen.py tools/boardgen.py: Ensure board pin locals_dict has consistent order. 2025-06-10 11:09:14 +10:00
cc1 tools: Add C middle-processor to make builtin tables proper hash tables. 2015-12-31 00:24:33 +00:00
ci.sh github/workflows: Add 32-bit OBJ_REPR_B CI job. 2025-09-28 23:24:54 +10:00
codeformat.py tools/codeformat.py: Print filename + linenumber when dedenting fails. 2025-08-11 13:35:34 +10:00
codestats.sh all: Prune trailing whitespace. 2024-03-07 16:25:17 +11:00
dfu.py tools/dfu.py: Make tool work with python3 when parsing DFU files. 2021-11-01 15:46:59 +11:00
file2h.py tools: Remove unneeded future imports. 2025-09-15 14:54:09 +10:00
gen-changelog.sh tools/gen-changelog.sh: Exclude "-preview" tags from generated log. 2024-01-05 15:06:14 +11:00
gen-cpydiff.py tools/gen-cpydiff.py: Ensure every item has at least 2 TOC levels. 2025-05-16 11:52:03 +10:00
hci_trace_to_pcap.py extmod/modbluetooth: Make all HCI transports trace in the same format. 2023-04-26 11:37:20 +10:00
insert-usb-ids.py tools: Remove unneeded future imports. 2025-09-15 14:54:09 +10:00
makemanifest.py tools: Remove unneeded future imports. 2025-09-15 14:54:09 +10:00
manifestfile.py tools: Remove unneeded future imports. 2025-09-15 14:54:09 +10:00
metrics.py tools/metrics.py: Compute mpy-cross size as part of size metrics. 2025-09-24 22:09:45 +10:00
mpy_bin2res.py tools/mpy_bin2res: Tools to convert binary resources to Python module. 2017-07-27 14:41:27 +03:00
mpy_cross_all.py all: Remove MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE. 2021-09-16 16:04:03 +10:00
mpy_ld.py all: Go back to using default ruff quote style. 2025-07-24 12:48:18 +10:00
mpy-tool.py mpy-cross: Add RISC-V RV64IMC support in MPY files. 2025-09-19 11:11:31 +10:00
pyboard.py tools/pyboard.py: Add timeout argument to Pyboard.exec_/exec. 2025-07-23 12:42:44 +10:00
pydfu.py tools: Remove unneeded future imports. 2025-09-15 14:54:09 +10:00
uf2conv.py all: Fix strings with backslash by using raw string literals. 2023-05-02 11:55:02 +10:00
uf2families.json tools/uf2conv.py: Update to latest version. 2022-02-02 23:43:58 +11:00
uncrustify.cfg all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
verifygitlog.py tools/verifygitlog.py: Allow long co-author and sign-off names. 2025-05-15 13:03:11 +10:00