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

how can i close the watchdog?

hi!,everyone: i found if i open the watchdog in the code, it reset the system according to the register CRV, can i close it before it reset the system?

Parents
  • Hi,

    If you are wondering about the possibility of disabling (in run-time) the watchdog after it has been started, that is not possible. The purpose of a watchdog is to ensure that your program continuously feeds the watchdog, to verify that your program runs as it should. Disabling it run-time is therefore a bad idea, and I would rather suggest integrating the watchdog fully into your program.

    The only way to reset/disable the watchdog is to let it timeout and cause a system reset.

    Cheers, Håkon

  • Another troubling scenario:
    FW Version 1 assumes that feed always happen every 1 second.
    FW Version 2 is more complex and feed can happen only once in 2 seconds.

    After FW upgrade (i.e. OTA) you will always get a WDT event - since CRV and all other workarounds are locked for changing.

    If you are so afraid of mistakenly disabling the WDT, decide that disable value is 0xBad1dea or something, but give the power to the developers!

Reply
  • Another troubling scenario:
    FW Version 1 assumes that feed always happen every 1 second.
    FW Version 2 is more complex and feed can happen only once in 2 seconds.

    After FW upgrade (i.e. OTA) you will always get a WDT event - since CRV and all other workarounds are locked for changing.

    If you are so afraid of mistakenly disabling the WDT, decide that disable value is 0xBad1dea or something, but give the power to the developers!

Children
Related