Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTAPI_TASK_PLL_SUPPORT not present #81

Open
narogon opened this issue Oct 21, 2019 · 4 comments
Open

RTAPI_TASK_PLL_SUPPORT not present #81

narogon opened this issue Oct 21, 2019 · 4 comments

Comments

@narogon
Copy link

narogon commented Oct 21, 2019

Hi @sittner,

I've just installed new versions. (ec-debianized and hal components).

But when I load lcec with config file that contains refClockSyncCycles="-1" it says that RTAPI_TASK_PLL_SUPPORT not present.
I've just downloaded a fresh linuxcnc 2.7.14 and applied the patch. Configured with ./configure uspace , created the .deb packages and installed like always.

I'm running SMP PREEMPT RT Debian 4.9.168-1+deb9u4 (2019-07-19)

Any idea of what I'm doing bad? Any way to investigate/solve this?

I would really appreciate your help because I'm stuck with this and I'm so hopeful this version solve my syncs problems.

@narogon
Copy link
Author

narogon commented Oct 23, 2019

I've achieved run linuxcnc with pll but I don't know if something is wrong in my configuration or I miss something.

In

#ifdef RTAPI_TASK_PLL_SUPPORT
it checks if RTAPI_TASK_PLL_SUPPORT is defined.
I've searched where is defined it and discover that it is in rtapi.h after applying the patch.

#if defined(RTAPI_USPACE) || defined(USPACE) #define RTAPI_TASK_PLL_SUPPORT

But rtapi_uspace or uspace are not defined nowhere but config.h
I added a #include config.h to lcec_main.c and now pll pin are created and no warning message is printed.

Is it correct???

@wilsonxiao
Copy link

Hi, @narogon
Have you solved this problem?
How to do it? And does it support RTAI Debian?(Linux debian 3.4-9-rtai-686-pae #1 SMP PREEMPT Debian 3.4.55-4linuxcnc i686 GNU/Linux)

@narogon
Copy link
Author

narogon commented Jan 13, 2020

Hi, @narogon
Have you solved this problem?
How to do it? And does it support RTAI Debian?(Linux debian 3.4-9-rtai-686-pae #1 SMP PREEMPT Debian 3.4.55-4linuxcnc i686 GNU/Linux)

I explained in my last paragraph.

I added a #include config.h to lcec_main.c and now pll pin are created and no warning message is printed.

But I don't know if it is the correct way to solve this.

@StormholtVaerks
Copy link

This worked for me aswell, i dont even know where the config.h is located in my system, i just wrote #include "config.h" in lcec_main.c
My original problem was: undefined symbol: rtapi_task_set_correction

thank you narogon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants