Skip to content

Commit

Permalink
fix register values, ... again
Browse files Browse the repository at this point in the history
  • Loading branch information
JurajSadel committed Feb 25, 2025
1 parent e20dfd9 commit 6bbca41
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion espflash/src/connection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,9 @@ impl Connection {

match chip {
Chip::Esp32c3 => {
wdt_reset(chip, self)?;
if pid == USB_SERIAL_JTAG_PID {
wdt_reset(chip, self)?;
}
}
Chip::Esp32s2 => {
let esp32s2 = esp32s2::Esp32s2;
Expand Down
8 changes: 4 additions & 4 deletions espflash/src/connection/reset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ trait RtcWdtReset {

impl RtcWdtReset for crate::targets::esp32c3::Esp32c3 {
fn wdt_wprotect(&self) -> u32 {
0x6000_8000 + 0x00A0
0x6000_8000 + 0x00A8
}
fn wdt_wkey(&self) -> u32 {
0x50D8_3AA1
Expand Down Expand Up @@ -239,16 +239,16 @@ impl RtcWdtReset for crate::targets::esp32s2::Esp32s2 {

impl RtcWdtReset for crate::targets::esp32s3::Esp32s3 {
fn wdt_wprotect(&self) -> u32 {
0x6000_E000 + 0x00B0
0x6000_8000 + 0x00B0
}
fn wdt_wkey(&self) -> u32 {
0x50D8_3AA1
}
fn wdt_config0(&self) -> u32 {
0x6000_E000 + 0x0098
0x6000_8000 + 0x0098
}
fn wdt_config1(&self) -> u32 {
0x6000_E000 + 0x009C
0x6000_8000 + 0x009C
}
}

Expand Down

0 comments on commit 6bbca41

Please sign in to comment.