increase stacksize

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

increase stacksize

1,094 次查看
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
标签 (1)
0 项奖励
回复
2 回复数

809 次查看
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 项奖励
回复

809 次查看
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 项奖励
回复