I'm using RTC to wakeup every 500ms,
I have Watchdog enabled but after a while (about half.. or an hour...) it will not wakeup anymore and watchdog will not reset.
I measured the current on that hang state and it consumes about 2.90uA (this matches the expected 1.5uA RTC + 1.5uA Watchdog consumes )
I was expecting, whatever happen, that Watchdog will reset the MCU.
Some more details:
- I'm not using any SoftApp
- I'm using internal LFRC
- It is feeding the Watchdog before going to sleep
- I tested with an hardware fault, the Watchdog works
Is there something that could make the Watchdog not work ? and RTC stop to work?
I found some similar topics:
https://devzone.nordicsemi.com/f/nordic-q-a/14321/wdt-halts-rtc-after-nvic_systemreset/54658
https://devzone.nordicsemi.com/f/nordic-q-a/51559/nrf52-wdt-lfclk-sourcing
Some more details:
Every time I go to sleep I set the LFCLK: nrf_clock_task_trigger( NRF_CLOCK_TASK_LFCLKSTART );
I init the RTC before go to sleep and uninit it after return.
I'm using nrf_pwr_mgmt_run(); to enter in sleep.