slaclab / pabv_control

BSD 3-Clause "New" or "Revised" License
2 stars 5 forks source link

Watchdog #71

Closed marty-pmr closed 4 years ago

marty-pmr commented 4 years ago

Can we implement the internal Nano watchdog?

mwittgen commented 4 years ago

@marty-pmr @bungernut @slacrherbst here's an implementation of a watchdog timer, triggering if not cleared after 64ms. https://github.com/slaclab/pabv_control/tree/watchdog_timer It used this library here: https://github.com/javos65/WDTZero I tested the code and the watchdog timer works, no guarantee on other side effects, like GUI behavior, or endless restart looping.

mwittgen commented 4 years ago

Implemented with the internal SAMD21 timer watchdog