BojanJurca / Esp32_oscilloscope

ESP32 oscilloscope - see the signals through Web browser the way ESP32 sees them
Creative Commons Zero v1.0 Universal
794 stars 93 forks source link

Watchdog gets triggered when heavily loaded #15

Closed BojanJurca closed 2 years ago

BojanJurca commented 2 years ago

One solution may be to increase the CPU frequency of ESP32.

The other solution is to disable the watchdog.

First

#include <soc/rtc_wdt.h>

then (in setup function)

void setup () {  
  rtc_wdt_protect_off ();
  rtc_wdt_disable ();

If you are using an Esp32 oscilloscope as a stand alone solution this may be perfectly OK. But if it is just a part of your project, disabling the watchdog may not really be what you desire.

actuallydoc commented 2 years ago

svaka cast da si tole sprogramiru! upam da bom lahk jst kdaj takle kej ustvaru hehe.

BojanJurca commented 2 years ago

Disable the watchdog if you can afford it by uncommenting the following lies:

// rtc_wdt_protect_off (); // rtc_wdt_disable (); // disableCore0WDT (); // disableCore1WDT (); // disableLoopWDT ();