Skip to content

Commit d47004e

Browse files
committed
fix(esp32-c6): Disable RTC WDT reset to prevent port disappearing
1 parent 6cc002c commit d47004e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

esptool/targets/esp32c6.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import struct
77

88
from .esp32c3 import ESP32C3ROM
9+
from ..loader import ESPLoader
910
from ..util import FatalError, NotImplementedInROMError
1011

1112

@@ -194,6 +195,11 @@ def check_spi_connection(self, spi_connection):
194195
"consider using other pins for SPI flash connection."
195196
)
196197

198+
def hard_reset(self):
199+
# Bug in the USB-Serial/JTAG controller can cause the port to disappear
200+
# if the chip is reset with RTC WDT, do a classic reset
201+
ESPLoader.hard_reset(self)
202+
197203

198204
class ESP32C6StubLoader(ESP32C6ROM):
199205
"""Access class for ESP32C6 stub loader, runs on top of ROM.

esptool/targets/esp32h2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def get_crystal_freq(self):
8080
return 32
8181

8282
def hard_reset(self):
83+
# RTC WDT reset not available, do a classic reset
8384
ESPLoader.hard_reset(self)
8485

8586
def check_spi_connection(self, spi_connection):

0 commit comments

Comments
 (0)