Howto change stack size in KDS K22F mbed project

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

Howto change stack size in KDS K22F mbed project

1,296 Views
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

Labels (1)
0 Kudos
Reply
3 Replies

965 Views
shaunastarabadi
Contributor I

Anyone has any clues???

Do Freescale people respond in these forums?!

0 Kudos
Reply

965 Views
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 Kudos
Reply

965 Views
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 Kudos
Reply