public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Jonathan Larmour <jlarmour@redhat.com>
To: Peter Blair <peterb@turnpikeglobal.com>
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] Problems with running applications
Date: Tue, 21 Aug 2001 12:07:00 -0000	[thread overview]
Message-ID: <3B82B18B.65C90C4D@redhat.com> (raw)
In-Reply-To: <8669764C0A96B640AE8A6F5BB7C259D955D2@turnpdcf1.home.turnpikeglobal.com>

Peter Blair wrote:
> 
> Hello Everyone,
> 
> I'm still plugging away with eCos, but have hit a wall a far as
> execution of the compiled application is concerned.
> 
> I've written a test application (Source code provided at bottom of
> email), compiled and linked it against the eCos library, and transfered
> it to the target host (i386) via serial.  Unfortunately, I'm unable to
> view any printf() statements on the target-pc's screen, but am pretty
> sure that the application is running.
> 
> Also, the program seems to hang in i386-elf-gdb/insight once it has
> reached the "cyg_libc_invoke_atexit_handlers()" from the exit.cxx file.
> 
> Conditions:
> a) My eCos build was done from the command line by issuing:
> $ ecosconfig new pc
> $ ecosconfig tree
> $ make
> b) I'm using the 'current' version of the eCos source repository, and
> the updated version of 'ecosconfig'.
> c) My build environment is Cygwin/Windows-2000.
> d) I'm using i386-elf-gdb with the Insight front-end to transfer & run
> my applications.
> 
> Is eCos' stdout the screen, a serial port on the target machine, or
> somewhere in gdb?

If you loaded over serial via GDB, the output should come over the serial
via GDB. What if you just have:

-=-=-=-=-
#include <stdio.h>
int main(){
  printf("Testing, 1-2-3\n");
  return 0;
}
-=-=-=-=-


Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

  reply	other threads:[~2001-08-21 12:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-21 12:02 Peter Blair
2001-08-21 12:07 ` Jonathan Larmour [this message]
2001-08-21 12:25 Peter Blair
     [not found] <8669764C0A96B640AE8A6F5BB7C259D955D3@turnpdcf1.home.turnpikeglobal.com>
2001-08-21 12:36 ` Jonathan Larmour
2001-08-21 13:20 Peter Blair
2001-08-21 13:44 ` Jonathan Larmour

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3B82B18B.65C90C4D@redhat.com \
    --to=jlarmour@redhat.com \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=peterb@turnpikeglobal.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).