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.
However, on the Teensy 4.1, the board kept resetting. This problem was fixed using the settings below:
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?
Code:
//-----------------------------------------------------------------------------
WDT_timings_t config;
config.trigger = [U]5[/U]; /* in seconds, 0->128 */
config.timeout = [U]10[/U]; /* 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 = [U]10[/U]; /* in seconds, 0->128 */
config.timeout = [U]20[/U]; /* 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?