WATCHDOG TIMER not resetting

16 Feb 2011

I have a program sending data to PACHUBE; I am using the WATCHDOG TIMER from Cookbook.

The program runs for several hours and then hangs. The #4 LED is on( the power LED is also on); the program usually resets every few minutes so the #4 LED is always on. The WATCHDOG TIMER must be running since there are resets going on but what will make it stop resetting???? wdt.kick is set for 60 seconds; after more than 45 minutes there is no reset

The program was developed from the mbed PACHUBE Cookbook example and the WATCHDOG TIMER is also from mbed Cookbook.

I have another mbed available if it could be a hardware problem.

Help appreciated.

Bill

17 Feb 2011

Found the problem!!!

I copied the Watchdog from the cookbook including the simulated reset. I want to use the simulated reset because of the way the data is sent to the mbed; however I found out that the count must also be reset to zero within the main while loop after sucessfull retrival of data.