public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Need help - UART interrupt handler - ECOS
@ 2007-09-28  5:03 Saravanan Ganesan
  2007-09-28  5:34 ` Tathagata Das
  0 siblings, 1 reply; 2+ messages in thread
From: Saravanan Ganesan @ 2007-09-28  5:03 UTC (permalink / raw)
  To: ecos-discuss

Hello,
 
we are using ECOS for our development.  In our environment(PNX 8330) Uart Rx
is configured in Interrupt
mode and the handlers are registered using ECOS exported API
(cyg_interrupt_create) and the handler 
is attached in interrupt stack using (cyg_interrupt_attach).
 
cyg_interrupt_create() returns valid handler, so we can assume that the call
is success.
ISR handler is not being called, when we send a character from the
hyperterminal.  But my uart status
register says Receive_therslod_int and receive_time_out both happened.
 
Could somebody Please, let me know why the ECOS is not calling  ISR handler.
Should i need do any additional configuration in configuration tool to get
the handler.
Should i have to enable some macro to get the same.
 
Thanks in advance
Regards,
Sarvan G



DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited.
E-mail may contain viruses. Before opening attachments please check them for viruses and defects. While MindTree Consulting Limited (MindTree) has put in place checks to minimize the risks, MindTree will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside.
Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission.
MindTree reserves the right to monitor and review the content of all messages sent to or from MindTree e-mail address. Messages sent to or from this e-mail address may be stored on the MindTree e-mail system or else where.

--
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] 2+ messages in thread

* Re: [ECOS] Need help - UART interrupt handler - ECOS
  2007-09-28  5:03 [ECOS] Need help - UART interrupt handler - ECOS Saravanan Ganesan
@ 2007-09-28  5:34 ` Tathagata Das
  0 siblings, 0 replies; 2+ messages in thread
From: Tathagata Das @ 2007-09-28  5:34 UTC (permalink / raw)
  To: Saravanan Ganesan; +Cc: ecos-discuss

Hello Sarvan,
   It may happen mainly for two reasons.
       1. Your interrupt controller is not working properly. However 
chance for this to happen is very less.
       2. You probably need to unmask the interrupt vector just after 
attaching ISR handler.
                    cyg_drv_interrupt_unmask(interrupt vector number for 
RX);

Regards,
Tathagata

Saravanan Ganesan wrote:
> Hello,
>  
> we are using ECOS for our development.  In our environment(PNX 8330) Uart Rx
> is configured in Interrupt
> mode and the handlers are registered using ECOS exported API
> (cyg_interrupt_create) and the handler 
> is attached in interrupt stack using (cyg_interrupt_attach).
>  
> cyg_interrupt_create() returns valid handler, so we can assume that the call
> is success.
> ISR handler is not being called, when we send a character from the
> hyperterminal.  But my uart status
> register says Receive_therslod_int and receive_time_out both happened.
>  
> Could somebody Please, let me know why the ECOS is not calling  ISR handler.
> Should i need do any additional configuration in configuration tool to get
> the handler.
> Should i have to enable some macro to get the same.
>  
> Thanks in advance
> Regards,
> Sarvan G
>
>
>
> DISCLAIMER:
> This message (including attachment if any) is confidential and may be privileged. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited.
> E-mail may contain viruses. Before opening attachments please check them for viruses and defects. While MindTree Consulting Limited (MindTree) has put in place checks to minimize the risks, MindTree will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside.
> Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission.
> MindTree reserves the right to monitor and review the content of all messages sent to or from MindTree e-mail address. Messages sent to or from this e-mail address may be stored on the MindTree e-mail system or else where.
>
>   

-- 
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] 2+ messages in thread

end of thread, other threads:[~2007-09-28  5:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-28  5:03 [ECOS] Need help - UART interrupt handler - ECOS Saravanan Ganesan
2007-09-28  5:34 ` Tathagata Das

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).