Skip to content

Commit

Permalink
Re-enable the code to disable the watchdog, even if the flash stub is…
Browse files Browse the repository at this point in the history
… in use.
  • Loading branch information
jnross committed Mar 15, 2023
1 parent d1001e6 commit c322124
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion espflash/src/targets/flash_target/esp32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ impl FlashTarget for Esp32Target {

// The stub usually disables these watchdog timers, however if we're not using the stub
// we need to disable them before flashing begins
if !self.use_stub && connection.get_usb_pid()? == USB_SERIAL_JTAG_PID {
// TODO: the stub doesn't appear to disable the watchdog on ESP32-S3, so we explicitly
// disable the watchdog here.
if connection.get_usb_pid()? == USB_SERIAL_JTAG_PID {
match self.chip {
Chip::Esp32c3 => {
connection.command(Command::WriteReg {
Expand Down

0 comments on commit c322124

Please sign in to comment.