Boron Hardware watchdog

I'm trying to use the hardware watchdog on the Boron. Seems like it should be simple, but...
In setup I have:
Watchdog.init(WatchdogConfiguration()
.capabilities(WatchdogCap::NOTIFY | WatchdogCap::DEBUG_RUNNING)
.timeout(5min));
Watchdog.start();

in the loop I put the boron to sleep for 30 minutes and reboot on waking with:
SystemSleepConfiguration config;
config.mode(SystemSleepMode::ULTRA_LOW_POWER)
.duration(30min);
System.sleep(config);
//when it wakes it does a system reset.
System.reset(RESET_NO_WAIT);

It seems that the unit should reboot every 5 minutes when the watchdog runs out but it only reboots every 30 min. What am I doing wrong?
john

That should work on the Boron. It will not work on the P2, Photon 2, and Muon because using notify prevents automatic reset.

What happens if you remove the capabilities line and use the default settings?

Removing the capabilities line solved the problem.
That suggests that either the documentation isn't quite correct or else I just don't understand the documentation. Either way, thanks for suggesting that.
john

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.