Need example for ESP32 WDT in Arduino

elchar82
Posts: 1
Joined: Thu Aug 17, 2017 4:22 pm

Need example for ESP32 WDT in Arduino

Postby elchar82 » Thu Aug 17, 2017 4:58 pm

Hi,

I migrated my project from Arduino Mega Board to ESP32 DevKit Board, to modify the least possible code I used ESP32 in Arduino IDE, but now I have a problem with WDT fuctionality.

In my original project (on Arduino) I enabled WDT to reset board if stucks for some reason, but now I can't understand how to use ESP32 WDTs to obtain same behavior.

I tried with esp_int_wdt and esp_task_wdt functions, but nothing happens also if I put an "infinite" delay in my code that makes it impossible to reach feed function, I tried also to create a separe task to handle only the WDT function but without success.

So, could someone provide me a simple example to obtain what I need (and implented in my previous Arduino project)?

Thanks!
Regards

Who is online

Users browsing this forum: No registered users and 120 guests