Howto change stack size in KDS K22F mbed project

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

Howto change stack size in KDS K22F mbed project

1,619 次查看
shaunastarabadi
Contributor I

The linker options under Eclipse don't have a stack size setting, neither does the ld command line.

 

Which file do I have to change?

 

Thanks

标签 (1)
0 项奖励
回复
3 回复数

1,288 次查看
shaunastarabadi
Contributor I

Anyone has any clues???

Do Freescale people respond in these forums?!

0 项奖励
回复

1,288 次查看
BlackNight
NXP Employee
NXP Employee

Hi Shaun,

the stack size is set in the linker (.ld) file, look for something like this:

__stack_size = 0x0200;             /* required amount of stack */

I hope this helps,

Erich

0 项奖励
回复

1,288 次查看
shaunastarabadi
Contributor I

There is no .ld linker file in the mbed project environment.

Ideally, I would like to pass the stack size parameter to the linker from the configuration in the "other linker flags" field below, using the -Xlinker switch. However, the map file does not specify a particular stack_size variable that I can override. I can see my setting appearing in the map file, but I don't think it is used, because the .stack segment does not change. Also the linker does not recognize a switch like -mstack-size=0x1000.

Using arm-none-eabi-g++ tools.

Clues?

Other Linker Flags

0 项奖励
回复