How to change stack size

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to change stack size

Jump to solution
1,799 Views
feZero
Contributor I

Board FRDM-K64F
mbed OS 5.13.4

A stack overflow has occurred.
I want to increase the stack size, where is it defined?

 

Error Message: CMSIS-RTOS error: Stack overflow
// Current Thread: main  Id: 0x20002CD0 Entry: 0x31895
StackSize: 0x1000 StackMem: 0x1FFFA850 SP: 0x2002FF58

 

I've already tried to change the following macro definition, but the error message hasn't changed and the stack size remained 0x1000.

mbed_config.h
#define MBED_CONF_RTOS_MAIN_THREAD_STACK_SIZE 4096
#define MBED_CONF_RTOS_THREAD_STACK_SIZE            4096

Thank you.

0 Kudos
Reply
1 Solution
1,780 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi feZero:

 

I would suggest you go to Arm Mbed OS support forum for your  the Mbed OS question.

https://forums.mbed.com/c/mbed-os/6

 

Regards

Daniel

View solution in original post

0 Kudos
Reply
2 Replies
1,774 Views
feZero
Contributor I

Hi Daniel

I will post on the link you suggested, Thank you!

 

0 Kudos
Reply
1,781 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi feZero:

 

I would suggest you go to Arm Mbed OS support forum for your  the Mbed OS question.

https://forums.mbed.com/c/mbed-os/6

 

Regards

Daniel

0 Kudos
Reply