S12z linker symbol creation

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

S12z linker symbol creation

460件の閲覧回数
tomrix
Contributor II

Hello,

I want to implement a stack usage supervision by iitializing the stack with a pattern and then check it cyclically.

I can find the linker symbol __SEG_END_SSTACK but no stack size or stack start address symbol is generated. 

Can anyone help on how to tell the linker to create such a symbol?

Regards
tomrix

タグ(1)
0 件の賞賛
返信
2 返答(返信)

430件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @tomrix.,

There is a workaround to fill the stack with known values.
Please refer to the attached test project.


In the .prm linker file, there are two RAM sections.
The MY_STACK section is used for the Stack and it is filled with 0xED.
While the rest of RAM is filled with 0xAB.
The STACKTOP is then placed at the end of MY_STACK section.

danielmartynek_0-1747054985589.png

 

Regards,

Daniel

 

 

 

 

0 件の賞賛
返信

428件の閲覧回数
tomrix
Contributor II

Thanks Daniel,

This solution is great!

Regards
tomrix

タグ(1)
0 件の賞賛
返信