Console problem update
Etienne Fortin
etienne.fortin at sensio.tv
Thu Nov 4 20:28:52 UTC 2004
I don'T know why I tought that even after releasing the sempahore, I was
still stuck in the idle thread. To the contrary! Forcing the release of
the semaphore make the task continue to execute code and I eventually
get out of the code with an error (that's ok since the semaphore was
forced to be released so no valid data is there waiting)...
The question now is why the code is not notified of new characters. Is
it possible that the termios code, being designed for "human"
interraction (at least I presume), can't cope with sustained binary data
transfer and so I lost data and eventually the semaphore is struck
waiting for characters that will never come? Is it possible?
Etienne Fortin
Sensio
-----Message d'origine-----
De : Joel Sherrill <joel at OARcorp.com> [mailto:joel.sherrill at OARcorp.com]
Envoyé : 4 novembre, 2004 15:21
À : Etienne Fortin
Cc : rtems-users at rtems.com
Objet : Re: Console problem update
Etienne Fortin wrote:
> Hello all, its me again, the console guy :)
>
> Little update for the ones that have an interest, or wish to help me
> on that matter.
Is your interrupt an RTEMS ISR or a raw one directly connected to
hardware? If you do not go through the RTEMS ISR wrapper, you will
NEVER schedule out of an interrupt.
Also are you sure you are geting the serial port interrupts?
> I tricked RTEMS to release the semaphore at each clock tick to make
> sure the semaphore was the problem. And surprise surprise! It still
> hang in the idle thread!!!!!!!!!
>
> Theory: My task/scheduler/... config is fu***d up. Anyone here thinks
> it can be possible? For what I know of the problem so far, it seems
> that as soon as the idle thread is entered, no other thread ever gets
> executed... Really seems a config problem to me...
>
> Idea someone?
>
> Etienne Fortin
> Sensio
>
--
Joel Sherrill, Ph.D. Director of Research & Development
joel at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users
mailing list