I need latest freertos version v11.0.0 or later to enable the stack runtime usage for each individual task: this can be done by enabling the configRECORD_STACK_HIGH_ADDRESS even when portSTACK_GROWTH < 0.
Here's the snippet relative to stack computation from tasks.c:
Code: Select all
#if ( ( portSTACK_GROWTH > 0 ) && ( configRECORD_STACK_HIGH_ADDRESS == 1 ) )
pxTaskStatus->pxTopOfStack = pxTCB->pxTopOfStack;
pxTaskStatus->pxEndOfStack = pxTCB->pxEndOfStack;
#endif
Thanks!