Skip to content

Commit 28556fb

Browse files
committed
fix(remote_ports): Disable reset sequence when a socket is used
Closes espressif/esp-idf#14200
1 parent 1f1e2c2 commit 28556fb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

esptool/loader.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,14 @@ def connect(
708708
"Connection may fail if the chip is not in bootloader "
709709
"or flasher stub mode.",
710710
)
711+
712+
if self._port.name.startswith("socket:"):
713+
mode = "no_reset" # not possible to toggle DTR/RTS over a TCP socket
714+
print(
715+
"Note: It's not possible to reset the chip over a TCP socket. "
716+
"Resetting to bootloader has been disabled."
717+
)
718+
711719
print("Connecting...", end="")
712720
sys.stdout.flush()
713721
last_error = None

0 commit comments

Comments
 (0)