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?
Solved! Go to Solution.
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
Hi Martin,
Which IDE and version do you use ? CW10.6?
If yes, have you select here :
Hope it helps
Alice
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
HI Martin,
Please refer to "Build_Tools_Utilities.pdf" (...\CWS12v5.1\Help\PDF)
for "STACK_CONSUMPTION Block" (pg 89)
Hope it helps
Alice
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
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
Have a great day,
Pascal
Freescale Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------