Hi,
How do i configure my watchdog timer to more than a minute??
And do i feed my watchdog instead of using buttons like used in the example !!
Hi,
How do i configure my watchdog timer to more than a minute??
And do i feed my watchdog instead of using buttons like used in the example !!
well what function are you using to configure the timeout now? Either the function or the structure you give it will have the timeout as a paramter. The device supports up to about 36 hours.
Set up a normal app_timer to feed the watchdog. That's sort of the point, if the code gets into a loop or a hardfault, the timer won't feed the watchdog and it'll reset.
I managed to increase the watchdog timeout to 1 minute and 15 seconds in the WDT Example by setting WDT_CONFIG_RELOAD_VALUE to 75000 in the sdk_config.h file.
Regarding reloading the watchdog without using the button, putting the watchdog in the main loop might be a smart choice, since the timer might still run in the background, even though the program is stuck. This case goes more into the details about it.
Best regards,
Simon
Thanks Simon,
my application works perfectly fine.