[ECOS] serial line ISR problem -- again:(
Eric Doenges
Eric.Doenges@DynaPel.com
Wed Sep 10 13:29:00 GMT 2003
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
More information about the Ecos-discuss
mailing list