AAEON AQ7-IMX6 User Manual

Page 37

Advertising
background image

Q s e v e n M o d u l e

A Q 7 - I M X 6

Chapter 3 Technical Note 3-19

3.15 Watchdog Test

In Linux OS serial console, enter command:

command 1: cd /unit_tests/

command 2: ./wdt_driver_test.out 10 2 0

• Program will kick watchdog every 2 sec

• Will enable watchdog with 10 sec timeout

• When we stop the program with Ctrl+C board will reset after

approximately 12 seconds

Usage: wdt_driver_test <timeout> <sleep> <test>

timeout: value in seconds to cause wdt timeout/reset

sleep: value in seconds to service the wdt

test: 0 - Service wdt with ioctl(), 1 - with write()

Advertising