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

ICD2 doesn't seem to run correctly during debug

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



Joined: 18 Dec 2008
Posts: 1

View user's profile Send private message

ICD2 doesn't seem to run correctly during debug
PostPosted: Thu Dec 18, 2008 7:12 am     Reply with quote

Hi all,

First off, I am not 100% sure that my problem involves the CCS compiler (version 4.013) so apologies if it is a Microchip/ICD issue. Anyway, when using my ICD2 with a PIC16F876A in debug mode, I cannot seem to get the code to run properly by clicking the 'Run' button in MPLAB. It seems to stop at the '#use delay' directive. I can step through the code from this point but this takes a long time because of all the code that CCS produces in the background. Setting a breakpoint later in the code does nothing as it stops before getting to there.

As I said, this may not be due to the compiler, but I am a little stumped so would very much appreciate any advice!

Regards

Angus
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Dec 18, 2008 12:38 pm     Reply with quote

1. Post your MPLAB version.

2. Post a very small test program that shows the problem.
Here's an example. Post one similar to this:
http://www.ccsinfo.com/forum/viewtopic.php?t=33505
Don't put in any unnecessary lines, such as setting up the CCP, the ADC,
etc.
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