The Hardware Watchdog
Most chip vendors include an isolated RTL block known as a “Watchdog Timer” in a MCU. This peripheral is comprised of a counter which decrements automatically by the hardware each clock cycle. When the count reaches zero, the hardware will automatically reset the device.
The peripheral is typically disabled by default and it’s the programmers responsibility to configure and enable it in software. Once enabled, the system software needs to reset the counter periodically to prevent the device from rebooting. This operation is usually referred to as “feeding”, “kicking”, or “patting” the dog. The rationale here is if software is unable to reset the watchdog counter, the system is not running as expected and needs to be reset to get back to a sane state.
Rources: https://interrupt.memfault.com/blog/firmware-watchdog-best-practices#the-hardware-watchdog
More resource:
https://betterembsw.blogspot.com/2014/05/proper-watchdog-timer-use.html
4. https://www.ablic.com/en/semicon/products/automotive/automotive-watchdog-timer/intro/
Không có nhận xét nào:
Đăng nhận xét