Hi Bari, hi Nicklas
Many thanks for your help/proposals. I did some more experiments: I created a RTAI module (with no LinuxCNC code). This module only does: * Create a RTAI task, call rt_get_real_time_ns() and log this time This way I can see the time changing. It means RTAI setup is fine and my issue is with LCNC HAL or the LCNC HAL module I use (LCEC). I will try to create a simple RT HAL module with the same feature as above and so determine where the issue is located. J-P ________________________________ From: bari <bari00...@gmail.com> Sent: Tuesday, July 24, 2018 9:08:46 PM To: emc-developers@lists.sourceforge.net Subject: Re: [Emc-developers] [RTAI] rtapi_get_time() returns a constant J-P, Ask Paolo on the RTAI mailing list. https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai -Bari On 07/24/2018 11:26 AM, Miceli Jean-Pierre wrote: > Hi all, > > > I'm J-P working for the REDS institute (Reconfigurable & Embedded Digital > Systems) from the HEIG-VD (School of Management and Engineering Vaud), > Switzerland. > > > I started a project with LinuxCNC. As initial ramp-up with the src code, I > try to integrate the support for Beckhoff EL2252 digital outputs (EtherCAT > module, using LCEC HAL module). > > > After some experiments, I found that RTAPI (rtapi_get_time) or RTAI > (rt_get_time() timer related functions are not working on my setup: they > return a constant value. I checked if the RT Timer was started (using RTAPI > and RTAI functions), all seems OK. > > > Most probably, the configuration of the used HW timer is not correct. > > Didi you already have this kind of issue ? Did you have any hints on how to > fix it ? > > > Setup: > > * LinuxCNC 2.7.13 install from the live CD > * machine: Linux A23PC05-linuxCNC 3.4-9-rtai-686-pae #1 SMP PREEMPT > Debian 3.4.55-4linuxcnc i686 GNU/Linux > > > Many thanks for your help > J-P > > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Emc-developers mailing list > Emc-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-developers ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers