This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with GDB over /dev/ttyS0


[ Please keep ecos-discuss CC'd, so everyone has the benefit of replies ]

jyl087@netscape.net wrote:
> 
> Jonathan Larmour <jlarmour@redhat.com> wrote:
> 
> >jyl087@netscape.net wrote:
> >> Help..., I'm can't connect to my remote EDB7312 via the serial GDB
> >> interface. The host is Linux 7.2, running GDB 5.1.1. The target is
> >> the latest eCos, running on a EDB7312 board with RedBoot installed
> >> in Flash.
> >>
> >> The strange thing is that I can connect to the remote host via TCP:9000.
> >> Also, I can "cu" and "minicom" connect to the target to talk to the
> >> Redboot prompt. I can even connect to the target via /dev/ttyS0 when
> >> running Angel in the ROM and using "target rdi"!  However, when I
> >> use "target remote /dev/ttyS0", gdb just hangs. Also hangs when I use
> >> the Insight GUI. I've made sure to use "set remotebaud 38400" to match
> >> the setup of my board.
> >
> >If you use minicom and type something like:
> >++$g#67
> >
> >do you see anything?
> 
> I see:
>    $01000000010000002c4600005000000003000000500000000000000001000000ac46000000000000

Well that does look vaguely sensible in principle. In that case try GDB
again and do "set remotedebug 1" (or "set debug remote 1" in more recent
GDBs) before doing the target remote.
 
> The "port" is my own EDB7312 based on EDB7xxx. Probably broken somehow.
> Does the fact that running the code via GDB is faster than running
> directly from RedBoot give a clue to the problem?

Can't see any obvious link.

Worst case is that there is a 7312 port to be released in v2.

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

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]