Hi,
I want to reset my microcontroller if my firmware code is getting stuck. Can you please help me in implementing this.
Currently I am stropping the WDT using : WDTCTL = WDTPW | WDTHOLD;
Regards
Abhisek
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.
Hi,
I want to reset my microcontroller if my firmware code is getting stuck. Can you please help me in implementing this.
Currently I am stropping the WDT using : WDTCTL = WDTPW | WDTHOLD;
Regards
Abhisek
Hi Abhisek,
This examlpe maybe can help you:
https://dev.ti.com/tirex/explore/node?node=A__AJqoeGK4dZO20ldR2Ij4jQ__msp430ware__IOGqZri__LATEST
WDT will reset MCU every 250ms if you don't feed dog in this example.
Thanks!
Best Regards
Johnson
Hi ,
I don't want to reset my microcontroller every 250ms. If something unexpected happens in the code or the code is stuck, then only I want to reset microcontroller. So how to keep only a check on the code and not reset the controller every 250ms. Can you please provide code for that?
Regards
Abhisek
Hi Abhisek,
You can clear WDT within 250ms to avoid WDT reset device:
If your code in stuck, will can't clear WDT, then reset will occur via WDT, this method should you need.
Thanks!
Best Regards
Johnson
**Attention** This is a public forum