Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


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 ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

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

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner