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

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

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

跳至解决方案
1,045 次查看
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 解答
730 次查看
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 回复数
730 次查看
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

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