<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Program does not jump to Main()</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/29876/program-does-not-jump-to-main</link><description> 
Hello there! 

 
The problem I&amp;#39;m facing is quite simple: when I try to debug my
program it doesn&amp;#39;t jump to the main function. All I can see in the
debug window after the code is loaded into the uC is STARTUP.A51
assembly code. It is stuck there. 

</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Program does not jump to Main()</title><link>https://community.arm.com/thread/92269?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2013 07:10:10 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:78c9021b-fc4e-4c14-b0c6-1436f6fc1dc6</guid><dc:creator>&amp;#178;erik malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;If you have too many variables being initialized in the
declaration the uC will take too long do initialize them and will not
turn off the watchdog in time.&lt;br /&gt;
I solved it by moving the initialization of the variables to after
the declaration.&lt;/i&gt;&lt;br /&gt;
1) correct, this is a possible reason for the OPs problem&lt;br /&gt;
2)very few derivatives turn the watchdog on by default, the only ones
I know of are the SILabs &amp;#39;deviates&amp;#39; (F3x-up).&lt;br /&gt;
3) the right solution is to turn the watchdog off in startup.a51, not
starting with a bunch of var = val; in main.&lt;/p&gt;

&lt;p&gt;
Erik&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>