This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: diag serial port and debug serial port conflict?
- To: "Jonathan Larmour" <jlarmour at redhat dot co dot uk>
- Subject: Re: [ECOS] diag serial port and debug serial port conflict?
- From: "Charles F." <charles at 202 dot 96 dot 178 dot 16>
- Date: Fri, 28 Jul 2000 13:20:05 +0800
- Cc: <ecos-discuss at sourceware dot cygnus dot com>
- References: <200007270936132.SM01044@charles> <398045D8.8906533A@redhat.co.uk>
- Reply-To: "Charles F." <charles at zh dot t2-design dot com>
I am sure they are initialized to the same speed. Yesterday I tried to use
non-optimization setting (delete the -O2 switch in general build settings)
to compile ecos and it works! I guess there is something wrong with the
optimized serial port intialization code. I have experience porting WinCE to
4373 board and once I met this kind of problem too. Am I right?
Charles
----- Original Message -----
From: "Jonathan Larmour" <jlarmour@redhat.co.uk>
To: <charles@zh.t2-design.com>
Cc: <ecos-discuss@sourceware.cygnus.com>
Sent: Thursday, July 27, 2000 10:23 PM
Subject: Re: [ECOS] diag serial port and debug serial port conflict?
> "Charles F." wrote:
> >
> > Hi. I am working on a ddb-4373 board and it seems have this problem: The
default settings of the diagnostic serial port and the gdb serial port are
both set to use serial port 0 (which is the port A on the 4373 board).
> > It's obvious that the GDB stub has initialized the port 0 and used it to
load my ecos program onto the board. My ecos program, however, stops to
interact with GDB after it tries to initialize its diagnostic serial port
(also
> > serial port 0). The code is in hal_diag.c function hal_duart_init(). If
I delete the line which writes to the port registers or choose to use port 1
as the diagnostic port in the conficuratoin tools, the problem doesn't
exist.
> > (But anyway, I still can't get correct diagnositc output).
> > It seems like that we can't initialize the same port twice when we are
still using it after our first time intialization. Can anybody help me on
this problem? Thank you!
>
> Are you absolutely sure they are being initialized to the same speed? I
> wouldn't have thought a serial port would just drop dead if initialized
> twice with the same parameters!
>
> Jifl
> --
> Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS Tel: +44 (1223)
728762
> "Plan to be spontaneous tomorrow." || These opinions are all my own
fault