Watchdog Timer Test - Advantech RSB-4220 User Manual

3.5" sbc with ti sitara am3352 cortex a8 single-core 1ghz high-performance processor
Hide thumbs Also See for RSB-4220:
Table of Contents

Advertisement

2.5.11

Watchdog Timer Test

RSB-4220 features an external watchdog IC that uses TI msp430g2202 to reset the
system when exceptions occur.
The valid watchdog timeout value is between 1 and 5000 seconds, and the default
timeout value is 60 seconds.
Run the AutoRun_WTD program to test this function.
#./AutoRun_WTD n
Here n denotes the feed time, meaning the test program will feed the watchdog every
n seconds.
In the AutoRun_WTD test program, first obtain the current timeout value, then set the
timeout value to 10 seconds.
The program will feed the watchdog every n seconds. Here, n is determined by the
parameters. If the feed time is longer than 10 seconds, the board will reboot after 10
seconds when the AutoRun_WTD program is initiated. If the watchdog time is less
than 10 seconds, the board will not reboot because the program will feed the watch-
dog every 10 seconds.
To test the watchdog, run the command below. The board will reboot after 10 sec-
onds.
root@am335x-adv:/unit_tests# ./AutoRun_WTD 15
Obtain the timeout value from the driver: timeout = 60 seconds
Set the timeout value to 10 seconds.
Obtain the timeout value from the driver again: timeout = 10 seconds
The parameter setting is successful and the watchdog is enabled.
Feed the watchdog every 15 seconds.
Feed the watchdog!
After rebooting the system, users will encounter the following boot messages:
U-Boot 2015.07-svn295 (Aug 18 2016 - 14:29:39 +0800)
Watchdog enabled
I2C: ready
DRAM: 512 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
SF: Detected W25Q32BV with page size 256 Bytes, erase size 4 KiB, total 4 MiB
Net: cpsw, usb_ether
Hit any key to stop autoboot: 0
switch to partitions #0, OK
RSB-4220 User Manual
32

Advertisement

Table of Contents
loading

Table of Contents