Page 1 of 1

How to set the stack size on "main" thread

Posted: Wed Aug 09, 2017 11:19 am
by josesimoes
Hi,

How can I set the stack size of thread that will run main() (when this option is enabled)?
I could only find a way of setting this when a thread is defined with osThreadDef(...).

Thanks.

Re: How to set the stack size on "main" thread

Posted: Wed Aug 09, 2017 12:20 pm
by Giovanni
Hi,

It depends on port and compiler, for ARM-GCC it is in the Makefile, you can find there settings for the Process Stack (main() function) and Main Stack (IRQ and exceptions).

Giovanni