Hello,
I wanted to implement WDT resets when my application hangs. I am working on the advertiser code, what I observe was when I implement WDT driver in SDK 15.2 examples/ble_peripheral/ble_app_beacon, the WDT would cause a watchdog reset initially, then would work fine. In the other code, in which I tried implementing the same WDT driver, it constantly reset the WDT, as seen in the picture below.
This is what I have added in both of the codes for WDT.
I also tried using registers
and with this approach
I got the same result, In the last two approaches, I was not sure where to place watchdog feed. Also I tried changing the timeout value but, it didn't made any changes, WDT was getting reset continuously. 1)Can you please provide me with the reason for WDT getting reset continuously, I wanted to make sure it only get reset when the application hangs. 2) I have doubt about where should we exactly place the watchdog feed. 3) I tried increasing the timeout but no changes.
Thank you