How to change stack size

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to change stack size

跳至解决方案
3,600 次查看
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 项奖励
回复
1 解答
3,581 次查看
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 项奖励
回复
2 回复数
3,575 次查看
feZero
Contributor I

Hi Daniel

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

 

0 项奖励
回复
3,582 次查看
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 项奖励
回复