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]

Re: FW: Serial device driver problem.



Is your scheduling interrupt working... and are your task priorities
correct.. I've had trouble where I had a task running in a tight loop at
higher priority than the one reading from the serial .. needless to say it
didn't work...

Are you initialising everthing correctly?just wondering is the condition
variable correctly initied..

Dave.


On Wed, 30 May 2001, Dennis Ehlin (ECS) wrote:

> 
> I have a printout in the DSR routine, which prints a sign for every call to the DSR
> and it seems like I only get the sign when a char is sent to the UART.
> So I think that that part is working ok.
> 
> If I didn't clear the interrupt i would get lots of signs...
> 
> >are you sure you are (or the 16x5x) is clearing the interrupt correctly on
> >your target? if not you will exit the ISR, enter the DSR, exit the DSR
> >enter the ISR... and never go back to the scheduler..
> >
> >> Hi,
> >>  
> >> I'm trying write a serial device to my ppc target, i'm using the generic 16x5x uart code.
> >> I have the serial interrupts working and so on...
> >>  
> >> When i do a serial_read (located serial.c) everything seems to work ok, and  i get to the
> >> cyg_drv_cond_wait(&cbuf->wait) line and it stops there to wait for the cbuf->wait signal. ok.
> >>  
> >> Then i generate a serial receive interrupt and the serial_rcv_char function is called,
> >> which sends the cbuf->wait signal with the line cyg_drv_cond_signal(&cbuf->wait).
> >>  
> >> But nothing happends?, the cyg_drv_cond_wait(&cbuf->wait) never continues, as if it never gets the
> >> signal.
> >>  
> >> I suppose there's alot of things that can go wrong, but I dont have a clue of what is happening there.
> >> Does anyone know of something that could cause this ?
> >>  
> >> (I use the serial_echo test to test this)
> >>  
> 
> //Dennis
> 

-- 
      David Airlie, Software Engineer, Parthus Technologies plc.,
       Mary Rosse Centre, National Tech Park, Limerick, Ireland.
   t: +353-61-508116 / f: +353-61-508101 / David.Airlie@parthus.com


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