Hi everyone,
I am working on a CK3E board, I would like to use function coming from Xenomai API.
First, the Xenomai version used is the 2.6.5 - Nucleus one.
According to a ' cat /proc/xenomai/stat ' and ' cat /proc/xenomai/sched ' cmd I noticed that the CAPPs are in RT class. Therefore, these CAPPs tasks are used as real time tasks. They perform some mode switch (primary to secondary) and this is not an issue in our use case.
Unfortunately, I would like to use some Xenomai functions which are included in the native API but I am facing the following issue:
- "undefined reference to `rt_task_sleep' "
native/task.h header file is included in my CAPP .c file and as expected the function is well declared. But it seems that the linker does not find the definition of the function. I am a bit surprised. Indeed, the -lxenomai is included in the LIBS used in the makefile.
Does anyone have an idea on what is going wrong ?