Replies: 2 comments 7 replies
-
Which chip are you using? Several chips have hardware-settable watchdog timers, which are set in the fuses. For instance the SAMD21 and SAMD51 have such hardware watchdog timers. There is an enable bit in the fuses, and another set of bits to set the watchdog interval. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Bootloader won't play any part in watchdog, application should start the watchdog and reset into bootloader should there is any issue. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, when something goes wrong with the application, the board really relies on the ability to double-tap the reset button, or a user button with #294. We have a deeply embedded application, where it would require sending a tech to the field and unscrewing a bunch of screws and pressing buttons and doing some kind of dance to get things to work.
So... any thoughts on how to make the system really foolproof, and virtually never require any button presses of any kind, and always provide the ability get back to the bootloader for hands-off remote system updating?
Here are my thoughts:
In the bootloader, configure the watchdog.
It's possible that a watchdog event is a transient thing, and the system will continue as normal if allowed to boot back to the application. Not great, but possible. So, keep a watchdog trigger count. Watchdog trigger count (WTC) is reset by the application when it's in a known good state.
That way, if things go sideways, the bootlaoder will always come back up automatically.
Another option would be to load some known-good backup firmware on WTC >=2.
Beta Was this translation helpful? Give feedback.
All reactions