Unable to change WDT reload value in FreeRTOS example.

Hi,

We had WDT added to FreeRTOS application with 24 hours timeout. This was working fine. But we tried to change it to 2 hours timeout and it is not working. It is still taking a 24 hours to reset the system with WDT. What could be the issue? I can see that nrf_wdt_started() returns true on reset in debugging. 

Tried the method mentioned in this thread. But still not working. Tried to change the reload value to 20 seconds and still not working. Any known workaround for this? How can I change it to a different reload value and release for new OTA firmware updates?


Thanks,
Vishnu Pradeep

Parents Reply
  • Yes correct. We added WDT as a fail safe mechanism to restart the system if there is no BLE events for 24 hours. Later we tried to reduce the preload value to 2 hours and tried OTA and realised WDT is not resetting system after 2 hours, but only after 24 hours. Then started digging.

    So the problem is WDT is not getting disabled with sd_nvic_systemreset. That is why I tried with sd_power_system_off and then reset. This time it was able to change the preload value. Only a WDT reset or a POR can only disable the WDT and thereby reconfigure the WDT, if my understanding and experimentation is correct.

    Even we didn't like the workaround as we don't know what other things can break because of this. Can you try it on your side and check if it is working without this workaround. 


Children
Related