Skip to content

Commit dee1e25

Browse files
authored
Include the base address of the RTC peripheral when disabling the RTC watchdog (esp-rs#190)
1 parent 3a3f7a3 commit dee1e25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

espflash/src/flash_target/esp32.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,17 @@ impl FlashTarget for Esp32Target {
5555
}
5656
Chip::Esp32s3 => {
5757
connection.command(Command::WriteReg {
58-
address: 0x00B0,
58+
address: 0x6000_80B0,
5959
value: 0x50D83AA1u32,
6060
mask: None,
6161
})?; // WP disable
6262
connection.command(Command::WriteReg {
63-
address: 0x0098,
63+
address: 0x6000_8098,
6464
value: 0x0,
6565
mask: None,
6666
})?; // turn off RTC WDG
6767
connection.command(Command::WriteReg {
68-
address: 0x00B0,
68+
address: 0x6000_80B0,
6969
value: 0x0,
7070
mask: None,
7171
})?; // WP enable

0 commit comments

Comments
 (0)