FreeRTOS Scheduling question
I have question about freertos scheduling I’m using iar compiler and stm32f427
scheduling method is preemptive, I‘m using the hal library
Current Task are defined as follows:
http://imgur.com/SsotnAs
As shown in Figure SDCARDWRITETask is run every 80ms using vTaskDelayUntil :
http://imgur.com/a/eoyWq
As shown in Figure ISS2OFPRunTask is run every 4ms using vTaskDelayUntil
and semaphore give to OFP2CLAWRunTask run every 8ms, OFP2CLAWRunTask semaphore give to CLAWRunTask, CLAWRunTask semaphore give to CLAW2OFPRunTask :
http://imgur.com/a/6gsTM
**My question this if SDCARDWRITETask execution time 200ms, Is there any impact to other task ? **
is there any problem with scheduling?
FreeRTOS Scheduling question
The question “is there any problem with scheduling?” is not clear, but
given the following description, you should be able to determine how
your tasks will be scheduled. Further you can visualise the scheduling
pattern using the FreeRTOS+Trace tool (http://www.freertos.org/trace).
If you are using pre-emptive scheduling (as you say you are) then the
task selected to run by the FreeRTOS scheduler will always be the
highest priority task that is able to run. A task is able to run if it:
- is not in the Blocked state waiting for an event (message to arrive on a queue, direct to task notification, etc.) or a timeout.
- is not in the Suspended state.