diff options
| author | Angus Gratton <angus@redyak.com.au> | 2025-08-29 08:06:27 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-10-01 09:10:38 +1000 |
| commit | 3dd8073c290c077f17ffdee17a019763ad82604d (patch) | |
| tree | 4ef46bfb2d0f15b2aeb859121c857b16bb840357 /tests/micropython/viper_ptr8_store.py | |
| parent | a563592b111686dde9b46785bb783d45ec0ba78e (diff) | |
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>
Diffstat (limited to 'tests/micropython/viper_ptr8_store.py')
0 files changed, 0 insertions, 0 deletions
