Use the Arduino Chip of LattePanda as a System Watchdog


Have you ever faced this situation? When the operating system of the mainboard unexpectedly hangs or crashes, you're left with no choice but to manually reboot. This becomes cumbersome if you're traveling, or if the board is placed in an inaccessible location. What if the system could automatically reboot during such hiccups? This is where a Watchdog comes into play.


Thanks to the integration of an Arduino chip in the LattePanda board, we have a solution. Since the Arduino operates independently of the main system, it remains functional even if the operating system freezes or crashes. Hence, the onboard Arduino chip can serve as a Watchdog for the LattePanda.


This article provides a guide on how to set this up, complete with the sample code: