FreeRTOS - Design Patterns for RTOSHow can you modify a watchdog task to handle a monitored task that sometimes takes longer than usual but is still healthy?AIncrease the notification wait timeout to accommodate longer task executionBIgnore notifications from that taskCDecrease the watchdog timer periodDRemove the watchdog task entirelyCheck Answer
Step-by-Step SolutionSolution:Step 1: Identify problem with timingIf a task sometimes runs longer, the watchdog may falsely detect a failure.Step 2: Adjust timeout to prevent false resetsIncreasing the wait timeout allows the task more time to send notifications.Final Answer:Increase the notification wait timeout to accommodate longer task execution -> Option AQuick Check:Longer timeout prevents false watchdog triggers [OK]Quick Trick: Adjust timeout to match task execution time [OK]Common Mistakes:Ignoring notificationsShortening timer causing resetsRemoving watchdog task
Master "Design Patterns for RTOS" in FreeRTOS9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More FreeRTOS Quizzes Debugging and Monitoring - Stack high water mark monitoring - Quiz 11easy Debugging and Monitoring - Stack high water mark monitoring - Quiz 15hard Design Patterns for RTOS - Producer-consumer pattern - Quiz 2easy Design Patterns for RTOS - Task pooling for dynamic workloads - Quiz 15hard Interrupt Management - Deferred interrupt processing architecture - Quiz 6medium Interrupt Management - Critical sections and interrupt disabling - Quiz 4medium Interrupt Management - Critical sections and interrupt disabling - Quiz 14medium Memory Management - Why memory management prevents runtime crashes - Quiz 6medium Task Notifications - Why task notifications are lightweight - Quiz 4medium Task Notifications - ulTaskNotifyTake() for binary/counting notification - Quiz 2easy