Skip to contentSkip to conversation

unexpected rt_task_sleep behaviour

Xenomai-help Christian Kapeller 2 participants 2 messages Jun 15, 2011

lore
Share & tools
lore
#0 lore raw

Hi,

I am using a KARO TX-51 board (imx 515) running linux 2.6.31.12 + karo supplied bsp patches. Xenomai is at version 2.5.6

In a userspace task i create an interrupt, and want to wait for 1 to 14 ms. If I supply any non zero delay to rt_task_sleep, I get a delay of 830 ms (measured on scope) no matter what delay argument i use.

It seems something got wrong with the adeos patch. I also experience that the serial console is quite laggy.

Can anyone give me some pointers where to start investigating this
matter?

Regards,
Christian

#1 lore raw
Quoted 9 lines · Christian Kapeller

Hi,

I am using a KARO TX-51 board (imx 515) running linux 2.6.31.12 + karo supplied bsp patches. Xenomai is at version 2.5.6

In a userspace task i create an interrupt, and want to wait for 1 to 14 ms. If I supply any non zero delay to rt_task_sleep, I get a delay of 830 ms (measured on scope) no matter what delay argument i use.

Quoted 5 lines

It seems something got wrong with the adeos patch. I also experience that the serial console is quite laggy.

Can anyone give me some pointers where to start investigating this
matter?

Please try cat /proc/xenomai/timer. You should see something like:
status=on:setup=1777:clock=503449790:timerdev=at91_tc0:clockdev=at91_tc0

If the "setup" time is very large, please try the following patch:
http://git.xenomai.org/?p=xenomai-head.git;a=commitdiff_plain;h=2442425ef628583485ece62cd637c1e6be500514;hp=7c901b868a4e96bba34311ed349b61ea74717c85

Signature · 1 line
                                                                Gilles.