WatchDog Use #840
-
Hey, How do I use Watchdog timer? I read on the doc that A health component in the system uses a set of ping ports to send a message to an active component. The active component is required to respond with the value in the key argument passed in the port by a certain timeout. So I understand that Watchdog timer uses Health component but where I do add Watchdog in my top design? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
@timcanham can you assist here? |
Beta Was this translation helpful? Give feedback.
-
@LeStarch @timcanham I am still stuck with integration of the WatchDog in my design. Any help will be much appreciated. |
Beta Was this translation helpful? Give feedback.
-
@sheershak-agarwal Watchdogs are dependent on the system you are designing. It is commonly a hardware timer that counts down and will reset the processor if it reaches zero. The software periodically resets the count of the watchdog so the countdown never reaches zero. The idea is that if the software goes unstable and stops resetting the counter, it will eventually reach zero and reset the processor to provide a way to recover the computer if the error was a transient one. The Fprime reference app does not include a watchdog because it is specific to a platform. What it does provide is an output port on the The As for restarting the system, that would be tied to whether or not you thought the system could just restart the application successfully or if it needs to power cycle itself to clear any issues. If a processor is in a bad state, just restarting the application may not clear the condition that caused the FATAL. The reference application doesn't attempt to do anything other than generate a core file. If you do decided you want to restart the application, it would have to be tied into the implementation of the FATAL handler component. |
Beta Was this translation helpful? Give feedback.
@sheershak-agarwal Watchdogs are dependent on the system you are designing. It is commonly a hardware timer that counts down and will reset the processor if it reaches zero. The software periodically resets the count of the watchdog so the countdown never reaches zero. The idea is that if the software goes unstable and stops resetting the counter, it will eventually reach zero and reset the processor to provide a way to recover the computer if the error was a transient one.
The Fprime reference app does not include a watchdog because it is specific to a platform. What it does provide is an output port on the
Health
component. A particular project is expected to implement a component conne…