Hello!
I´m using a Tiva TM4C123GXL Launchpad, and I want to disable the watchdog timer 0, but when I write a value on WDTLOCK register, it doesn´t disable the watchdog. Can somebody tell me what I have to do?
Thanks
Cesar Ulises
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello!
I´m using a Tiva TM4C123GXL Launchpad, and I want to disable the watchdog timer 0, but when I write a value on WDTLOCK register, it doesn´t disable the watchdog. Can somebody tell me what I have to do?
Thanks
Cesar Ulises
Hello Cesar
The WDTLOCK register is to prevent a write to the WDT Registers. Also once a WDT Timer is enabled it cannot be disabled. The only way to disable it is to Reset the WDT by using SysCtlPeripheralReset Function call.
Regards
Amit
Hello Amit
Thanks for the information!
I have another question: ¿Is there any way to "feed the dog"?
Thanks!
Cesar Ulises
Hello Cesar,
What exactly do you want to do with the WDT? The question you phrased rather does not give me any details to give the most appropriate answer...
Regards
Amit
Hello Amit
I have a program that turns on the red LED, turns on blue LED each 20 ms (indicating that a task was completed), turns off the blue LED and turns on the red LED again. This process is repeated indefinitely.
The program works fine but, when a certain amount of time passes, the program get stuck unexpectedly.
I think that the problem is the watchdog. What do you think?
Thanks
Cesar Ulises
Hello Cesar,
Where does it get stuck? This is what needs to be debugged
How have you configured the WDT?
1. Is the Interrupt type NMI or a normal Interrupt
2. In either case, NMI or Interrupt, is the application code clearing the Interrupt, If not then it would be stuck in the Interrupt handler (my guess w/o a code post is that this is where the code should be stuck)
Regards
Amit