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

**URL:** <https://forums.digi.com/t/how-can-i-disable-the-watchdog-in-dynamic-c-10-72-rabbit-4300/13163>\
**Category:** Rabbit\
**Tags:** watchdog, timeout, dynamic, virtual, rabbit\
**Created:** [June 18, 2014, 5:39am UTC](https://forums.digi.com/t/how-can-i-disable-the-watchdog-in-dynamic-c-10-72-rabbit-4300/13163 "2014-06-18T05:39:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabrice](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fabrice](https://forums.digi.com/u/fabrice)\
**Post date:** [June 18, 2014, 5:39am UTC](https://forums.digi.com/t/how-can-i-disable-the-watchdog-in-dynamic-c-10-72-rabbit-4300/13163/1 "2014-06-18T05:39:55Z")

</div>



---

<div class="post-metadata">

**Author:** ![MargaretK](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@MargaretK](https://forums.digi.com/u/MargaretK)\
**Post date:** [June 18, 2014, 11:17am UTC](https://forums.digi.com/t/how-can-i-disable-the-watchdog-in-dynamic-c-10-72-rabbit-4300/13163/2 "2014-06-18T11:17:03Z")

</div>

The following function can be used to disable the software watchdog:  
rn\_enable\_wdt

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

---

<div class="post-metadata">

**Author:** ![fabrice](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fabrice](https://forums.digi.com/u/fabrice)\
**Post date:** [June 19, 2014, 2:57am UTC](https://forums.digi.com/t/how-can-i-disable-the-watchdog-in-dynamic-c-10-72-rabbit-4300/13163/3 "2014-06-19T02:57:37Z")

</div>

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![trooper2](https://avatars.discourse-cdn.com/v4/letter/t/edb3f5/32.png) [@trooper2](https://forums.digi.com/u/trooper2)\
**Post date:** [June 19, 2014, 12:13pm UTC](https://forums.digi.com/t/how-can-i-disable-the-watchdog-in-dynamic-c-10-72-rabbit-4300/13163/4 "2014-06-19T12:13:24Z")

</div>

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 est\_osc.c. The comments at the top of this program have good information. Please read.

---

<div class="post-metadata">

**Author:** ![fabrice](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fabrice](https://forums.digi.com/u/fabrice)\
**Post date:** [June 20, 2014, 5:34am UTC](https://forums.digi.com/t/how-can-i-disable-the-watchdog-in-dynamic-c-10-72-rabbit-4300/13163/5 "2014-06-20T05:34:11Z")

</div>

Ok. Thanks you very much !
