BSoM Internal Watchdog Sleep Question


I am testing out the internal Hardware Watchdog on 5.3.1 on the B402 with sleep mode.

In my code, I set the watchdog to timeout after 30s and setup a sleep mode for 40s. According to the docs, the watchdog shoould automatically stop before sleep, but that is not the case in my code. The device resets before the sleep ends. I have tried this with and without WatchdogCap::SLEEP_RUNNING, getting the same result.

I have also tried to stop and reconfigure the watchdog with a longer timeout, but this doesn’t seem to work according to the Watchdog Class source code.

I have my example project here:

Am I doing something wrong here?