Home/Support/Support Forum/How can I disable the watchdog in Dynamic C 10.72 ? ( Rabbit 4300)
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

How can I disable the watchdog in Dynamic C 10.72 ? ( Rabbit 4300)

0 votes
asked Jun 18, 2014 in Rabbit by fabrice New to the Community (4 points)

Please log in or register to answer this question.

2 Answers

0 votes
The following function can be used to disable the software watchdog:
rn_enable_wdt <RNET.LIB>

SYNTAX: int rn_enable_wdt(int handle, int wdttype);

DESCRIPTION: Enables the hardware and/or software watchdog timers on
a device. The device microcode will keep the hardware
watchdog timer updated but will hard reset if time expires.
Hardware watchdog cannot be disabled except by a device
hard reset. Software watchdog timer must be updated by
controller code. The device will soft reset if the timeout
expires, previously set by rn_sw_wdt().

This function will first check device information for
valid device connection.

PARAMETER1: Address index to device information. Use rn_device()
or rn_find() to establish handle.
PARAMETER2: 0=enables both hardware and software watchdog timers.
1=enables hardware watchdog timer.
2=enables software watchdog timer.

RETURN VALUE: -1, device information indicates no connection
or status byte from previous command.

SEE ALSO: rn_hitwd, rn_sw_wdt
answered Jun 18, 2014 by MargaretK Veteran of the Digi Community (545 points)
Thanks for your help.
0 votes
Please ignore the previous answer. It is for RabbitNet devices.

You can disable and re-enable the hardware watchdog timer with the two functions:




See the sample program samples\sysclock\test_osc.c. The comments at the top of this program have good information. Please read.
answered Jun 19, 2014 by trooper2 Veteran of the Digi Community (591 points)
Ok. Thanks you very much !