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
thank you very much i thinks you are right. if WDT can be disabled when it is running, program maybe run to disable WDT sometime, so it can't make sure the program gonging currately.
cheers, lei :)
thank you very much i thinks you are right. if WDT can be disabled when it is running, program maybe run to disable WDT sometime, so it can't make sure the program gonging currately.
cheers, lei :)