Disabling watchdog on the ESP32.

Danner36
Posts: 1
Joined: Fri Jun 09, 2017 12:15 pm

Disabling watchdog on the ESP32.

Postby Danner36 » Fri Jun 09, 2017 12:21 pm

I creating a program on the ESP32 Dev Kit C and am using Visual Studio Code on the Eduino extension. When I launch my program it works as intended code wise, but the watchdog time will trigger after 2 or 3 seconds. This is a problem because my program needs to wait for data crossing the serial port before it "activates," which most of the time takes longer than 2 or 3 seconds.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Disabling watchdog on the ESP32.

Postby WiFive » Fri Jun 09, 2017 1:50 pm

How are you "waiting"?

f.h-f.s.
Posts: 214
Joined: Thu Dec 08, 2016 2:53 pm

Re: Disabling watchdog on the ESP32.

Postby f.h-f.s. » Mon Jun 12, 2017 10:43 am

You can disable the watchdogs in make menuconfig, I wouldn't recommend it though.
If you are waiting in a while loop you can use vTaskDelay to feed the dog.

Who is online

Users browsing this forum: No registered users and 84 guests