AnsweredAssumed Answered

FreeRTOS task viewer shows overflow

Question asked by biafra on Mar 14, 2018
Latest reply on May 9, 2018 by Erich Styger

Hi everyone,

 

I'm working with a custom board based on K66, MCUXpresso 10.1.1, SDK 2.3.

 

I'm facing a strange problem with FreeRTOS thread aware view.

 

If I create a task with 2048 byte stack (call the xTaskCreate() function with parameter usStackDepth = 512) at the exit of the xTaskCreate() function I can see the correct stack usage:

 

 

If I create the same task with a bigger stack, e.g. 12288 byte, (call the xTaskCreate() function with parameter usStackDepth = 3072) at the exit of the xTaskCreate() function I see that the task has overflowed the stack:

 

 

It seems that it is related to the usStackDepth parameter: below the 2100 value it works and above it don't.

It seems the same problem described on this thread: FreeRTOS task viewer shows overflow.

 

Is it a problem related to the task aware viewer or to FreeRTOS itself?

 

Many thanks

Biafra

Outcomes