Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHi,
I think the only solution is to make sure that every task is made active now and then. If a task is putted to sleep for 10 seconds it is perfectly normal that you think the task is dead if you look every second. Using the IDLE task to detect can have also drawbacks in the sense that if you have some less critical low priority tasks that consume a lot of time, but don't disturb the real time behaviour because of the low priority, the IDLE task can be inactive for al long time also. Maybe, you can make a special task that sits just above the critical ones (supposed the critical tasks had assigned the highest priorities), and just below the not critical tasks. This task can be made active periodically and reset the watchdog. If in mean time you found a better solution, feel free to post, I'm interested also in this matter. Stefaan