CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Problem 'stepping over' in MPLAB

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
groston



Joined: 06 Mar 2007
Posts: 6

View user's profile Send private message Visit poster's website

Problem 'stepping over' in MPLAB
PostPosted: Mon Mar 19, 2007 12:21 pm     Reply with quote

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
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Mar 19, 2007 1:44 pm     Reply with quote

Here is a thread on the topic:
http://www.ccsinfo.com/forum/viewtopic.php?t=27528
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group