From: Philippe Gerum <rpm@xenomai.org>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] rtdm_task_init call freezes the system
Date: Mon, 06 Jan 2014 08:58:37 +0100 [thread overview]
Message-ID: <52CA622D.806@xenomai.org> (raw)
In-Reply-To: <52C9B255.7030702@xenomai.org>
On 01/05/2014 08:28 PM, Gilles Chanteperdrix wrote:
> On 01/05/2014 01:02 PM, Philippe Gerum wrote:
>> On 01/05/2014 01:25 AM, Nima Nourozi wrote:
>>> On Sat, Jan 4, 2014 at 2:57 PM, Philippe Gerum <rpm@xenomai.org
>>> <mailto:rpm@xenomai.org>> wrote:
>>>
>>> On 01/04/2014 09:29 PM, Nima Nourozi wrote:
>>>
>>> Here is the task function. But I'm not seeing the printout.
>>>
>>> void xx_start_transfer(void *arg) {
>>> rtdm_wait_period();
>>>
>>>
>>> What about checking the return code of rtdm_wait_period()? If
>>> something goes wrong there, you do want to know, instead of entering
>>> a tight runaway loop.
>>>
>>> --
>>> Philippe.
>>>
>>>
>>> I can't print anything since the system freezes so I don't know how I
>>> can check return value? Also, what loop are you referring to I don't
>>> have a loop just a print statement.
>>
>> It does not make sense to have a single wait statement in a periodic
>> task, you should have a loop. Or you don't have periodic task. So your
>> task should implement a loop.
>>
>> To force a direct output through the serial console port, you may want
>> to try enabling DEBUG_LL and IPIPE_DEBUG, then call
>> __ipipe_serial_debug(), instead of printk. Do not use this in regular
>> code, this is for debugging purpose only, in mostly hopeless situations
>> where using buffered console output is not an option.
>
> I do not think 2.6.38 has __ipipe_serial_debug,
It does. printascii() alone would not prevent output races, so it's
better to use __ipipe_serial_debug() for this.
it as printascii though.
>
>
--
Philippe.
next prev parent reply other threads:[~2014-01-06 7:58 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-04 0:48 [Xenomai] rtdm_task_init call freezes the system Nima Nourozi
2014-01-04 9:06 ` Philippe Gerum
2014-01-04 18:18 ` Gilles Chanteperdrix
2014-01-04 19:27 ` Philippe Gerum
2014-01-04 20:29 ` Nima Nourozi
2014-01-04 21:24 ` Gilles Chanteperdrix
2014-01-04 21:31 ` Nima Nourozi
2014-01-04 23:01 ` Gilles Chanteperdrix
2014-01-05 0:31 ` Nima Nourozi
2014-01-05 13:09 ` Gilles Chanteperdrix
2014-01-04 22:57 ` Philippe Gerum
2014-01-05 0:25 ` Nima Nourozi
2014-01-05 12:02 ` Philippe Gerum
2014-01-05 19:28 ` Gilles Chanteperdrix
2014-01-06 7:58 ` Philippe Gerum [this message]
2014-01-06 19:10 ` Nima Nourozi
2014-01-06 20:00 ` Gilles Chanteperdrix
2014-01-06 21:25 ` Nima Nourozi
2014-01-06 21:25 ` Gilles Chanteperdrix
2014-01-06 21:40 ` Nima Nourozi
2014-01-06 21:42 ` Gilles Chanteperdrix
2014-01-06 21:45 ` Gilles Chanteperdrix
2014-01-06 21:52 ` Nima Nourozi
2014-01-06 21:54 ` Gilles Chanteperdrix
2014-01-06 22:11 ` Gilles Chanteperdrix
2014-01-06 22:47 ` Nima Nourozi
2014-01-06 22:48 ` Gilles Chanteperdrix
2014-01-09 2:51 ` Nima Nourozi
2014-01-09 8:33 ` Gilles Chanteperdrix
2014-01-09 9:21 ` Gilles Chanteperdrix
2014-01-09 9:56 ` Gilles Chanteperdrix
2014-01-06 22:46 ` Nima Nourozi
2014-01-05 20:54 ` Nima Nourozi
-- strict thread matches above, loose matches on Subject: below --
2014-01-04 0:54 Nima Nourozi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52CA622D.806@xenomai.org \
--to=rpm@xenomai.org \
--cc=gilles.chanteperdrix@xenomai.org \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.