nicholasd wrote on Tuesday, June 05, 2018:
I am currently using vApplicationIdleHook() to simply reset the Watchdog timer (WDT) on my target device. This technique works well so far, but there is no way of checking the proper functioning of other threads, so I would instead like to have my two other threads each give their own WDT binary semaphore, and vApplicationIdleHook() will only reset the WDT once both semaphores have been given by each task, otherwise the watchdog timer will reset.
I’ve noted that blocking functions like vTaskDelay(), xSemaphoreTake(), etc. are not usable in vApplicationIdleHook(), but I would like to hear any other suggestions of how to implement this sort of WDT functionality using vApplicationIdleHook().
Thanks,
Nicholas