FreeRTOS task viewer shows overflow

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FreeRTOS task viewer shows overflow

1,697 Views
biafra
Senior Contributor I

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:

pastedImage_9.png

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:

pastedImage_1.png

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

10 Replies

1,010 Views
lpcxpresso_supp
NXP Employee
NXP Employee

Thanks for the report. We'll investigate.

Regards,

MCUXpresso IDE Support

1,010 Views
biafra
Senior Contributor I

Hi,

In this topic MCUXpresso Heap Usage (FreeRTOS) reporting problem when using Heap 5 memory scheme‌, BlackNight‌ told about the new MCUXpresso IDE version coming around late may. This version should come with new FreeRTOS plugin: will the new version include the correction for this problem too?

Many thanks

Biafra

1,010 Views
BlackNight
NXP Employee
NXP Employee

I don't have that project shown above, but I had a chance to try out the new plugin and it shows the stack for a 512 unit task in a proper way:

pastedImage_1.png

Erich

1,010 Views
biafra
Senior Contributor I

Hi Erich,

With a 512 unit stack (2048 bytes) it is displayed correctly for me too.

It isn't displayed correctly with a 3072 unit stack (12288 bytes), but the program works fine.

Many thanks

Biafra

1,010 Views
BlackNight
NXP Employee
NXP Employee

I tried with 3072 units, and that works in that updated version too for me:

pastedImage_2.png

So this means to me that this one should be really fixed in that new (coming) version.

Erich

1,010 Views
biafra
Senior Contributor I

Hi Erich,

I'm using the FreeRTOS plugin version 1.0.2

pastedImage_1.png

Is it the same you are using?

Many thanks

Biafra

1,010 Views
BlackNight
NXP Employee
NXP Employee

No, I'm using a beta version of what is supposed to go into that new release end of this month.

1,010 Views
BlackNight
NXP Employee
NXP Employee

And here with

#define configRECORD_STACK_HIGH_ADDRESS         1

pastedImage_1.png

1,010 Views
biafra
Senior Contributor I

Hi,

Are there some news related?

Many thanks

Biafra

1,010 Views
alexklupsch
Contributor III

Hi,

same Problem with K81, SDK2.3 and MCUXpresso 10.1.1.

BR

Alex.