This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

WDT behavior during reset and getting the countdown current value

Hello,

I am trying to figure out an issue that is happening in my project. I am using the NRF52840 chip and I configured the WDT correctly with WDT-> CRV = 10 * 32768 (the criteria for reset is 10 seconds). 
I made a special HW that allows me to simulate an RTC interrupt which will cause the CPU to restart. In my project, I am resetting the WDT every 3 seconds and my question is if the following scenario could be possible.

Assuming my project is running properly and the last reset of the WDT was 2 seconds ago. At this time I simulate an RTC interrupt and the CPU is restarting. Will the WDT would be reset or after the restart, the countdown will accumulate the 2 seconds that have passed since the RTC INT (before I reach the point which I am initializing the WDT)?

Also, I am struggling to print the current countdown value of the WDT, I read the documentation but I couldn't get to the current value yet. Is there a way to print it?


I hope my question was clear.

  • Hi,

    The reset behavior depends on the reset source. As you can see from the Reset behavior table, WDT is not reset when the chip is reset by a soft reset or reset from CPU lockup.

    Also, I am struggling to print the current countdown value of the WDT, I read the documentation but I couldn't get to the current value yet. Is there a way to print it?

    No, I can't see any registers in the product specification that you can use the read the current countdown value.

    Best regards,
    Jørgen

Related