Howto change stack size in KDS K22F mbed project

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Howto change stack size in KDS K22F mbed project

1,605件の閲覧回数
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,274件の閲覧回数
shaunastarabadi
Contributor I

Anyone has any clues???

Do Freescale people respond in these forums?!

0 件の賞賛
返信

1,274件の閲覧回数
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,274件の閲覧回数
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 件の賞賛
返信