This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How can I stop reset in WDT_IRQHandler?

Hi, I need to use watchdog as a timer, and I can enter WDT_IRQHandler for now. Can I stop watchdog reset the system in this IRQHandler? So I can counting like a timer.

Thank you for help and best regards, :) Aaron.

Parents
  • Have you seen section 19.1.3 in the nRF51 Reference Manual?

    A TIMEOUT event will automatically lead to a watchdog reset equivalent to a system reset, see Chapter 11 “Power management (POWER)” on page 40. If the watchdog is configured to generate an interrupt on the TIMEOUT event, the watchdog reset will be postponed with two 32.768 kHz clock cycles after the TIMEOUT event has been generated. Once the TIMEOUT event has been generated, the impending watchdog reset will always be effectuated.

    As you can see from the above, there is no way to avoid the reset once the watchdog has timed out.

Reply
  • Have you seen section 19.1.3 in the nRF51 Reference Manual?

    A TIMEOUT event will automatically lead to a watchdog reset equivalent to a system reset, see Chapter 11 “Power management (POWER)” on page 40. If the watchdog is configured to generate an interrupt on the TIMEOUT event, the watchdog reset will be postponed with two 32.768 kHz clock cycles after the TIMEOUT event has been generated. Once the TIMEOUT event has been generated, the impending watchdog reset will always be effectuated.

    As you can see from the above, there is no way to avoid the reset once the watchdog has timed out.

Children
No Data
Related