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]

Serial getc problem


Hi,

I am running a MPC850 with a few different threads in the application.
The network stack is also enabled and up and running. However, when a
thread calls the HAL_DIAG_READ_CHAR to wait for input from the user then
my net stack stops working. I cant reach it with a ping from my local
host. 

My first thought was that the application was running with a higher
priority (lower value) then the net stack but that was not the case. The
application runs at prio 8 and net at 6 and 7 (background).

I have seen in the serial driver that when reading a char from the port
then the following is done:

while ( !getc_non_block(..) )

Can the problem be that this code is running in some form of "kernel
state" i.e. in a very high prio state since the driver lies within eCos?

Regards, Daniel

--
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]