I am experiencing system resets caused by the WDT (Watchdog Timer) while using the nrf52832。
This is my WDT configuration code:
void system_wdt_init(void)
{
uint32_t err_code = NRF_SUCCESS;
nrf_drv_wdt_config_t config = NRF_DRV_WDT_DEAFULT_CONFIG;
config.behaviour = NRF_WDT_BEHAVIOUR_PAUSE_SLEEP_HALT;
err_code = nrf_drv_wdt_init(&config, wdt_event_handler);
APP_ERROR_CHECK(err_code);
err_code = nrf_drv_wdt_channel_alloc(&m_channel_id);
APP_ERROR_CHECK(err_code);
nrf_drv_wdt_enable();
}
I have set the WDT to stop during system sleep, but my system still gets reset by the WDT, though it takes a very long time—approximately 2 hours. Then the system gets reset by the WDT. My system uses an RTC, and I use RTT to print logs. During this period, the J-Link remains connected. I suspect whether the WDT reset is caused by the J-Link RTT or the RTC. I have already performed the feed dog operation immediately upon system wake-up.