Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-09 Thread Gilles Chanteperdrix
On 01/09/2014 10:21 AM, Gilles Chanteperdrix wrote: On 01/09/2014 03:51 AM, Nima Nourozi wrote: On Mon, Jan 6, 2014 at 2:48 PM, Gilles Chanteperdrix < gilles.chanteperd...@xenomai.org> wrote: On 01/06/2014 11:47 PM, Nima Nourozi wrote: I'm not seeing the latency command on my board. Is it par

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-09 Thread Gilles Chanteperdrix
On 01/09/2014 03:51 AM, Nima Nourozi wrote: > On Mon, Jan 6, 2014 at 2:48 PM, Gilles Chanteperdrix < > gilles.chanteperd...@xenomai.org> wrote: > >> On 01/06/2014 11:47 PM, Nima Nourozi wrote: >>> I'm not seeing the latency command on my board. Is it part of xenomai? >> I'm >>> using buildroot for

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-09 Thread Gilles Chanteperdrix
On 01/09/2014 03:51 AM, Nima Nourozi wrote: > On Mon, Jan 6, 2014 at 2:48 PM, Gilles Chanteperdrix < > gilles.chanteperd...@xenomai.org> wrote: > >> On 01/06/2014 11:47 PM, Nima Nourozi wrote: >>> I'm not seeing the latency command on my board. Is it part of xenomai? >> I'm >>> using buildroot for

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-08 Thread Nima Nourozi
On Mon, Jan 6, 2014 at 2:48 PM, Gilles Chanteperdrix < gilles.chanteperd...@xenomai.org> wrote: > On 01/06/2014 11:47 PM, Nima Nourozi wrote: > > I'm not seeing the latency command on my board. Is it part of xenomai? > I'm > > using buildroot for my filesystem. > > It may not be installed in /usr/

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-06 Thread Gilles Chanteperdrix
On 01/06/2014 11:47 PM, Nima Nourozi wrote: > I'm not seeing the latency command on my board. Is it part of xenomai? I'm > using buildroot for my filesystem. It may not be installed in /usr/bin Try "xeno latency" -- Gilles. _

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-06 Thread Nima Nourozi
I'm not seeing the latency command on my board. Is it part of xenomai? I'm using buildroot for my filesystem. On Mon, Jan 6, 2014 at 2:11 PM, Gilles Chanteperdrix < gilles.chanteperd...@xenomai.org> wrote: > On 01/06/2014 10:54 PM, Gilles Chanteperdrix wrote: > > On 01/06/2014 10:52 PM, Nima Nou

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-06 Thread Nima Nourozi
On Mon, Jan 6, 2014 at 1:54 PM, Gilles Chanteperdrix < gilles.chanteperd...@xenomai.org> wrote: > On 01/06/2014 10:52 PM, Nima Nourozi wrote: > > On Mon, Jan 6, 2014 at 1:45 PM, Gilles Chanteperdrix < > > gilles.chanteperd...@xenomai.org> wrote: > > > >> On 01/06/2014 08:10 PM, Nima Nourozi wrote:

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-06 Thread Gilles Chanteperdrix
On 01/06/2014 10:54 PM, Gilles Chanteperdrix wrote: > On 01/06/2014 10:52 PM, Nima Nourozi wrote: >> On Mon, Jan 6, 2014 at 1:45 PM, Gilles Chanteperdrix < >> gilles.chanteperd...@xenomai.org> wrote: >> >>> On 01/06/2014 08:10 PM, Nima Nourozi wrote: Here is the task initialization code:

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-06 Thread Gilles Chanteperdrix
On 01/06/2014 10:52 PM, Nima Nourozi wrote: > On Mon, Jan 6, 2014 at 1:45 PM, Gilles Chanteperdrix < > gilles.chanteperd...@xenomai.org> wrote: > >> On 01/06/2014 08:10 PM, Nima Nourozi wrote: >>> Here is the task initialization code: >>> >>> *rtdm_printk("kicking of tasklet...\n");* >>> * retval

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-06 Thread Nima Nourozi
On Mon, Jan 6, 2014 at 1:45 PM, Gilles Chanteperdrix < gilles.chanteperd...@xenomai.org> wrote: > On 01/06/2014 08:10 PM, Nima Nourozi wrote: > > Here is the task initialization code: > > > > *rtdm_printk("kicking of tasklet...\n");* > > * retval = rtdm_task_init(&heartbeat_task, "spi_transfer", >

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-06 Thread Nima Nourozi
On Mon, Jan 6, 2014 at 1:25 PM, Gilles Chanteperdrix < gilles.chanteperd...@xenomai.org> wrote: > On 01/06/2014 10:25 PM, Nima Nourozi wrote: > > On Mon, Jan 6, 2014 at 12:00 PM, Gilles Chanteperdrix < > > gilles.chanteperd...@xenomai.org> wrote: > > > >> On 01/06/2014 08:10 PM, Nima Nourozi wrote

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-06 Thread Gilles Chanteperdrix
On 01/06/2014 10:40 PM, Nima Nourozi wrote: > [] (do_undefinstr+0x0/0x1f0) from [] > (__und_svc+0x54/0x80) The problem is do_undefinstr, which usually indicates a bug whether intentional (using the BUG macro) or not. The rest are false positive due to the debug checks happening during the handling

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-06 Thread Gilles Chanteperdrix
On 01/06/2014 08:10 PM, Nima Nourozi wrote: > Here is the task initialization code: > > *rtdm_printk("kicking of tasklet...\n");* > * retval = rtdm_task_init(&heartbeat_task, "spi_transfer", > xx_start_transfer, NULL, 99, 1 /* 100 ms */);* > * __ipipe_serial_debug("***return value = %d

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-06 Thread Gilles Chanteperdrix
On 01/06/2014 10:25 PM, Nima Nourozi wrote: > On Mon, Jan 6, 2014 at 12:00 PM, Gilles Chanteperdrix < > gilles.chanteperd...@xenomai.org> wrote: > >> On 01/06/2014 08:10 PM, Nima Nourozi wrote: >> >>> [] (do_undefinstr+0x0/0x1c8) from [] >>> (__und_svc+0x54/0x80) >>> >> >> What is interesting is w

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-06 Thread Nima Nourozi
On Mon, Jan 6, 2014 at 12:00 PM, Gilles Chanteperdrix < gilles.chanteperd...@xenomai.org> wrote: > On 01/06/2014 08:10 PM, Nima Nourozi wrote: > >> [] (do_undefinstr+0x0/0x1c8) from [] >> (__und_svc+0x54/0x80) >> > > What is interesting is what triggers this __und_svc. Will check if I can > reprod

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-06 Thread Gilles Chanteperdrix
On 01/06/2014 08:10 PM, Nima Nourozi wrote: [] (do_undefinstr+0x0/0x1c8) from [] (__und_svc+0x54/0x80) What is interesting is what triggers this __und_svc. Will check if I can reproduce this bug on at91sam9263. Could you try and disable CONFIG_KGDB in the mean-time? Regards. --

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-06 Thread Nima Nourozi
On Sun, Jan 5, 2014 at 11:58 PM, Philippe Gerum wrote: > 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 >>> >

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-06 Thread Philippe Gerum
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 mailto:r...@xenomai.org>> wrote: On 01/04/2014 09:29 PM, Nima Nourozi wrote: Here is the t

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-05 Thread Nima Nourozi
On Sun, Jan 5, 2014 at 4:02 AM, Philippe Gerum wrote: > On 01/05/2014 01:25 AM, Nima Nourozi wrote: > >> On Sat, Jan 4, 2014 at 2:57 PM, Philippe Gerum > > wrote: >> >> On 01/04/2014 09:29 PM, Nima Nourozi wrote: >> >> Here is the task function. But I'm not se

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-05 Thread Gilles Chanteperdrix
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 > > wrote: >> >> On 01/04/2014 09:29 PM, Nima Nourozi wrote: >> >> Here is the task function. But I'm not seeing the pri

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-05 Thread Gilles Chanteperdrix
On 01/05/2014 01:31 AM, Nima Nourozi wrote: > On Sat, Jan 4, 2014 at 3:01 PM, Gilles Chanteperdrix < > gilles.chanteperd...@xenomai.org> wrote: > >> On 01/04/2014 10:31 PM, Nima Nourozi wrote: >>> On Sat, Jan 4, 2014 at 1:24 PM, Gilles Chanteperdrix < >>> gilles.chanteperd...@xenomai.org> wrote: >

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-05 Thread Philippe Gerum
On 01/05/2014 01:25 AM, Nima Nourozi wrote: On Sat, Jan 4, 2014 at 2:57 PM, Philippe Gerum mailto:r...@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) {

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-04 Thread Nima Nourozi
On Sat, Jan 4, 2014 at 3:01 PM, Gilles Chanteperdrix < gilles.chanteperd...@xenomai.org> wrote: > On 01/04/2014 10:31 PM, Nima Nourozi wrote: > > On Sat, Jan 4, 2014 at 1:24 PM, Gilles Chanteperdrix < > > gilles.chanteperd...@xenomai.org> wrote: > > > >> On 01/04/2014 09:29 PM, Nima Nourozi wrote:

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-04 Thread Nima Nourozi
On Sat, Jan 4, 2014 at 2:57 PM, Philippe Gerum 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()

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-04 Thread Gilles Chanteperdrix
On 01/04/2014 10:31 PM, Nima Nourozi wrote: > On Sat, Jan 4, 2014 at 1:24 PM, Gilles Chanteperdrix < > gilles.chanteperd...@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)

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-04 Thread Philippe Gerum
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

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-04 Thread Nima Nourozi
On Sat, Jan 4, 2014 at 1:24 PM, Gilles Chanteperdrix < gilles.chanteperd...@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(); > > rtdm_printk("hel

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-04 Thread Gilles Chanteperdrix
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(); > rtdm_printk("hello world\n"); > } Two things to try: - see if: latency -t 1 -p 10 has the same issue? - xenomai 2.6.3 i

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-04 Thread Nima Nourozi
Here is the task function. But I'm not seeing the printout. void xx_start_transfer(void *arg) { rtdm_wait_period(); rtdm_printk("hello world\n"); } On Sat, Jan 4, 2014 at 11:27 AM, Philippe Gerum wrote: > On 01/04/2014 07:18 PM, Gilles Chanteperdrix wrote: > >> On 01/04/2014 10:06 AM, Phil

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-04 Thread Philippe Gerum
On 01/04/2014 07:18 PM, Gilles Chanteperdrix wrote: On 01/04/2014 10:06 AM, Philippe Gerum wrote: On 01/04/2014 01:48 AM, Nima Nourozi wrote: I'm writing an SPI device driver using rtdm skin. If I call rtdm_task_init from anywhere in the code the system freezes indefinitely with no errors throw

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-04 Thread Gilles Chanteperdrix
On 01/04/2014 10:06 AM, Philippe Gerum wrote: > On 01/04/2014 01:48 AM, Nima Nourozi wrote: >> I'm writing an SPI device driver using rtdm skin. If I call rtdm_task_init >> from anywhere in the code the system freezes indefinitely with no errors >> thrown. >> >> Here is how I call the function in _

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-04 Thread Philippe Gerum
On 01/04/2014 01:48 AM, Nima Nourozi wrote: I'm writing an SPI device driver using rtdm skin. If I call rtdm_task_init from anywhere in the code the system freezes indefinitely with no errors thrown. Here is how I call the function in __init function of my module: retval = rtdm_task_init(&heartb

Re: [Xenomai] rtdm_task_init call freezes the system

2014-01-03 Thread Nima Nourozi
I forgot to add that my chip is AT91SAM9260 ___ Xenomai mailing list Xenomai@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai

[Xenomai] rtdm_task_init call freezes the system

2014-01-03 Thread Nima Nourozi
I'm writing an SPI device driver using rtdm skin. If I call rtdm_task_init from anywhere in the code the system freezes indefinitely with no errors thrown. Here is how I call the function in __init function of my module: retval = rtdm_task_init(&heartbeat_task, "spi_transfer", xx_start_transfer, N