Page 1 of 1

[solved] how feed watchdog CPU_0

Posted: Sat Nov 19, 2016 4:25 pm
by rudi ;-)
hi guys

not sure - have not read yet ( not searched in detail ) -
have someone knowledge how we can feed watchdog for CPU 0 ?

can we clear / read / set this register ?

Code: Select all


Task watchdog got triggered. The following tasks did not feed the watchdog in time:<\r><\n>
 - IDLE (CPU 0)<\r><\n>
Tasks currently running:<\r><\n>
CPU 0: main<\r><\n>
CPU 1: IDLE<\r><\n>
Task watchdog got triggered. The following tasks did not feed the watchdog in time:<\r><\n>
 - IDLE (CPU 0)<\r><\n>
Tasks currently running:<\r><\n>
CPU 0: main<\r><\n>
CPU 1: IDLE<\r><\n>
thanks

best wishes
rudi ;-)
CPU_0_watchdog_feed.png
CPU_0_watchdog_feed.png (16.01 KiB) Viewed 27000 times

Re: [Q] how feed watchdog CPU_0

Posted: Sat Nov 19, 2016 5:34 pm
by WiFive

Re: [solved] how feed watchdog CPU_0

Posted: Sun Nov 20, 2016 12:35 pm
by lberezy
Looks like there's an esp_task_wdt_feed() function in ESP-IDF that looks like it will feed FreeRTOS's watchdog implementation.
Implementation is here, see the related header for maybe more information:
https://github.com/espressif/esp-idf/bl ... _wdt.c#L94

Have not tested this, however.

Re: [solved] how feed watchdog CPU_0

Posted: Mon Nov 21, 2016 8:01 am
by ESP_Sprite
That would work if you want the watchdog also to watch the tread calling the feed function. To get rid of this specific message, it's enough to write a task that does not take 100% cpu time (e.g. by yielding to FreeRTOS by doing a vTaskDelay every now and then.)

Re: [solved] how feed watchdog CPU_0

Posted: Thu Aug 03, 2017 10:54 am
by beg_dk
Hi

Can anyone tell me what the purpose of feeding the watchdog is?

Thanks

Re: [solved] how feed watchdog CPU_0

Posted: Thu Aug 03, 2017 12:59 pm
by WiFive