Page 1 of 1

Task overrun

Posted: Thu Sep 21, 2017 12:54 pm
by szalokicsiga
Hi,
Is it possible to detect somehow task overrun? I mean if a task wants to be started, but it has not finished running yet.
For example cycle time is 5ms, but runtime of the task is 10ms. Can we detect this?

Thanks in advance!

Re: Task overrun

Posted: Thu Sep 21, 2017 1:21 pm
by paolo.gai
Yes and no...
- on OSEK you can set the pending activations to 1. when you activate, if the task did not finish yet, you'll get an error.
- on a AUTOSAR configuration on Tricore you can set the WCET as part of the timing protection

Other methods can be implemented with kernel customizations...

Ciao,

PJ