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
Thanks for the report. We'll investigate.
Regards,
MCUXpresso IDE Support
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
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:
Erich
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
I tried with 3072 units, and that works in that updated version too for me:
So this means to me that this one should be really fixed in that new (coming) version.
Erich
Hi Erich,
I'm using the FreeRTOS plugin version 1.0.2
Is it the same you are using?
Many thanks
Biafra
No, I'm using a beta version of what is supposed to go into that new release end of this month.
And here with
#define configRECORD_STACK_HIGH_ADDRESS 1
Hi,
Are there some news related?
Many thanks
Biafra
Hi,
same Problem with K81, SDK2.3 and MCUXpresso 10.1.1.
BR
Alex.