This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Problem with serial setup
- From: "Gary D. Thomas" <gary dot thomas at mind dot be>
- To: Daniel Lidsten <Daniel dot Lidsten at combitechsystems dot com>
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: 13 May 2003 07:09:06 -0600
- Subject: RE: [ECOS] Problem with serial setup
- Organization:
- References: <004B1D7A5257174C9044A1B7BD0E60EDA65D05@ratatosk.combitechsystems.com>
On Tue, 2003-05-13 at 03:30, Daniel Lidsten wrote:
> Hi,
>
> > > I am trying to use the same serial port for both printf and
> > > diag_printf but there seem to be some problem. Is there
> > someone that
> > > use the same port for both an interrupt driven serial driver and a
> > > diag version at the same time?
> > >
> >
> > Yes, I have done this successfully on the PowerPC (QUICC)
> > hardware that you are using. Be sure and get up-to-date
> > sources, as I fixed a bug in the HAL/QUICC serial serial
> > drivers about a month ago.
>
> I now have two serial channels (diag and printf) working on the same HW
> port but when i want to change the diag to use SMC2 instead of SMC1 then
> i hang in the quicc_smc1.c putc function because a BD flag indicates
> busy:
>
> while (bd->ctrl & QUICC_BD_CTL_Ready)
>
> The only change i have done in ConfigTool is to change the "Diagnostic
> Serial Port" from 0 to 1. Is there any other location that i need to
> change to make this work?
>
Do you have RedBoot running on this platform? If so, does it use
the second port (SMC2) properly?
--
Gary D. Thomas <gary.thomas@mind.be>
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss