Home  >  Support  >  Support Forum  >  How can I disable the watchdog in Dynamic C 10.72 ? ( Rabbit 4300)
Notice! We've recently migrated to using a new forum, we hope you enjoy it. If you are an existing member and this is your first time visiting our new forum, please reset your password to be able to sign in.
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 in Rabbit by fabrice New to the Community (2 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 by MargaretK Veteran of the Digi Community (445 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:

Disable_HW_WDT()

and

Enable_HW_WDT()

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 by trooper2 Veteran of the Digi Community (328 points)
Ok. Thanks you very much !
Contact a Digi expert and get started today! CONTACT US
...