File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 6
6
import struct
7
7
8
8
from .esp32c3 import ESP32C3ROM
9
+ from ..loader import ESPLoader
9
10
from ..util import FatalError , NotImplementedInROMError
10
11
11
12
@@ -194,6 +195,11 @@ def check_spi_connection(self, spi_connection):
194
195
"consider using other pins for SPI flash connection."
195
196
)
196
197
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
+
197
203
198
204
class ESP32C6StubLoader (ESP32C6ROM ):
199
205
"""Access class for ESP32C6 stub loader, runs on top of ROM.
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ def get_crystal_freq(self):
80
80
return 32
81
81
82
82
def hard_reset (self ):
83
+ # RTC WDT reset not available, do a classic reset
83
84
ESPLoader .hard_reset (self )
84
85
85
86
def check_spi_connection (self , spi_connection ):
You can’t perform that action at this time.
0 commit comments