From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12917 invoked by alias); 10 Sep 2003 13:29:47 -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 12906 invoked from network); 10 Sep 2003 13:29:45 -0000 Received: from unknown (HELO mail.idtinc.de) (195.30.47.34) by sources.redhat.com with SMTP; 10 Sep 2003 13:29:45 -0000 Received: from DynaPel.com (unknown [10.0.2.109]) by mail.idtinc.de (Postfix on SuSE Linux eMail Server 3.0) with ESMTP id 43057133F; Wed, 10 Sep 2003 15:33:55 +0200 (CEST) Message-ID: <3F5F2765.80700@DynaPel.com> Date: Wed, 10 Sep 2003 13:29:00 -0000 From: Eric Doenges User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030626 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Piotr Trojanek Cc: ecos-discuss References: <20030908171329.GA836@elproma.com.pl> <3F5D855F.30609@DynaPel.com> <20030909084409.GA7485@elproma.com.pl> <3F5DC330.5050909@DynaPel.com> <20030910083733.GA29399@elproma.com.pl> In-Reply-To: <20030910083733.GA29399@elproma.com.pl> X-Enigmail-Version: 0.76.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [ECOS] serial line ISR problem -- again:( X-SW-Source: 2003-09/txt/msg00178.txt.bz2 Piotr Trojanek wrote: [ ... ] > 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). The code you posted later in this thread looks OK to me regarding the setting up of the ISR and should work if the interrupt is actually triggered. One thing you could try is to configure the 16550 to request interrupts for all possible interrupt sources to see if your ISR works in principle. > 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? Not sure about HAL_INTERRUPT_IN_USE, but did you build the eCos serial driver for the i386 PC target ? If you did, it will most likely conflict with your code. -- -------------------------------------------------------------------- | Eric Doenges | DynaPel Laboratories GmbH | | Tel: +49 89 962428 23 | Fraunhoferstrasse 9/2 | | Fax: +49 89 962428 90 | D - 85737 Ismaning, Germany | -------------------------------------------------------------------- -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss