Watchdog timer control sample program
・The following files are created by executing make.
./wdt, ./wdt.o
Example) A reset occurs due to the timeout of the watchdog timer after tick count of ten times approximately once every second.
* If you execute without arguments, WDT stop.
$ ./wdt 10
|_ time : wdt timer count[seconds]
* In the BX-220D, BX-830, BX-T1000, CPS-BXC200, BX-U200 Series, specify the execution option as shown below.
$ ./wdt 1 10
| |_ time : wdt timer count[seconds]
|___ mode : 0 none,
1 Reset,
2 PO2 Alarm Out(Signal High),
3 PO2 Alarm Out(Signal Low),
4 Power Button action
Note)
There is about +/- 2 timeout tolerance by WDT.
When setting for 30 seconds, set the WDT retrigger before 28 seconds elapse.
If there is no retrigger, the system will be reset by WDT timeout.
System reset due to WDT time-up does not guarantee the data being written to Disk.