increase stacksize

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

increase stacksize

1,118件の閲覧回数
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 返答(返信)

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

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