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

cortex m3 idle taks priority question !

Posted by boogalee on January 21, 2016

Hi

finally i had succeed porting to my boad

and then i had created multiple tasks, and i got a questions.

FreeRTOS doc siad cortex m3's priority is specially low value is high priority meaning.

and FreeRTOS setting's priority of idle task was set 0. highest priority !

i had set my task's priority 1,2,3.. over 0.

then, idle task's priority is top of all. here, is it possible to run other task ? becausen they have lower priority.

but... my program was run very well..

im very confusing.. help me..

Regrads


cortex m3 idle taks priority question !

Posted by rtel on January 21, 2016

You are confusing task priorities with interrupt priorities.

RTOS tasks are created by software and scheduled by software, and run when an interrupt is not running. Which RTOS task runs when is decided by software (the RTOS scheduler). In FreeRTOS the lower the task priority number the lower the task's priority (which in my humble opinion is logical).

Interrupts will interrupt non-interrupt code, and which interrupt executes when is controlled by hardware. The RTOS software cannot influence how the hardware prioritises interrupts, in fact this is not really an RTOS question, no software can influence how the hardware prioritises interrupt. On ARM Cortex-M architectures (but very few other architectures) the lower the interrupt priority number the higher the interrupt's priority (which in my humble opinion is illogical).


cortex m3 idle taks priority question !

Posted by boogalee on January 21, 2016

Thank you so much !!

yes. i just confued between Interrupt priority and task priority.

my setting was so natural result lol.

BTW, i had one more question about config.h's two things.

configUSEPREEMPTION configIDLESHOULD_YIELD

if i define two things 0, and i set idle taks's priority 0, other task which i made to 0

is it impossible to run other tasks ?

i had understad about upper configurations to 0, it can't be preemptive & time slicing.

configIDLESHOULDYIELD 1 allow time slicing.

what happened ?

other task is ruuning.

Regrads.


cortex m3 idle taks priority question !

Posted by boogalee on January 21, 2016

oh. i confused just preemptive and cooperative multitasking's meaning.

Thanks anyway

Regrads.


cortex m3 idle taks priority question !

Posted by rtel on January 21, 2016

I think if configUSEPREEMPTION and configIDLESHOULD_YIELD are both 0 then probably only the idle task would run - but its not a normal configuration and I've not checked.

These settings do not control time slicing though, that is controlled by configUSETIMESLICING.


[ 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