Cannot set breakpoint

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

Cannot set breakpoint

1,462 Views
UtopiaTim
Contributor III
Hi folks,
 
I have an initialization routine:
 
gselvp(0);
gsetvp(4,3,50,14);
gselfont(&mono5_8);
 
These are merely function calls into an LCD driver package.  Each of the commands works well
in other parts of the program.
 
In the debugger,  I can set a breakpoint on the 1st or the 2nd function call, but cannot on the 3rd.
 
From what I can see, the compiler has perhaps seen a previous combination of these two calls, and
will go to that combo, rather than the individual ones in my code.
 
Is there an option in the compiler to not do this?  I'd like to do the debugging one function at a time.
 
When it's all done, I could turn off that switch & let it be more efficient.
 
Sometimes the 'help' it's giving is a bit troublesome.

Thanks,

Tim
Labels (1)
Tags (1)
0 Kudos
2 Replies

387 Views
CompilerGuru
NXP Employee
NXP Employee
Which compiler are you using? Which device are you targeting?

Guessing that you use a CW for HC08 or HC12, you can try to use
the options "-onf -onb=t -onbt".
There are also some "smart sliders" which set many options at once in the pref panel.

Daniel

387 Views
UtopiaTim
Contributor III
Hi Daniel,

Thanks for the reply.
 
Sorry, it is the 9S08JM60, and I'm using CW 6.1.
 
I'll look into the -onf & -onb options.
 
Which options in the pref panel should I be looking for?
 
I've noticed that the compiler will 'reuse' routines, rather than re-generate
them.  I guess I want to turn off that, & just waste memory until I go through
the final debug.
 
 
Thanks,
Tim
 
0 Kudos