Quality RTOS & Embedded Software

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


Loading

Can timer task and idle task use dynamic allocation when configSUPPORT_STATIC_ALLOCATION and configSUPPORT_STATIC_ALLOCATION are both set to 1

Posted by magicse7en on February 28, 2019

Hello,

If configSUPPORTSTATICALLOCATION and configSUPPORTDYNAMICALLOCATION are both set to 1, timer task and idle task will use static allocation. Can timer task and idle task use dynamic allocation when configSUPPORTSTATICALLOCATION and configSUPPORTDYNAMICALLOCATION are both set to 1 ? Version: FreeRTOS v10.2.0

Thanks!


Can timer task and idle task use dynamic allocation when configSUPPORT_STATIC_ALLOCATION and configSUPPORT_STATIC_ALLOCATION are both set to 1

Posted by rtel on February 28, 2019

No. If static allocation is enabled the timer task and idle task must be statically allocated.


Can timer task and idle task use dynamic allocation when configSUPPORT_STATIC_ALLOCATION and configSUPPORT_STATIC_ALLOCATION are both set to 1

Posted by magicse7en on March 1, 2019

OK, Thanks.


Can timer task and idle task use dynamic allocation when configSUPPORT_STATIC_ALLOCATION and configSUPPORT_STATIC_ALLOCATION are both set to 1

Posted by richarddamon on March 2, 2019

Actually, you COULD use dynamic allocation if vApplicationGetIdleTaskMemory() and vApplicationGetTimerTaskMemory() get the memory they return to FreeRTOS from the heap instead of statically allocating it. FreeRTOS would still consider the memory as statically allocated, but as these tasks shouldn't be deleted the difference doesn't really matter.

Can't think of any reason you would want to do that, but you could.


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


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

Latest News

FreeRTOS v10.2.0 is available for immediate download. MIT licensed, and including RISC-V and ARMv8-M (Cortex-M33) demos.

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

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

Cadence Tensilica Cortes

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Mediatek

Renesas

RISC-V

SiFIve RISC-V

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