Hi, I am testing watchdog function in 14681, but after check the UM-B-044 for the setting , I can't get it to work,
I add dg_configWDOG_RESET_VALUE 0xFF to custom_config_qspi.h,
add id = sys_watchdog_register(false); to start up code,
but when when I add a for(;;) before calling sys_watchdog_notify(id); to test it, the 14681 just stop and no reset action is preformed, am I missing some setting that need to done? thank you.
Device:
Hi andoridfm2013,
All the default configurations of SDK are placed into the sdk/config/bsp_defaults.h path and all the custom configurations are placed into the /config/custom_config_qspi.h path. The #define dg_configWDOG_RESET_VALUE 0xFF in the custom_config_qspi.h header file is needless, because this value is by default configured. Regarding your problem, you should explicitly enable the watchdog service which by default is disabled. To do this, you should define #define dg_configUSE_WDOG 1 macro in custom_config_qspi.h. According to my testing, I didn't notice any issue with regards to WDOG service.
Thanks, PM_Dialog