File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -286,7 +286,9 @@ impl Connection {
286286
287287 match chip {
288288 Chip :: Esp32c3 => {
289- wdt_reset ( chip, self ) ?;
289+ if pid == USB_SERIAL_JTAG_PID {
290+ wdt_reset ( chip, self ) ?;
291+ }
290292 }
291293 Chip :: Esp32s2 => {
292294 let esp32s2 = esp32s2:: Esp32s2 ;
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ trait RtcWdtReset {
209209
210210impl RtcWdtReset for crate :: targets:: esp32c3:: Esp32c3 {
211211 fn wdt_wprotect ( & self ) -> u32 {
212- 0x6000_8000 + 0x00A0
212+ 0x6000_8000 + 0x00A8
213213 }
214214 fn wdt_wkey ( & self ) -> u32 {
215215 0x50D8_3AA1
@@ -239,16 +239,16 @@ impl RtcWdtReset for crate::targets::esp32s2::Esp32s2 {
239239
240240impl RtcWdtReset for crate :: targets:: esp32s3:: Esp32s3 {
241241 fn wdt_wprotect ( & self ) -> u32 {
242- 0x6000_E000 + 0x00B0
242+ 0x6000_8000 + 0x00B0
243243 }
244244 fn wdt_wkey ( & self ) -> u32 {
245245 0x50D8_3AA1
246246 }
247247 fn wdt_config0 ( & self ) -> u32 {
248- 0x6000_E000 + 0x0098
248+ 0x6000_8000 + 0x0098
249249 }
250250 fn wdt_config1 ( & self ) -> u32 {
251- 0x6000_E000 + 0x009C
251+ 0x6000_8000 + 0x009C
252252 }
253253}
254254
You can’t perform that action at this time.
0 commit comments