Quality RTOS & Embedded Software

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


Using vTaskList

Posted by michaeln32 on January 11, 2018

Hi, I'm created task with depth of 1024 ( total of stack size of 4,096 byte + 64 bytes for TCB). So the total task size is 4,160 bytes.

But when I useing vTaskList(), I get from this API that the size of the task is 5,336.

Can you please help me with this issue ?

Best Regards


Using vTaskList

Posted by rtel on January 11, 2018

I don't have an immediate answer to that.

Which chip are you using?

Are you calling vTaskList() before the task has executed, or after?

Can you step into the vTaskList() code in the debugger to see why it comes up with this number? It might be easier to call https://www.freertos.org/uxTaskGetStackHighWaterMark.html as it will only execute the part of the code of interest - the stack high water mark calculation.

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

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

Latest News

Meet us at Embedded World. Hall 3A-525.

Hear from Richard Barry at Embedded World. Feb 28, 16:00, Hall 4-428.

Video: Watch James Gosling & Richard Barry at re:Invent, Las Vegas 2017.

FreeRTOS kernel V10.0.1 is available for immediate download. Now MIT licensed.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

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