Why RTEMS timeslice is not as configured.
chrisj at rtems.org
Tue Jul 9 02:52:34 UTC 2013
Fernando Nicodemos wrote:
> I configured 4 equal Tasks in RTEMS and the table as follows:
> Task_name[ 0 ],
> RTEMS_MINIMUM_STACK_SIZE * 2,
> RTEMS_PREEMPT | RTEMS_TIMESLICE | RTEMS_ASR | RTEMS_INTERRUPT_LEVEL(0),
> &Task_id[ 0 ]
> They will operate in round-robin.
> #define CONFIGURE_MICROSECONDS_PER_TICK 10000
> #define CONFIGURE_TICKS_PER_TIME_SLICE 50
> The result should show a timeslice of 500 milisseconds, but what i see
> in osciloscope is more then 500ms, exactly 834ms. This code is running
> in a ERC32 development kit from Atmel.
> Any ideas what is missing for this extra time?
Did you check the timer is operating at the correct frequency ?
More information about the users