From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10538 invoked by alias); 1 Jun 2007 16:00:47 -0000 Received: (qmail 10528 invoked by uid 22791); 1 Jun 2007 16:00:45 -0000 X-Spam-Check-By: sourceware.org Received: from stelecom.gomel.by (HELO stelecom.gomel.by) (82.209.213.61) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 01 Jun 2007 16:00:41 +0000 Received: from localhost (localhost [127.0.0.1]) by stelecom.gomel.by (Postfix) with ESMTP id 033CCB01AEC6; Fri, 1 Jun 2007 19:00:38 +0300 (EEST) Received: from stelecom.gomel.by ([127.0.0.1]) by localhost (stelecom.gomel.by [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11526-36; Fri, 1 Jun 2007 19:00:36 +0300 (EEST) Received: from localhost (unknown [82.209.215.41]) by stelecom.gomel.by (Postfix) with ESMTP id 09EF4B002979; Fri, 1 Jun 2007 19:00:35 +0300 (EEST) Date: Fri, 01 Jun 2007 16:00:00 -0000 From: Sergei Gavrikov To: Alexey Shusharin Cc: ecos-discuss@ecos.sourceware.org Message-ID: <20070601155948.GA7357@ubuntu> References: <465EA85B.4020600@cetoni.de> <465EB804.9040200@mail.ru> <1180617817.12360.70.camel@sg-ubuntu> <4660108D.4050204@mail.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4660108D.4050204@mail.ru> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Re: diag_printf via serial port X-SW-Source: 2007-06/txt/msg00016.txt.bz2 On Fri, Jun 01, 2007 at 07:26:53PM +0700, Alexey Shusharin wrote: > I found a bug in the variant layer of hal. It locates in > cyg_hal_plf_serial_isr() (/hal/arm/lpc2xxx/var/current/src/hal_diag.c). > This function handles UART interrupt but does't read UxIIR register in > order to clear the interrupt flag. So, the cyg_hal_plf_serial_isr() > calling never stops and prevents dsr and thread execution. > > The test began working properly then I has added a read operation of > UxIIR. I will send a patch to ecos-patches mailing list in a short time. Hello It seems that you were right. I went to the NXP's documents page and did choose to read that application notes AN10414/Rev.01 (the appnote is dated 2006/01/04, the lpc2xxx variant HAL is elder :) http://www.standardics.nxp.com/support/documents/microcontrollers/pdf/an10414.pdf The NXP's uart_isr() prototype (from appnote) operates with the CYGARC_HAL_LPC2XXX_REG_UxIIR, and cyg_hal_plf_serial_isr() don't. More that, in the application note they talk that is important. I got the spurrious iterrupt reports with my elder plf HAL for Olimex and I've done some things in plf HAL. It's possible, that was UxIIR issue. Well, eCos/LPC2XXX community is looking for your patch ;) Best regards, -- Sergei -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss