public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Mark Salter <msalter@redhat.com>
To: tadams@theone.dnsalias.com
Cc: ecos-discuss@sourceware.cygnus.com
Subject: Re: [ECOS] program doesn't work with new redboot
Date: Sat, 11 Aug 2001 18:05:00 -0000	[thread overview]
Message-ID: <200108120105.f7C152t29215@deneb.localdomain> (raw)
In-Reply-To: <003d01c121d9$f0283030$090110ac@TRENT>

>>>>> Trenton D Adams writes:

> My program won't work with the new redboot I just compiled.  It does the
> following.

> $ arm-elf-gdb.exe -nw RigSystem.exe
> GNU gdb 5.0
> Copyright 2000 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you
> are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for
> details.
> This GDB was configured as "--host=i686-pc-cygwin --target=arm-elf"...
> (gdb) set remotebaud 115200
> (gdb) target remote com1
> Remote debugging using com1
> 0xe0006630 in ?? ()
> (gdb) load
> Loading section .rom_vectors, size 0x40 lma 0x20000
> Loading section .text, size 0x389c0 lma 0x20040
> Loading section .rodata, size 0x1a1b8 lma 0x58a00
> Loading section .data, size 0x1194 lma 0x72bb8
> Start address 0x20040 , load size 343372
> Ignoring packet error, continuing...
> Transfer rate: 80793 bits/sec, 306 bytes/write.

Because you get the "Start address..." message, the download of code
was successful. The only thing that happens between that message and
the "Transfer rate..." message is the setting of the PC. That register
setting packet must be the one that gets the packet error. The
"Ignoring packet error..." message could be the result of any number
of problems receiving a packet. After sending a set register  packet,
GDB expects the target to respond with an "OK" packet. Presumably, it
is this OK packet (or perhaps lack of it) that is causing the problem.
Turning on remote protocol debug is the best way to start tracking
down these sorts of problems. So, turn on debugging with:

  (gdb) set remotedebug 1

or with newer GDBs:

  (gdb) set debug remote 1

Post the last bit of the debug output from the load command and
we'll help you interpret it. You'll get a bunch of stuff from
the load data, but the interesting part for this problem will
start with GDB sending the "$P" packet to set the pc.

--Mark

      parent reply	other threads:[~2001-08-11 18:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-10 13:20 Trenton D. Adams
2001-08-10 14:28 ` Jonathan Larmour
2001-08-10 22:29   ` Trenton D. Adams
2001-08-11  6:53     ` Jonathan Larmour
2001-08-13  8:35   ` Trenton D. Adams
2001-08-13  9:53     ` Jonathan Larmour
2001-08-13 13:13       ` Trenton D. Adams
2001-08-13 13:27         ` Jonathan Larmour
2001-08-13 14:10           ` Trenton D. Adams
2001-08-11 18:05 ` Mark Salter [this message]

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=200108120105.f7C152t29215@deneb.localdomain \
    --to=msalter@redhat.com \
    --cc=ecos-discuss@sourceware.cygnus.com \
    --cc=tadams@theone.dnsalias.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).