How to set the stack size on "main" thread

Discussions and support about ChibiOS/RT, the free embedded RTOS.
josesimoes
Posts: 18
Joined: Sat Feb 18, 2017 11:50 am
Has thanked: 9 times
Been thanked: 3 times

How to set the stack size on "main" thread

Postby josesimoes » Wed Aug 09, 2017 11:19 am

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.

User avatar
Giovanni
Site Admin
Posts: 10220
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 212 times
Been thanked: 197 times
Contact:

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

Postby Giovanni » Wed Aug 09, 2017 12:20 pm

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


Return to “ChibiOS/RT”

Who is online

Users browsing this forum: No registered users and 1 guest