Hi, <br>&nbsp;&nbsp; Thanks for your response, im certainly initialising by calling app_startup ( ) ;<br><br>&nbsp;&nbsp; My Program Looks like:<br><br>&nbsp; int hello_world (int argc, char * argv [ ]) <br>&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int ch ;<br><br>&nbsp; &nbsp; &nbsp;&nbsp; app_startup(argv);
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf (&quot;Example expects ABI version %d\n&quot;, XF_VERSION);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf (&quot;Actual U-Boot ABI version %d\n&quot;, (int)get_version());<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf (&quot;Do you want to execute all the tests\n&quot;) ;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf (&quot;Enter Y to yes or any other key to exit:&quot;) ;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; while (!tstc())<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ch = getc ( );<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (ch == 'Y' || ch == 'y') {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf (&quot;Executing tests\n&quot;) ;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tests ( ) ; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <br>&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; printf (&quot;Returning back to u-boot\n&quot;) ;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf (&quot;\n\n&quot;) ;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return (0) ;<br>&nbsp;}<br><br><br>&nbsp;When i return back, I dont get the u-boot prompt.&nbsp; I need to restart the board.
<br><br>&nbsp; I get the print Returning back to u-boot.<br><br><br>&nbsp; Am i missing something before return?.<br><br><br><br><div><span class="gmail_quote">On 11/18/06, <b class="gmail_sendername">Wolfgang Denk</b> &lt;<a href="mailto:wd@denx.de">
wd@denx.de</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">In message &lt;<a href="mailto:8bf247760611170016n2bc309dbhf0d44e10c03d2e01@mail.gmail.com">
8bf247760611170016n2bc309dbhf0d44e10c03d2e01@mail.gmail.com</a>&gt; you wrote:<br>&gt;<br>&gt;&nbsp;&nbsp;I had posted a query regarding hanging of u-boot when a return is made from<br>&gt; a standalone application.<br><br>Did you really follow the required steps? See the documentation!
<br><br>&gt;&nbsp;&nbsp;Do we need to do something &quot;Special&quot; before returning back?.<br><br>Yes, you must initialize your app.<br><br>&gt;&nbsp;&nbsp;All im doing is<br>&gt;<br>&gt;&nbsp;&nbsp; while (!tstc())<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;<br>&gt;&nbsp;&nbsp; ch = getc ( );
<br>&gt;&nbsp;&nbsp; printf (&quot;Returning\n&quot;) ;<br>&gt;<br>&gt;&nbsp;&nbsp; return (0) ;<br><br>I don't see any call to app_startup(), nor do I see any checking of<br>get_version() results...<br><br>Best regards,<br><br>Wolfgang Denk
<br><br>--<br>Software Engineering:&nbsp;&nbsp;Embedded and Realtime Systems,&nbsp;&nbsp;Embedded Linux<br>Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: <a href="mailto:wd@denx.de">wd@denx.de</a><br>A Freudian slip is when you say one thing but mean your mother.
<br></blockquote></div><br>