DA14681 watch dog setting

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
andoridfm2013
Offline
Last seen:5 months 2 weeks ago
加入:2017-04-07 05:11
DA14681 watch dog setting

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:
PM_Dialog
Offline
Last seen:2 days 22 hours ago
工作人员
加入:2018-02-08 11:03

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