Quality RTOS & Embedded Software

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


Loading

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

Michael


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


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

Latest News

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