Hi!
I just want to share a tip. I re-wrote vTaskGetRunTimeStats() a bit to get a better overview of tasks stack usage:
[task] [ticks] [percent] [stack / max / percent]
console tx 50 <1% 196 1024 19
console rx 24 <1% 1496 2560 58
remote rx 106867 <1% 204 2048 9
IDLE 47287512 73% 92 1024 8
…
It’s very helpful to see the stack usage in percentage (and personally I prefer to see stack sizes in bytes).
To do this I note the stack size in tskTaskControlBlock when a task is created, and return the stack size in uxTaskGetStackHighWaterMark().