Keil Logo

GENERAL: INITIATING A RESET


Information in this knowledgebase article applies to:

  • All devices

QUESTION

How can I reset my device, from within my program, if it does not have built-in provision for software reset?

ANSWER

If your device has a watchdog timer, you can initiate a reset from software by setting the timeout to the minimum value (such as 0xFFFF for an up counter, or 0x0000 for a down counter) and then starting the timer.

For example(in pseudocode):

WD_TIMEOUT = 0xFFFF;
WD_RESET_ENABLE = 1;
WD_RUN = 1;
while(1);

Last Reviewed: Wednesday, August 27, 2008


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.