Main Site Documentation

Watchdog can't be disable?


#1

I call this function : GHI.Premium.Hardware.LowLevel.Watchdog.Disable();
throw NotSupportedException
Why?


#2

G120, version 4.2.11.2


#3

I believe that once a watchdog timer has been started it can not be stopped. Stopping is not supported. it used to be referenced in release notes.

Normally, you would not want to stop a watchdog.


#4

Depends on the implementation, but for good implementations this is usually true.


#5

If you really want to disable it check MCU datasheet. You should be able to do that by manipulating the correct register directly.


#6

public static void Main()
{
GHI.Premium.Hardware.LowLevel.Watchdog.Enable(1000*15);

 const int interval = 1000 * 5;
 while (true)
{
    ....

     GHI.Premium.Hardware.LowLevel.Watchdog.ResetCounter();
     Thread.Sleep(interval);
}

}

another thread:
private static void UpdateFireware()
{
SystemUpdate.Initialize(/SystemUpdate.SystemUpdateType.Config |
SystemUpdate.SystemUpdateType.Firmware |
/
SystemUpdate.SystemUpdateType.Deployment);

   byte[] data = MicorServiceWrapper.GetFireware("E3000");

  SystemUpdate.Load(SystemUpdate.SystemUpdateType.Deployment, data, data.Length);

  GHI.Premium.Hardware.LowLevel.Watchdog.Disable();
   SystemUpdate.FlashAndReset();

}


#7

I think the hardware does not support disable. Which is normal for many micros