Skip to main content

[FreeRTOS] TASK.STacK does not show a complete stack coverage - Knowledgebase / OS-aware debugging - Lauterbach Support

[FreeRTOS] TASK.STacK does not show a complete stack coverage

Authors list

To calculate stack coverage, TRACE32 needs to know the start and end address of each task's stack.

Some FreeRTOS versions do not provide the required stack information. In this case, the debugger cannot determine the complete stack range and therefore cannot calculate the stack coverage correctly.

For FreeRTOS versions that do not provide the stack size automatically, you can specify the stack size in bytes as the second parameter of the TASK.CONFIG command. For example, if all tasks on an Arm-based system use a stack size of 1024 bytes:

TASK.CONFIG ~~/demo/arm/kernel/freertos/freertos.t32 0 0x400

For current FreeRTOS versions, automatic stack-size detection is supported when the required FreeRTOS configuration options are enabled. Refer to the "Manual Configuration" section of the OS Awareness Manual FreeRTOS for details.

Helpful Unhelpful

1 of 2 people found this page helpful

Add a comment

ID-0
To prove you are a human, please tell us the text you see in the CAPTCHA image