Hi
For your device and the watchdog clocked from LPO:
// Watchdog enable and configure macro
//
#define ENABLE_WATCHDOG_TIMEOUT_SECONDS(time) \
UNLOCK_WDOG();\
WDOG_TOVALL = (time * 1000/5);\
WDOG_TOVALH = 0;\
WDOG_STCTRLH = (WDOG_STCTRLH_STNDBYEN | WDOG_STCTRLH_WAITEN | WDOG_STCTRLH_STOPEN | WDOG_STCTRLH_WDOGEN)
In code use this for 1 second timeout
ENABLE_WATCHDOG_TIMEOUT_SECONDS(1); // watchdog enabled to generate reset on 1s timeout (no further updates allowed)
From open source uTasker project with Kinetis simulation - for faster learning and faster developments at https://github.com/uTasker/uTasker-Kinetis
Regards
Mark
[uTasker project developer for Kinetis and i.MX RT]
Contact me by personal message or on the uTasker web site to discuss professional training, solutions to problems or product development requirements