ARM Technical Support Knowledge Articles

PROGRAM NEVER REACHES MAIN

Applies to: C51 C Compiler

Answer


Information in this article applies to:


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.


Article last edited on: 2005-08-31 07:41:18

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential