Hi,
I'm trying to configure the watchdog timer for my application but I am running into some "weird" things.
Is it correct that the reload value cannot be set once the wdt is started? This seems to be my experience and this also also what I have read on the devzone.
Is it normal that a "nrfjprog --recover" is not enough to reset the watch dog and change the value? Meaning if I set the wdt to a certain value after which I perform the recover command and then reprogram the firmware in SES the reload value remains unchanged. Reprogramming the firmware in SES is not able to change the value of the reload value.
The only way to change the reload value seems to be to reflash the device with different firmware with different wdt settings and to put the device in power off mode (sd_power_system_off();). I assume power cycling would work as well but I imagine this is difficult in many battery powered applications.
So long story short: It seems to be impossible to change the reload value of the wdt once it is started and it also seems to be impossible to disable the watchdog timer once it is started. This makes it kind of tricky to get it to work with the dfu bootloader for example (assuming people do not want to change the bootloader I guess). Is there a recommended workaround for this issue?
Also somewhat related, making changes to the sdk_config.h file does not seem to do anything sometimes.
I am using the NRF52840 with the 15.2 sdk.
Regards,
Michiel