Keil Logo

C51: PROGRAM NEVER REACHES MAIN


Information in this article applies to:

  • C51 All versions

SYMPTOM

When I run my program on a Silicon Labs device, I never see it reach Main().

CAUSE

Many SiLabs devices have a watchdog timer that gets set to a very short interval upon reset.  If your program contains a large amount of initialized data, the watchdog can run out before the initialization code finishes.

RESOLUTION

To keep the watchdog from resetting during data initialization, you should put code in startup.a51 to disable it.  Consult the data sheet for your particular device, to find the correct procedure to use, in order to disable the watchdog.

Last Reviewed: Wednesday, August 31, 2005


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.