public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Interrupt driven serial communication on AT91
@ 2008-03-07  7:28 Tom Deconinck
  2008-03-07 11:43 ` Andrew Lunn
  0 siblings, 1 reply; 3+ messages in thread
From: Tom Deconinck @ 2008-03-07  7:28 UTC (permalink / raw)
  To: ecos-discuss

Hi,

I'm trying to use the interrupt driven driver on the debug serial port
of the AT91 using the  CYGPKG_IO_SERIAL_ARM_AT91.
I figured out that the debug port is linked with
CYPKG_IO_SERIAL_ARM_AT91_SERIAL2 and I have enabled termios and the
tty-mode serial device drivers on it.
The only result I get by doing that is that I get spurious interrupts
at runtime.
Is there anything that needs to be explicitly disabled? Or did I miss
something else?

Tom

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] Interrupt driven serial communication on AT91
  2008-03-07  7:28 [ECOS] Interrupt driven serial communication on AT91 Tom Deconinck
@ 2008-03-07 11:43 ` Andrew Lunn
  2008-03-07 12:18   ` Tom Deconinck
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Lunn @ 2008-03-07 11:43 UTC (permalink / raw)
  To: Tom Deconinck; +Cc: ecos-discuss

On Fri, Mar 07, 2008 at 08:27:56AM +0100, Tom Deconinck wrote:
> Hi,
> 
> I'm trying to use the interrupt driven driver on the debug serial port
> of the AT91 using the  CYGPKG_IO_SERIAL_ARM_AT91.
> I figured out that the debug port is linked with
> CYPKG_IO_SERIAL_ARM_AT91_SERIAL2 and I have enabled termios and the
> tty-mode serial device drivers on it.
> The only result I get by doing that is that I get spurious interrupts
> at runtime.
> Is there anything that needs to be explicitly disabled? Or did I miss
> something else?

Which AT91 device?

Which interrupt is generating spurious interrupts?

The DBG USART interrupt is multiplexed on the System Interrupt. Does
you platform define the necessary macros so that the code in
hal/arm/at91/var/current/src/at91_misc.c demultiplexes the system
interrupt?

        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] Interrupt driven serial communication on AT91
  2008-03-07 11:43 ` Andrew Lunn
@ 2008-03-07 12:18   ` Tom Deconinck
  0 siblings, 0 replies; 3+ messages in thread
From: Tom Deconinck @ 2008-03-07 12:18 UTC (permalink / raw)
  To: Tom Deconinck, ecos-discuss

I'm using the AT91SAM7SE variant.

And it is the PITC (IRQ number 32) that seem to be causing the
spurious interrupts.

I'll check the demultiplexing code to make sure the right macros are
defined (I suppose they are since my target uses everything from the
AT91SAM7S code...)

Tom

On Fri, Mar 7, 2008 at 12:43 PM, Andrew Lunn <andrew@lunn.ch> wrote:
>
> On Fri, Mar 07, 2008 at 08:27:56AM +0100, Tom Deconinck wrote:
>  > Hi,
>  >
>  > I'm trying to use the interrupt driven driver on the debug serial port
>  > of the AT91 using the  CYGPKG_IO_SERIAL_ARM_AT91.
>  > I figured out that the debug port is linked with
>  > CYPKG_IO_SERIAL_ARM_AT91_SERIAL2 and I have enabled termios and the
>  > tty-mode serial device drivers on it.
>  > The only result I get by doing that is that I get spurious interrupts
>  > at runtime.
>  > Is there anything that needs to be explicitly disabled? Or did I miss
>  > something else?
>
>  Which AT91 device?
>
>  Which interrupt is generating spurious interrupts?
>
>  The DBG USART interrupt is multiplexed on the System Interrupt. Does
>  you platform define the necessary macros so that the code in
>  hal/arm/at91/var/current/src/at91_misc.c demultiplexes the system
>  interrupt?
>
>         Andrew
>

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-03-07 12:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-07  7:28 [ECOS] Interrupt driven serial communication on AT91 Tom Deconinck
2008-03-07 11:43 ` Andrew Lunn
2008-03-07 12:18   ` Tom Deconinck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).