Re: [Xenomai] Context switching with POSIX skin

2018-04-10 Thread Rodrigo Amaducci
Quoting Rodrigo Amaducci : Ok, I manually loaded the module and it works. I just thought that the driver was already loaded from boot (as Analogy drivers are, for example). Thank you very much for the help, I'll see now if using XDDP fixes the context switching

Re: [Xenomai] Context switching with POSIX skin

2018-04-10 Thread Rodrigo Amaducci
Quoting Greg Gallagher : I was able to reproduce the issue, but it only happened if I didn't have the driver loaded. I would try building it as a loadable module then load it and confirm it's running using lsmod. Then run your test application. -Greg Ok, I manually

Re: [Xenomai] Context switching with POSIX skin

2018-04-09 Thread Greg Gallagher
I was able to reproduce the issue, but it only happened if I didn't have the driver loaded. I would try building it as a loadable module then load it and confirm it's running using lsmod. Then run your test application. -Greg On Mon, Apr 9, 2018 at 11:13 PM, Greg Gallagher

Re: [Xenomai] Context switching with POSIX skin

2018-04-09 Thread Greg Gallagher
That looks sane to me, this thread outlines a similar problem: http://xenomai.org/pipermail/xenomai/2017-December/038078.html My CFLAGS and LDFLAGS are slightly different: XENO_CONFIG := $(PATH_TO_STAGE)/usr/xenomai/bin/xeno-config CFLAGS := $(shell DESTDIR=$(PATH_TO_STAGE) $(XENO_CONFIG)

Re: [Xenomai] Context switching with POSIX skin

2018-04-09 Thread rodrigo . amaducci
Quoting Greg Gallagher : Tested on zynq zybo and microzed, the demo works. I built it from stable using the 4.14 ipipe-arm repo and modprobed the module at boot. Are you using a module or building it into the kernel? -Greg I'm building it into the kernel. Since I'm

Re: [Xenomai] Context switching with POSIX skin

2018-04-08 Thread Greg Gallagher
...@embeddedgreg.com; rodrigo.amadu...@uam.es Cc: xenomai@xenomai.org Subject: Re: [Xenomai] Context switching with POSIX skin On 04/06/2018 04:00 PM, Greg Gallagher wrote: > I'll look into it this weekend and see if I can get the demo running > on Zynq or one of my boards. > > On Thu, Apr 5, 201

Re: [Xenomai] Context switching with POSIX skin

2018-04-08 Thread Philippe Gerum
On 04/06/2018 04:00 PM, Greg Gallagher wrote: > I'll look into it this weekend and see if I can get the demo running > on Zynq or one of my boards. > > On Thu, Apr 5, 2018 at 9:25 AM, wrote: >> Quoting Philippe Gerum : >>> >>> >>> You need to enable

Re: [Xenomai] Context switching with POSIX skin

2018-04-06 Thread rodrigo . amaducci
Thank you very much Greg. Quoting Greg Gallagher : I'll look into it this weekend and see if I can get the demo running on Zynq or one of my boards. On Thu, Apr 5, 2018 at 9:25 AM, wrote: Quoting Philippe Gerum : You need

Re: [Xenomai] Context switching with POSIX skin

2018-04-06 Thread Greg Gallagher
I'll look into it this weekend and see if I can get the demo running on Zynq or one of my boards. On Thu, Apr 5, 2018 at 9:25 AM, wrote: > Quoting Philippe Gerum : >> >> >> You need to enable the ipc/xddp driver (CONFIG_XENO_DRIVERS_RTIPC_XDDP) >> in

Re: [Xenomai] Context switching with POSIX skin

2018-04-05 Thread rodrigo . amaducci
Quoting Philippe Gerum : You need to enable the ipc/xddp driver (CONFIG_XENO_DRIVERS_RTIPC_XDDP) in your kernel. -- Philippe. I have recompiled my kernel a couple of times activating all the RTIPC drivers but I'm still getting the same error when running xddp-echo.

Re: [Xenomai] Context switching with POSIX skin

2018-04-03 Thread Philippe Gerum
On 04/03/2018 12:21 PM, rodrigo.amadu...@uam.es wrote: > Thank you Greg and Philippe for the quick response. > > I wasn't aware of the existence of XDDP, and it is exactly what I need. > Problem is that when I run even the xddp-echo.c example from >

Re: [Xenomai] Context switching with POSIX skin

2018-04-03 Thread rodrigo . amaducci
Thank you Greg and Philippe for the quick response. I wasn't aware of the existence of XDDP, and it is exactly what I need. Problem is that when I run even the xddp-echo.c example from http://xenomai.org/documentation/xenomai-3/html/xeno3prm/xddp-echo_8c-example.html I get this error

Re: [Xenomai] Context switching with POSIX skin

2018-04-02 Thread Philippe Gerum
On 04/02/2018 04:54 PM, Greg Gallagher wrote: > I believe you want to look at xddp for communication between RT and > non RT threads: > > http://xenomai.org/documentation/xenomai-3/html/xeno3prm/xddp-echo_8c-example.html > > I don't have much experience with using message queues for RT to >

Re: [Xenomai] Context switching with POSIX skin

2018-04-02 Thread Greg Gallagher
I believe you want to look at xddp for communication between RT and non RT threads: http://xenomai.org/documentation/xenomai-3/html/xeno3prm/xddp-echo_8c-example.html I don't have much experience with using message queues for RT to non-RT communications but I believe using a message queue with a

[Xenomai] Context switching with POSIX skin

2018-04-02 Thread rodrigo . amaducci
Hello, I'm currently working on a program that, basically, reads some data from a DAQ device periodically, performs some calculations over it and writes the result back to the DAQ. All these operations are performed by a real-time thread (using POSIX skin), while a second non real-time thread