Stack Consumption for HC12 using Code Warrior v5.2

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

Stack Consumption for HC12 using Code Warrior v5.2

Jump to solution
891 Views
MerlinBDX
Contributor II

Hello, 

I am trying to compute the stack consumption on a MC9S12XDP512 microcontroller.

According to Code Warrior's v5.2 Build_Tools_Utilities.pdf in the Stack Consumption Computation section: "Older versions of the compiler may not issue the information. Also, this feature is currently only supported for HC(S)08 derivatives."

I want to know how to compute the stack consumption for my application. I saw in answer to another question that CW v5.1 did support the feature, therefore v5.2 should as well, I presume.

Thanks in advance.

Tags (2)
0 Kudos
Reply
1 Solution
825 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @MerlinBDX 

 

Please add below code on .prm file:

 

STACK_CONSUMPTION

ROOT main

END

END

 

BR

Alice

View solution in original post

0 Kudos
Reply
4 Replies
875 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @MerlinBDX 

Please enable Stack Consumption as follows:

Alice_Yang_0-1770263193675.png

BR

Alice

 

0 Kudos
Reply
866 Views
MerlinBDX
Contributor II

Hello, Alice, thank you for your response.
I have activated the options you mentioned and when compiling I get this message:

MerlinBDX_0-1770301926663.png

Following the PDF of the Build Utilities, I went into the PRM file and added these lines at the end:

MerlinBDX_2-1770303569095.png

But now I am getting this error:

MerlinBDX_3-1770303633653.png

On this line:

MerlinBDX_4-1770303645526.png

Can you please advice on how to solve this?

0 Kudos
Reply
826 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @MerlinBDX 

 

Please add below code on .prm file:

 

STACK_CONSUMPTION

ROOT main

END

END

 

BR

Alice

0 Kudos
Reply
814 Views
MerlinBDX
Contributor II

Thank you, this worked

0 Kudos
Reply