Page 1 of 1

Two Task Watchdog

Posted: Wed Apr 18, 2018 2:24 pm
by urbanze
Hi guys, I have some task's to access an peripheral and because this, TSK WDT has 30sec to reboot (I using binary semaphore to synchronize all)... However, some another task's don's access peripheral and need to be have an TSK WDT more frequently.

Can I create 2 separate task watchdog? I need one with large delay (30sec) and another with <2sec. How to avoid this problem?

Re: Two Task Watchdog

Posted: Mon Jul 16, 2018 9:04 am
by ESP_Dazz
The current Task WDT API will not support that. You could disable the current task watchdogs and re-implement a custom task watchdog by using the same MWDT as the task watchdog (MWDT of Timer Group 0). However I think it's generally bad practice to have any task run for too long without yielding. Would it be possible for you to program your task so that it will periodically block?