This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Newbie-Q: Clean exits from tests and examples
- From: John Mills <johnmills at speakeasy dot net>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Wed, 16 May 2007 09:58:53 -0500 (EST)
- Subject: [ECOS] Newbie-Q: Clean exits from tests and examples
- Reply-to: John Mills <john dot m dot mills at alum dot mit dot edu>
Hello -
I'm getting started with the eCos-2.0 'synthetic' target and have a couple
of beginner's questions.
I used the command line setup:
$ ecosconfig new linux default
[edited 'ecos.ecc' tools prefix to match my installation]
$ ecosconfig tree
$ make
$ make tests
All this went fine.
I copied the 'ecos-2.0/examples' directory into my scratch directory
and can built the executables, which also went fine:
$ cd examples
$ make INSTALL_DIR=<my_install>
The 'install/.../tests' like 'wallclock' run and exit fine. The 'examples'
run fine,
but don't exit (i.e., 'hello' prints its output then sits until I kill it
with '^C').
$ ~/sandbox/ecos/examples> ./hello
Hello, eCos world!
[and here we stay until I issue a '^C']
Question: How should 'examples/hello.c' be structured to run and exit,
returning cleanly to the parent Linux shell, or how should I invoke it?
Thanks.
- John Mills
john.m.mills@alum.mit.edu
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss