Page 1 of 1

Max stack size

Posted: Mon Feb 09, 2015 4:08 pm
by nikhil
Hello

What is the max stack size that can be allocated to a static thread? I am using stm32f405 mcu.

Is there any way to check how much stack is being used by a thread in runtime except for chibios debug plug in?


--
Nikhil

Re: Max stack size

Posted: Mon Feb 09, 2015 4:38 pm
by Giovanni
Hi,

The limit is the available RAM. The used area can be measured using a debugger and counting the filler values in the stack.

Giovanni

Re: Max stack size

Posted: Tue Feb 10, 2015 4:32 am
by nikhil
Thanks.