Does someone know what the max time i can set a watchdog for?
I set
GHI.Premium.Hardware.LowLevel.Watchdog.Enable(60000);
and am getting an error
Exception System.ArgumentOutOfRangeException - CLR_E_OUT_OF_RANGE (1)
#### Message:
#### GHI.Premium.Hardware.LowLevel.Watchdog::Enable [IP: 0000] ####
#### SASS_Field_Data_Logger.Program::ProgramStarted [IP: 0199] ####
#### SASS_Field_Data_Logger.Program::Main [IP: 0015] ####
I tried to use the function
var wdtime = GHI.Premium.Hardware.LowLevel.Watchdog.MAX_TIMEOUT;
and it returns 16777.
is that true that the watchdog can only be 16.7 seconds?
I tried to use the watchdog once but finally skipped it because deploy takes more than 16 seconds. I am wondering if this ‘slow’ deploy is normal behavior or does it indicate something wrong with my development system.
mine sometimes takes longer so i comment it out until i am ready to deploy. then i reflash the firmware and deploy with the watchdog enabled.
that way it is active.
at 16 seconds it is near impossible to debug without it rebooting
@ MikeCormier - I enable the watch dog at the end of my boot code section, so unlimited time available before this for initialization all stuff. And for debugging I just put the part in comment, it’s not possible to step in code with the watch dog on.
@ MikeCormier - Ok… thats my approach too. I need to do some more test because i did a deployment from my laptop last Friday and that went much faster as normally experienced on my desktop development system.