* [Xenomai-help] Too much Interrupt
@ 2008-03-19 19:41 Hubert Talbot
2008-04-09 15:00 ` Gilles Chanteperdrix
0 siblings, 1 reply; 5+ messages in thread
From: Hubert Talbot @ 2008-03-19 19:41 UTC (permalink / raw)
To: xenomai
Hi,
I work with Sensoray S626 IO card.
My test consists in generating signal with a calibrator, one per second during 5 seconds.
I use rt_intr_wait and I get about 50000 interrupts, I have to filter them to count only the good ones (5).
The provided demo does not behave this way. It receives only the ones generated by the calibrator.
Where do the ~50000 interrupts come from?
Thanks
Hubert
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Xenomai-help] Too much Interrupt
2008-03-19 19:41 [Xenomai-help] Too much Interrupt Hubert Talbot
@ 2008-04-09 15:00 ` Gilles Chanteperdrix
2008-04-09 15:06 ` Breno Carneiro Pinheiro
2008-04-09 15:36 ` [Xenomai-help] Rép. : " Hubert Talbot
0 siblings, 2 replies; 5+ messages in thread
From: Gilles Chanteperdrix @ 2008-04-09 15:00 UTC (permalink / raw)
To: Hubert Talbot; +Cc: xenomai
Hubert Talbot wrote:
> Hi,
>
> I work with Sensoray S626 IO card.
>
> My test consists in generating signal with a calibrator, one per second during 5 seconds.
>
> I use rt_intr_wait and I get about 50000 interrupts, I have to filter them to count only the good ones (5).
>
> The provided demo does not behave this way. It receives only the ones generated by the calibrator.
>
> Where do the ~50000 interrupts come from?
A stupid advice: did you check rt_intr_wait return value ? Maybe
something is badly configured and rt_intr_wait returns an error 50000
times ?
--
Gilles.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Xenomai-help] Too much Interrupt
2008-04-09 15:00 ` Gilles Chanteperdrix
@ 2008-04-09 15:06 ` Breno Carneiro Pinheiro
2008-04-09 15:13 ` Gilles Chanteperdrix
2008-04-09 15:36 ` [Xenomai-help] Rép. : " Hubert Talbot
1 sibling, 1 reply; 5+ messages in thread
From: Breno Carneiro Pinheiro @ 2008-04-09 15:06 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: Hubert Talbot, xenomai
[-- Attachment #1: Type: text/plain, Size: 823 bytes --]
I'm not sure whether my e-mail has been received or not, so I'm posting it
again. Sorry replications.
Hi all, I'm trying to embed the
linux-2.6.24 with xenomai-2.4.3 on powerpc processor. Although when I try
to execute
/scripts/prepare-kernel.sh on xenomai directory I unfortunately get the
message at the end :
patching file Makefile
patching file arch/powerpc/Kconfig
patching file arch/powerpc/boot/Makefile
patching file arch/powerpc/kernel/Makefile
patching file arch/powerpc/kernel/asm-offsets.c
patching file arch/powerpc/kernel/cputable.c
Hunk #1 succeeded at 1333 (offset -79 lines).
Hunk #2 succeeded at 1380 (offset -79 lines).
patching file arch/powerpc/kernel/entry_32.S
......
Unable to patch kernel 2.6.24.4 with adeos-ipipe....
Have you seen this problem? Could you give me some tips?
Thanks,
Breno
[-- Attachment #2: Type: text/html, Size: 1023 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Xenomai-help] Rép. : Re: Too much Interrupt
2008-04-09 15:00 ` Gilles Chanteperdrix
2008-04-09 15:06 ` Breno Carneiro Pinheiro
@ 2008-04-09 15:36 ` Hubert Talbot
1 sibling, 0 replies; 5+ messages in thread
From: Hubert Talbot @ 2008-04-09 15:36 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
There is no more problem (sorry for omitting advice).
It was not related to Xenomai. The problem was with the I/O card.
rt_intr_* calls were not sufficient. I had to make I/O card API calls too.
Something like this:
while (!end)
{
rt_intr_wait();
// disable interrupts
rt_intr_disable();
InterruptEnable(board, FALSE); <-------------- this call was not there when the problem was
processing...
// reenable interrupts
rt_intr_enable();
InterruptEnable(board, TRUE);
}
Thanks
Hubert
>>> Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> 2008-04-09 11:00:04 >>>
Hubert Talbot wrote:
> Hi,
>
> I work with Sensoray S626 IO card.
>
> My test consists in generating signal with a calibrator, one per second during 5 seconds.
>
> I use rt_intr_wait and I get about 50000 interrupts, I have to filter them to count only the good ones (5).
>
> The provided demo does not behave this way. It receives only the ones generated by the calibrator.
>
> Where do the ~50000 interrupts come from?
A stupid advice: did you check rt_intr_wait return value ? Maybe
something is badly configured and rt_intr_wait returns an error 50000
times ?
--
Gilles.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-04-09 15:36 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-19 19:41 [Xenomai-help] Too much Interrupt Hubert Talbot
2008-04-09 15:00 ` Gilles Chanteperdrix
2008-04-09 15:06 ` Breno Carneiro Pinheiro
2008-04-09 15:13 ` Gilles Chanteperdrix
2008-04-09 15:36 ` [Xenomai-help] Rép. : " Hubert Talbot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.