This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Running sample applications on eCos


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]