How to change task watchdog timeout?

imovit
Posts: 8
Joined: Sun Jul 29, 2018 1:52 pm

How to change task watchdog timeout?

Postby imovit » Sun Jul 29, 2018 1:58 pm

Hello
I am using lolin32 listening to BLE and posting to REST (WiFi). Hence, sometimes I get :

Task watchdog got triggered. The following tasks did not reset the watchdog in time:
- IDLE (CPU 0)
Tasks currently running:
CPU 0: wifi
CPU 1: IDLE


I have put already some delay(500) in the post routine but sometimes it happens again

So, As server coulbe be very loady sometimes lolin32 rest calls may be delayed.


It seems that task watchdog timeout is about 5 seconds. Can I change it to 10 secs? How? Where?

I am using arduino env

Thank you

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

Re: How to change task watchdog timeout?

Postby f.h-f.s. » Mon Jul 30, 2018 8:44 am

I believe the esp-idf components are compiled into libraries for Arduino(see https://github.com/espressif/arduino-es ... ls/sdk/lib). There is a option to change the task watchdog timeout in esp-idf under sdkconfig, but since for Arduino it is precompiled you might have to switch to using Arduino as a component of esp-idf https://github.com/espressif/arduino-es ... mponent.md

You could also try and find the spot where the task is taking too long and find a better way to handle that =)
I think you can get away with doing more delays but shorter, like 5x100ms.

Who is online

Users browsing this forum: No registered users and 6 guests