public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Gary Thomas <gthomas@redhat.com>
To: Ormund Williams <ormundw@brainlink.com>
Cc: ecos <ecos-discuss@sourceware.cygnus.com>
Subject: RE: [ECOS] Problems building stand-alone gdb stub for ARM AEB bo
Date: Mon, 02 Oct 2000 15:25:00 -0000	[thread overview]
Message-ID: <XFMail.20001002162532.gthomas@redhat.com> (raw)
In-Reply-To: <39D502FB.C60A2E06@brainlink.com>

On 29-Sep-2000 Ormund Williams wrote:
> Hi
> 
> I have designed a board that uses the LH77790, the same chip that is on
> the ARM AEB.  I am now trying to build a gdb stub, first trying it on
> the AEB.  After going through the following steps:
> 
>     Create new target: awt60
>     Edit: hal_arm_awt60.cdl
>     Add CPU initialization code to: hal_platform_setup.h
>     Edit to match memory layout: mlt_arm_awt60_r*m.h/ldi
>     Build stub: ecosconfig new awt60 stubs
>                 ecosconfig tree
>                 make
>     Burn into PROM: gdb_module.bin
> 
> When I powerup the board, with minicom connected, I get:
> 
>     AWT60 eCos
>     +$T050f:e8140004;0d:601f0000;#50
> (the first time I saw that I popped a virtual bottle of champagne)
> 
> But an attempt to connect with gdb failed with the the error message:
> 
>     Remote debugging using /dev/ttyS0
>     Ignoring packet error, continuing...
>     Ignoring packet error, continuing...
>     Ignoring packet error, continuing...
>     Couldn't establish connection to remote target
>     Malformed response to offset query, timeout
> 
> I have been sending commands manually to the stub (very, very
> tedious!!).
> 
>     me:   $d#64  -- request stub version
>     stub: eCos GDB stubs - built Sep 29 2000 / 13:15:23#1c
> 
> so the stub is responding to this and other commands correctly, I can
> read and write memory, check and set registers but commands like "query
> offset" ($qOffsets#4b) just get an empty packet ($#00) in reply.
> 
> Does any body know where I should go from here, I'm stumped?
> 

What does your memory layout look like?  In particular, does it match
the AEB?  A common case of this sort of failure is trying to download
something which overwrites the GDB/stubs memory space, resulting in
mayhem.

Something you can try is to turn on remote debugging.  This will provide
some useful info about what packets get sent and what happens to them.
Just issue this command before trying the first command that talks with
the board.
  (gdb) set remotedebug 1

  reply	other threads:[~2000-10-02 15:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-29 14:02 [ECOS] Problems building stand-alone gdb stub for ARM AEB board Ormund Williams
2000-10-02 15:25 ` Gary Thomas [this message]
2000-10-03 20:37   ` [ECOS] Problems building stand-alone gdb stub for ARM AEB Ormund Williams
2000-10-03 21:33     ` Gary Thomas
2000-10-04 10:30       ` Ormund Williams
2000-10-07 11:21         ` Ormund Williams

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=XFMail.20001002162532.gthomas@redhat.com \
    --to=gthomas@redhat.com \
    --cc=ecos-discuss@sourceware.cygnus.com \
    --cc=ormundw@brainlink.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).