I am running the same code on a Teensy 4.0 and a Teensy 4.1. The timings on the Teensy 4.0 are below and they work flawlessly.
Code:
//-----------------------------------------------------------------------------
WDT_timings_t config;
config.trigger = 5; /* in seconds, 0->128 */
config.timeout = 10; /* in seconds, 0->128 */
config.callback = myCallback;
wdt.begin(config);
//-----------------------------------------------------------------------------
However, on the Teensy 4.1, the board kept resetting. This problem was fixed using the settings below:
Code:
//-----------------------------------------------------------------------------
WDT_timings_t config;
config.trigger = 10; /* in seconds, 0->128 */
config.timeout = 20; /* in seconds, 0->128 */
config.callback = myCallback;
wdt.begin(config);
//-----------------------------------------------------------------------------
Why would these settings need to be different?
Watchdog processes are very complicated to me so I do not understand why the same exact code would require different settings?