[solved] how feed watchdog CPU_0

User avatar
rudi ;-)
Posts: 1729
Joined: Fri Nov 13, 2015 3:25 pm

[solved] how feed watchdog CPU_0

Postby rudi ;-) » Sat Nov 19, 2016 4:25 pm

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 27552 times
Last edited by rudi ;-) on Sat Nov 19, 2016 5:52 pm, edited 1 time in total.
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

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

Re: [Q] how feed watchdog CPU_0

Postby WiFive » Sat Nov 19, 2016 5:34 pm


lberezy
Posts: 3
Joined: Tue Nov 15, 2016 12:48 pm

Re: [solved] how feed watchdog CPU_0

Postby lberezy » Sun Nov 20, 2016 12:35 pm

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.

ESP_Sprite
Posts: 9766
Joined: Thu Nov 26, 2015 4:08 am

Re: [solved] how feed watchdog CPU_0

Postby ESP_Sprite » Mon Nov 21, 2016 8:01 am

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.)

beg_dk
Posts: 34
Joined: Thu Apr 06, 2017 5:57 am

Re: [solved] how feed watchdog CPU_0

Postby beg_dk » Thu Aug 03, 2017 10:54 am

Hi

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

Thanks

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

Re: [solved] how feed watchdog CPU_0

Postby WiFive » Thu Aug 03, 2017 12:59 pm


Who is online

Users browsing this forum: ESP_Sprite and 139 guests