Watchdog automatically fed after wakeup?

When configuring the watchdog to pause in sleep mode, is it automatically fed after a wakeup from power_manage()?

Is the feed required in this loop, or can I leave it out and rely on the WDT to be fed when app_sched_execute starts?

for (;;) {
  power_manage();
  nrf_drv_wdt_feed();
  app_sched_execute();
}
Parents Reply
  • Heyo and thank you. I have a follow-up question:

    I did it the way we proposed, but the chip was waking up for advertising and heartbeats by itself (as it is supposed to do).

    This caused the CPU to run and the watchdog to tick.

    `power_manage` did not return though, so the watchdog was never fed.

    So, by just maintaining a BLE connection, without writing any data, the watchdog eventually overran.

    What would be your solution to this?

    I solved this by hooking on to radio events and feeding the watchdog there.

    Thanks!

Children
Related