SDK 14.2
I try to use the watchdog using this code
static void nrf_wdt_event_handler(void)
{
NRF_LOG_INFO(">>> nrf_wdt_event_handler")
}
int main(void)
{
...
nrf_drv_wdt_config_t wdtConfig;
wdtConfig.reload_value= 3*32768;
wdtConfig.behaviour= NRF_WDT_BEHAVIOUR_PAUSE_SLEEP_HALT;
wdtConfig.interrupt_priority=7;
APP_ERROR_CHECK( nrf_drv_wdt_init(&wdtConfig, nrf_wdt_event_handler) );
APP_ERROR_CHECK( nrf_drv_wdt_channel_alloc(NRF_WDT_RR0));
nrf_drv_wdt_enable();
...
In my 1sec timer routine I stop calling nrf_drv_wdt_channel_feed(NRF_WDT_RR0); after 19 seconds.
But the expected watchdog timeout never happens.
Why?