This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Running sample applications on eCos
- From: Gary Thomas <gthomas at redhat dot com>
- To: Subodh <subodhk at bsil dot com>
- Cc: "'ecos-discuss at sources dot redhat dot com'" <ecos-discuss at sources dot redhat dot com>
- Date: 27 Dec 2001 08:18:54 -0700
- Subject: Re: [ECOS] Running sample applications on eCos
- References: <01C18ECD.A35CEAA0.subodhk@bsil.com>
On Wed, 2001-12-26 at 23:27, Subodh wrote:
>
>
> Hi,
>
> I have configured and built binutils and gcc as per the instructions given in
> http://sources.redhat.com/ecos/tools/linux-i686-linux.html The target is synthetic linux.
> I have done this on a x86 processor - linux host only.
>
> I have taken the instructions from http://sources.redhat.com/ecos/docs-latest/tutorials/arm/ecos-tutorial.13.html
> to run application hello.c. There is 1 small problem. After the program prints
> the message "Hello, eCos world!", it doesn't come to $ prompt. I have to press ctrl c
> to get the dollar prompt.
>
> If I compile this simple program using gcc ( gcc hello.c ) and then run a.out, $ prompt returns.
>
> Can anyone tell me, why does this happen ?
>
> Regards,
>
> Subodh
This _is_ the expected behaviour of eCos applications. When they
"terminate", they simply spin. If you want to stop on the exit, try
setting a breakpoint at 'exit()' or some other appropriate point.