public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Bart Veer <bartv@redhat.com>
To: b4506051@csie.ntu.edu.tw
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] I cant use gdb stubs to load hello
Date: Wed, 06 Dec 2000 04:31:00 -0000	[thread overview]
Message-ID: <200012061231.eB6CV3922230@sheesh.cygnus> (raw)
In-Reply-To: <200012060929.RAA13764@ntucst.csie.ntu.edu.tw>

>>>>> " " == niky  <b4506051@csie.ntu.edu.tw> writes:

     > I make stubs for pc

     > ecosconfig new pc stubs
     > ecosconfig tree
     > make

     > I can execute the version 1.3 prebuild text thread_gdb.exe

     > i386-elf-gdb -nw thread_gdb.exe
     > (gdb)set remotebaud 38400
     > (gdb)target remote /dev/ttyS0
     > (gdb)load
     > (gdb)continue

     > I see

     > PASS:<GDB Thread test OK>
     > EXIT:<done>

     > but I try to execute hello (I make from the version 1.3 example,
     > XCC=i386-elf-gcc)

     > i386-elf-gdb -nw hello
     > (gdb)set remotebaud 38400
     > (gdb)target remote /dev/ttyS0
     > (gdb)load

     > then the pc reboot and does not complete the load.
     > What is wrong?

I suspect you are confusing the stubs configuration and the
application configuration.

When developing for a typical evaluation board, you will need some
kind of ROM monitor running on that board. This can be an existing ROM
monitor which will not know about things like debugging eCos threads,
or it can be RedBoot or gdb stubs or something along those lines. For
the latter you need to configure and build eCos, generating something
that can be blown into EPROM (or whatever is appropriate for your
target hardware). For the PC target you end up with a boot floppy, but
the basic concept is the same.

Then you need a separate eCos configuration for doing actual
application development. This will differ from the stubs configuration
in various ways, for example the application code will typically be
loaded into RAM rather than blown into EPROMs. Application code built
using this configuration can then be loaded into the target hardware
via the ROM monitor.

So what I think you need to do is create another eCos configuration
using e.g. "ecosconfig new pc default", build it, link the "hello
world" application with the resulting libtarget.a, and then things
should work better.

Bart

  parent reply	other threads:[~2000-12-06  4:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-06  1:29 niky
2000-12-06  1:40 ` Christian Plessl
2000-12-06  4:31 ` Bart Veer [this message]
2000-12-11 21:13 Natarajan, Mekala (CTS)

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=200012061231.eB6CV3922230@sheesh.cygnus \
    --to=bartv@redhat.com \
    --cc=b4506051@csie.ntu.edu.tw \
    --cc=ecos-discuss@sources.redhat.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).