Oil Enquiry: REL_DEADLINE

Forum related to ERIKA Enterprise and RT-Druid version 2

Moderator: paolo.gai

Post Reply
yasserfathy
Newbie
Posts: 2
Joined: Wed Apr 20, 2016 1:30 pm

Oil Enquiry: REL_DEADLINE

Post by yasserfathy » Wed Apr 20, 2016 6:22 pm

Hello and thanks for your services,

I would like to ask a question concerning RT-Druid and the oil language, I'm trying to compile a project that uses erika os, a linking error was produced stating that the variable 'EE_th_absdline' is undefined, the following are the ways 'EE_th_absdline' is used in the code:

EE_th_absdline[t] = EE_hal_gettime()+EE_th_reldline[t];

and

if (t == EE_NIL || // this test works also for the main task
(EE_stk_queryfirst() != EE_NIL &&
((EE_STIME)(EE_th_absdline[EE_stk_queryfirst()] - EE_th_absdline[t]) <= 0
|| EE_sys_ceiling >= EE_th_ready_prio[t])))

so I assumed that this array should be generated by RT-Druid from the oil file, and that it should contain the absolute deadlines for all threads.

so I checked the thread definition in the oil file and found that it contains a variable called "REL_DEADLINE" that is filled with type "string".

the problem is that I don't know how to set this variable and it isn't mentioned in the oil 2.5 documentation, and when I set it with random strings, nothing changes in the eecfg.c, eecfg.h files.

Hope you can refer me to the documentation where this variable is described so that the 'EE_th_absdline' array definition would be produced.

Thanks.

paolo.gai
Administrator
Posts: 875
Joined: Thu Dec 07, 2006 12:11 pm

Re: Oil Enquiry: REL_DEADLINE

Post by paolo.gai » Fri Apr 22, 2016 10:18 am

That is part of the EDF kernel, just check the examples on EDF for the dsPIC... they should work.

PJ

yasserfathy
Newbie
Posts: 2
Joined: Wed Apr 20, 2016 1:30 pm

Re: Oil Enquiry: REL_DEADLINE

Post by yasserfathy » Tue Apr 26, 2016 1:00 pm

thanks paolo for your help,

but the linker produces errors in the semaphore files ee_spost.c, ee_swait.c , in both cases the compiler options are as follows
/***********************************************/
#if defined(__FP__)

some code

#else

the code that uses EE_th_absdline

#endif

/***********************************************/

and it isn't a part of EDF code, or is there a problem in the source code?

Post Reply