Hi, <br> Thanks for your response, im certainly initialising by calling app_startup ( ) ;<br><br> My Program Looks like:<br><br> int hello_world (int argc, char * argv [ ]) <br> {<br> int ch ;<br><br> app_startup(argv);
<br> printf ("Example expects ABI version %d\n", XF_VERSION);<br> printf ("Actual U-Boot ABI version %d\n", (int)get_version());<br><br> printf ("Do you want to execute all the tests\n") ;
<br> printf ("Enter Y to yes or any other key to exit:") ;<br><br> while (!tstc())<br> ;<br> ch = getc ( );<br><br> if (ch == 'Y' || ch == 'y') {<br> printf ("Executing tests\n") ;
<br> tests ( ) ; <br> }<br> <br> printf ("Returning back to u-boot\n") ;<br> printf ("\n\n") ;<br><br> return (0) ;<br> }<br><br><br> When i return back, I dont get the u-boot prompt. I need to restart the board.
<br><br> I get the print Returning back to u-boot.<br><br><br> 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> <<a href="mailto:wd@denx.de">
wd@denx.de</a>> 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 <<a href="mailto:8bf247760611170016n2bc309dbhf0d44e10c03d2e01@mail.gmail.com">
8bf247760611170016n2bc309dbhf0d44e10c03d2e01@mail.gmail.com</a>> you wrote:<br>><br>> I had posted a query regarding hanging of u-boot when a return is made from<br>> a standalone application.<br><br>Did you really follow the required steps? See the documentation!
<br><br>> Do we need to do something "Special" before returning back?.<br><br>Yes, you must initialize your app.<br><br>> All im doing is<br>><br>> while (!tstc())<br>> ;<br>> ch = getc ( );
<br>> printf ("Returning\n") ;<br>><br>> 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: Embedded and Realtime Systems, 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>