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?
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?
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
I really don't see the reason for this.
If I have my reasons to disable, or change the CSV during run (say, only in a debug scenario in order to measuring a steady current consumption of the product) - why wouldn't you let me?
Do you think I am that bad programmer that I cannot be held responsible for setting and clearing the WDT?
Why is it optional in the first place? Just make us all use your design!
I really don't see the reason for this.
If I have my reasons to disable, or change the CSV during run (say, only in a debug scenario in order to measuring a steady current consumption of the product) - why wouldn't you let me?
Do you think I am that bad programmer that I cannot be held responsible for setting and clearing the WDT?
Why is it optional in the first place? Just make us all use your design!