Disabling the hardware watchdog
Posted: Thu Sep 05, 2019 5:19 am
I manage to complety disable the hardware watchdog on ESP8266 in order to run the benchmark CoreMark. I think that this will be useful in some cases.
First, disable the software wdt using ESP.wdtDisable()
And this is it, you will no longer experience resets if you don't feed the watchdog
First, disable the software wdt using ESP.wdtDisable()
Code: Select all
void hw_wdt_disable(){
*((volatile uint32_t*) 0x60000900) &= ~(1); // Hardware WDT OFF
}
void hw_wdt_enable(){
*((volatile uint32_t*) 0x60000900) |= 1; // Hardware WDT ON
}
And this is it, you will no longer experience resets if you don't feed the watchdog