Watchdog is a timer mechanism that starts timing immediately after startup. The system or software must regularly communicate with the watchdog, commonly known as "feeding the dog", to reset the timer. This process is repeated to confirm the normal operation of the system and software. If the "feeding dog" operation is not completed within the specified time, the watchdog will timeout and trigger a reset signal, causing the main controller to restart and help the system get out of the stuck state.
Watchdog is enabled by default. For more information, please go to the Programming Guide
#View nodes
ls -l /dev/watchdog
#Write any content (except for uppercase letter 'V'), turn on the watchdog - feed the dog every 44 seconds
echo A > /dev/watchdog
#Enable watchdog - the kernel feeds the dog every 21 seconds
echo V > /dev/watchdog