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?