The linker option "–StackConsumption" does not work for HC12

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

The linker option "–StackConsumption" does not work for HC12

ソリューションへジャンプ
2,136件の閲覧回数
martinleben
Contributor II

Hi!

I develop for the HC12 processor family and want to know the maximum stack usage in my program. In the doc's I found the linker option "–StackConsumption". I enabled it and it requires a stanza in the PRM file, which I also added:

STACK_CONSUMPTION

ROOT main

END

END

 

However, when I try to build I get the following errors:

  Error : Internal Error

  Link Error : Link failed

 

What am I doing wrong?

ラベル(1)
タグ(3)
0 件の賞賛
返信
1 解決策
1,821件の閲覧回数
martinleben
Contributor II

Oh, crap... "Build_Tools_Utilities.pdf" (...\CWS12v5.1\Help\PDF) page 89 says:

     "NOTE Older versions of the compiler may not issue the information. Also, this feature is currently only supported for HC(S)08 derivatives."

Guess I am out of luck then...

Thank you Alice!

/Martin

元の投稿で解決策を見る

0 件の賞賛
返信
5 返答(返信)
1,821件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Martin,

Which IDE and version do you use ?  CW10.6?

If yes, have you select here :

pastedImage_0.png

Hope it helps

Alice

1,821件の閲覧回数
martinleben
Contributor II

Thank you for your answer Alice, but I use 5.9.0 so your answer does not apply.

After all, this is the Classic/Legacy CodeWarrior area...! ;-)

Best regards,

Martin

0 件の賞賛
返信
1,821件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

HI Martin,

Please refer to "Build_Tools_Utilities.pdf" (...\CWS12v5.1\Help\PDF)

for "STACK_CONSUMPTION Block" (pg 89)

Hope it helps

Alice

0 件の賞賛
返信
1,822件の閲覧回数
martinleben
Contributor II

Oh, crap... "Build_Tools_Utilities.pdf" (...\CWS12v5.1\Help\PDF) page 89 says:

     "NOTE Older versions of the compiler may not issue the information. Also, this feature is currently only supported for HC(S)08 derivatives."

Guess I am out of luck then...

Thank you Alice!

/Martin

0 件の賞賛
返信
1,821件の閲覧回数
trytohelp
NXP Employee
NXP Employee

Hi Martin,

I'm working on a question regarding the -STACK_CONSUMPTION.

The HC12 v5.1 is supporting this feature too.

However you must install the compiler update.

This file can be downloaded through the web side under your Freescale account

pastedImage_0.png


Have a great day,
Pascal
Freescale Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信