* [ECOS] Strange Problems !!!
@ 2005-09-06 9:40 Harsha D
2005-09-06 14:56 ` keshava
0 siblings, 1 reply; 2+ messages in thread
From: Harsha D @ 2005-09-06 9:40 UTC (permalink / raw)
To: eCos Discussion; +Cc: Andrew Lunn
Hi
Currently i have a ram version of redboot running on my ARM platform.
(Redboot prompt is visible).
But none of the commands (like help, version, load) were working(redboot
hangs). On debugging
i found that it was hanging at
(cmd->fun)(argc, argv);
in ecos/packages/redboot/current/src/main.c, after parsing the command.
So for debugging i put a printf inside the do_help function (in
main.cpp), to see if it was being called,
surprisingly help command worked!!!
void do_help()
{
..
diag_printf("\nInside do_help");
..
..
}
I tried removing the above printf. and help didnot work !!! I tested
it for 2-3 times.
1.
Now i am worried as to how this printf is making the difference in
getting the output.
I think this must b the case for other commands too.
2.
Also i find that sometimes, the parse command looses the argument value.
i.e. although
"help" string is being sent when calling, inside the function the
argument has no value
at all
I am using gcc ver 3.2.1. Please throw some light on the above issues.
regards
harsha
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ECOS] Strange Problems !!!
2005-09-06 9:40 [ECOS] Strange Problems !!! Harsha D
@ 2005-09-06 14:56 ` keshava
0 siblings, 0 replies; 2+ messages in thread
From: keshava @ 2005-09-06 14:56 UTC (permalink / raw)
To: Harsha D, eCos Discussion; +Cc: Andrew Lunn
harsha,
check if the stack pointer is properly set.
-keshav
--- Harsha D <harshad@sanyo.co.in> wrote:
> Hi
>
> Currently i have a ram version of redboot running on
> my ARM platform.
> (Redboot prompt is visible).
> But none of the commands (like help, version, load)
> were working(redboot
> hangs). On debugging
> i found that it was hanging at
>
> (cmd->fun)(argc, argv);
>
> in ecos/packages/redboot/current/src/main.c, after
> parsing the command.
>
>
> So for debugging i put a printf inside the do_help
> function (in
> main.cpp), to see if it was being called,
> surprisingly help command worked!!!
>
> void do_help()
> {
> ..
>
> diag_printf("\nInside do_help");
>
> ..
> ..
> }
>
> I tried removing the above printf. and help didnot
> work !!! I tested
> it for 2-3 times.
>
> 1.
> Now i am worried as to how this printf is making the
> difference in
> getting the output.
> I think this must b the case for other commands too.
>
> 2.
> Also i find that sometimes, the parse command looses
> the argument value.
> i.e. although
> "help" string is being sent when calling, inside the
> function the
> argument has no value
> at all
>
> I am using gcc ver 3.2.1. Please throw some light
> on the above issues.
>
>
> regards
> harsha
>
> --
> Before posting, please read the FAQ:
> http://ecos.sourceware.org/fom/ecos
> and search the list archive:
> http://ecos.sourceware.org/ml/ecos-discuss
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-09-06 14:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-06 9:40 [ECOS] Strange Problems !!! Harsha D
2005-09-06 14:56 ` keshava
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).