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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
894 Views
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?

Labels (1)
Tags (3)
0 Kudos
1 Solution
579 Views
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

View solution in original post

0 Kudos
5 Replies
579 Views
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

579 Views
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 Kudos
579 Views
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 Kudos
580 Views
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 Kudos
579 Views
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 Kudos