increase stacksize

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

increase stacksize

1,062 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by salamlora1 on Tue Sep 23 00:36:44 MST 2014
hi
do any one know how can i increase stack size in lpcexpresso 7.0.0
Labels (1)
0 Kudos
Reply
2 Replies

777 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Aroyer on Fri Dec 04 09:42:18 MST 2015

Quote:
So, the question is, why do you think you need to increase your stack size?



Because people don't always use your processor and other IDEs need this information.

Maybe you should put this important information inside your auto generated linker script, so people won't ask those questions to your obvious system behavior..

:)
0 Kudos
Reply

777 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Tue Sep 23 01:01:29 MST 2014
The *default* startup code in an LPCXpresso generated application does not have a fixed stack size. Instead, the heap and stack share the memory from the end of the application data to the end of RAM.

The stack starts from the end of RAM and the heap starts from the end of the application data, 'meeting' somewhere in the middle. If your application uses too much heap, or if you use too much stack, then the heap and stack can 'collide' and overwrite each other, typically resulting in a hard fault or weird application behaviour.

So, the question is, why do you think you need to increase your stack size?
0 Kudos
Reply