Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

FreeRTOS Scheduling question

Posted by e12 on July 27, 2016

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

Posted by rtel on July 27, 2016

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.

If there are more than one tasks at the highest priority that is able to run, then the task that has been waiting to run the longest will be selected. Then, if configUSE_TIMESLICING is set to 1 (or just not defined, in which case it will default to 1), tasks or equal priority will be selected in turn on each tick interrupt.......but as soon as a higher priority task because able to run the scheduler will switch to that higher priority task.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists