SP Debug info incorrect

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

SP Debug info incorrect

Jump to solution
3,487 Views
patti
Contributor I
HI,,
 
I get warning C12056: SP debug info incorrect because....
 
How do I found out what is wrong? In the help it says that is can be notting, or it can be o problem, how do I found out what is making the warning.
 
thanks in advance
Patrik
Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
1,052 Views
CompilerGuru
NXP Employee
NXP Employee
First this is about the HC12 compiler, this was not mentioned in this thread.

AFAIK, this warning should occur for plain C code only when the common code optimization is enabled. So if it disapears with -Onf, then you have to be careful with the displayed values of locals even if they are on the stack, but the generated code is correct. If it does not disapear, then I would recomment to provide a reproducible case here.


Daniel

View solution in original post

0 Kudos
Reply
2 Replies
1,053 Views
CompilerGuru
NXP Employee
NXP Employee
First this is about the HC12 compiler, this was not mentioned in this thread.

AFAIK, this warning should occur for plain C code only when the common code optimization is enabled. So if it disapears with -Onf, then you have to be careful with the displayed values of locals even if they are on the stack, but the generated code is correct. If it does not disapear, then I would recomment to provide a reproducible case here.


Daniel
0 Kudos
Reply
1,052 Views
CrasyCat
Specialist III
Hello
 
According to my own experience, this message is generated when you are modifying the value of the SP inside of a function.
 
In order to evaluate in your case whether this is a serious issue, I would recommend you to submit an SR through our on line support page and get support people take a look at that.
 
You will need to attached the project reproducing the trouble to the SR.
 
CrasyCat