Skip to content

Commit 6bbca41

Browse files
committed
fix register values, ... again
1 parent e20dfd9 commit 6bbca41

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

espflash/src/connection/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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;

espflash/src/connection/reset.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ trait RtcWdtReset {
209209

210210
impl 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

240240
impl 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

0 commit comments

Comments
 (0)