TASK Deadline and Disabling CACHE BYPASS

Forum related to ERIKA Enterprise and RT-Druid version 2

Moderator: paolo.gai

Post Reply
amitdey1314
Newbie
Posts: 16
Joined: Tue Mar 22, 2016 6:37 pm

TASK Deadline and Disabling CACHE BYPASS

Post by amitdey1314 » Fri Apr 08, 2016 2:00 pm

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

Post Reply