groston
Joined: 06 Mar 2007 Posts: 6
|
Problem 'stepping over' in MPLAB |
Posted: Mon Mar 19, 2007 12:21 pm |
|
|
I am new to MPLAB and the CCS compiler, so maybe that which I am about to describe is normal...
Here is my highly sophisticated program:
Code: | #include <16F88.h>
#fuses NOWDT,NOPROTECT,INTRC_IO,PUT,NOLVP
#use delay(internal=4M)
void main()
{
while (1)
{
output_bit (PIN_B0, 1); // break point here
delay_ms(500);
output_bit (PIN_B0, 0);
delay_ms(500);
}
} |
Within MPLAB, I have selected the ICD2 as the Debugger and downloaded the program. I then click the 'Run' button and after a brief pause, the indicator shows that execution has paused on the line marked. Here's where things get odd.
When I click the 'Step Over' button, I see about four instances of:
Quote: | Stepping Target
MPLAB ICD 2 Ready
|
in the output window. Mildly annoying, but livable. The problem is the next time I click 'Step Over', I get an 'endless' number of these messages. (Obviously the number is not infinite, but close enough.)
As far as I can tell, an instance of:
Quote: | Stepping Target
MPLAB ICD 2 Ready
|
is displayed for each line of assembly code.
So, what puzzles me is this: Shouldn't 'Step Over' tell the debugger to 'go do everything needed for this line of code and tell me when you're done' as opposed to what it is doing? Have I simply configured something incorrectly?
I look forward to your suggestions. I switched to MPLAB and CCS so that I could do some debugging and it is not working as one would expect.
Thanks for your help! _________________ Gerald P. Roston |
|