I am having trouble converting millisecond to the watchdog timeout value when using MCUXpresso watchdog driver.
Please validate my math.
One tick of the watchdog = 1 ms. With the given configuration
- Watchdog clock = kWDOG_LpoClockSource = 1KHz
- Watchdog prescaler = 1
Therefore when I setup the watchdog I do
wdog_config_t config;
WDOG_GetDefaultConfig(&config);
config.timeoutValue = 1000;
This should make the watchdog timeout in 1 second but it seem to be timing out alot sooner.