TASK Deadline and Disabling CACHE BYPASS

Forum related to ERIKA Enterprise and RT-Druid version 2

Moderator: paolo.gai

Locked
amitdey1314

TASK Deadline and Disabling CACHE BYPASS

Post by amitdey1314 »

Hello,

I am using Erika OS on my Aurix Tricore TC297TF.
I would like to ask 2 questions.
1) I would like to know if there is a way to define a Deadline for a Task. For e.g if i have a 100ms TASK, the Task should not take more than 100ms to execute.
2) I am Aware that ICAHE and DCACHE are enabled by Default, but the Cache bypass is active by Default on reset. I Need to disable the Cache Bypass. Is there any API to do that. I tried doing the following below but i am not sure if it works.
Ifx_CPU_PCON0 pcon0;
Ifx_CPU_DCON0 dcon0;

pcon0.B.PCBYP = 0;
dcon0.B.DCBYP = 0;

Thanking in advance

Regards,
Amit Dey
Locked