From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13527 invoked by alias); 10 Sep 2003 08:37:45 -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 13515 invoked from network); 10 Sep 2003 08:37:42 -0000 Received: from unknown (HELO elproma.com.pl) (213.77.124.176) by sources.redhat.com with SMTP; 10 Sep 2003 08:37:42 -0000 Received: from amavis by elproma.com.pl with scanned-ok (Exim 3.35 #1 (Debian)) id 19x0Ts-00083P-00 for ; Wed, 10 Sep 2003 10:37:40 +0200 Received: from by localhost (amavisd-new, port ) id XXDG3tGq for ; Wed, 10 Sep 2003 10:37:33 +0200 (CEST) Received: from ptroja by elproma.com.pl with local (Exim 3.35 #1 (Debian)) id 19x0Tl-00083D-00 for ; Wed, 10 Sep 2003 10:37:33 +0200 Date: Wed, 10 Sep 2003 08:37:00 -0000 To: ecos-discuss Message-ID: <20030910083733.GA29399@elproma.com.pl> Mail-Followup-To: ecos-discuss References: <20030908171329.GA836@elproma.com.pl> <3F5D855F.30609@DynaPel.com> <20030909084409.GA7485@elproma.com.pl> <3F5DC330.5050909@DynaPel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F5DC330.5050909@DynaPel.com> User-Agent: Mutt/1.3.28i From: Piotr Trojanek X-Virus-Scanned: by amavisd-new-20030616-p3 (Debian) at elproma.com.pl Subject: Re: [ECOS] serial line ISR problem -- again:( X-SW-Source: 2003-09/txt/msg00168.txt.bz2 On Tue, Sep 09, 2003 at 02:10:24PM +0200, Eric Doenges wrote: > Since I'm not familiar with 16550 programming, I don't know if you are > using it correctly (you might want to check your code against the > generic 16550 driver included with eCos). I use few references both printed and online and I thought I'm familiar with UART programming until I started playing with ECOS:( > Are you sure COM1 is located > at IO address 0x3f8 and uses IRQ 4 ? Many boards' BIOSes allow you to > change at least the interrupt line used. I'm 100% sure address is correct. When I poll serial line status register in for(;;) readen values corresponds to what I see on osciloscope. The problem is I cannot get ISR to work. I thought it was some mistake in ECOS interface -- ie. creating thread or assigning to a wrong vector (actually I have to use CYGNUM_HAL_ISR_MIN + COM_IRQ instead COM_IRQ). Or that I have to cug_scheduler_start() to actually enable IRQs. So if you don't see error in that portion, I belive there is some mistake in UART initialization. Doesn't it hurd, that ECOS may have already assigned some ISR to serial port? -- but it shouldn't, as I check it with HAL_INTERRUPT_IN_USE(), right? -- Piotr Trojanek -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss