I’m having a problem utilizing the watchdog timer.
I’ve enabled the GHI watchdog time, but purposely did not call the reset function to see if it would work but the ChipworkX never restarted. See code below I used to enable and set the watchdog timeout.
I then ran it in debug mode in Visual Studio and got the following error:
A first chance exception of type ‘System.InvalidOperationException’ occurred in GHIElectronics.NETMF.Hardware.dll
An unhandled exception of type ‘System.InvalidOperationException’ occurred in GHIElectronics.NETMF.Hardware.dll
If I then stop debugging and reset the device (without debugging), the program seems to start up fine.
However the watchdog timer never seems to have any effect.
Gus: There doesn’t appear to be anyway to set it other than with the enable function.
More importantly is that I purposely never call the ResetCounter function to see if it works, but the device never re-boots. Am I understanding it correctly? Once I’ve enabled it with a timeout of 5000 (5 sec) and never call the ResetCounter function the device should re-boot after about 5 seconds right?