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.
How to set the stack size on "main" thread
-
- Posts: 91
- Joined: Sat Feb 18, 2017 11:50 am
- Has thanked: 43 times
- Been thanked: 23 times
- Giovanni
- Site Admin
- Posts: 14444
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1074 times
- Been thanked: 921 times
- Contact:
Re: How to set the stack size on "main" thread
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
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
Who is online
Users browsing this forum: No registered users and 15 guests