From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26852 invoked by alias); 4 Jul 2002 16:20:10 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 26841 invoked from network); 4 Jul 2002 16:20:08 -0000 Received: from unknown (HELO venus.combitech.se) (146.75.247.84) by sources.redhat.com with SMTP; 4 Jul 2002 16:20:08 -0000 Received: from ratatosk.combitechsystems.com (localhost [127.0.0.1]) by venus.combitech.se (8.11.6/8.11.6) with ESMTP id g64GK6I21535 for ; Thu, 4 Jul 2002 18:20:06 +0200 (MEST) Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 Date: Thu, 04 Jul 2002 09:20:00 -0000 Message-ID: <004B1D7A5257174C9044A1B7BD0E60ED232BD5@ratatosk.combitechsystems.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Daniel Lidsten" To: Subject: [ECOS] Serial getc problem X-SW-Source: 2002-07/txt/msg00040.txt.bz2 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.=20 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