This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM623: AM623 watchdog

Part Number: AM623

1、使用一下代码

ret=ioctl(fd,WDIOC_GETTIMEOUT,&timeout);

printf("TIMEOUT is %d s\n",timeout);

可以获得 timeout=60

2、但使用下列

ret=ioctl(fd,WDIOC_SETTIMEOUT,&timeout);

无法设置看门狗时间

3、使用这两个命令

ioctl(fd, WDIOC_KEEPALIVE, &timeout);

ret = write(fd, &timeout, 1);

都无法更新看门狗,看门狗会在30s后复位

我的感觉是看门狗只能读取信息,无法写入信息。这是为什么呢?