Two Task Watchdog

User avatar
urbanze
Posts: 301
Joined: Sat Jun 10, 2017 9:55 pm
Location: Brazil

Two Task Watchdog

Postby urbanze » Wed Apr 18, 2018 2:24 pm

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?

ESP_Dazz
Posts: 308
Joined: Fri Jun 02, 2017 6:50 am

Re: Two Task Watchdog

Postby ESP_Dazz » Mon Jul 16, 2018 9:04 am

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?

Who is online

Users browsing this forum: Bing [Bot] and 82 guests