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 CCS Technical Support

problem using icd2 with PCM compiler on PIC12F629

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



Joined: 14 Oct 2003
Posts: 10

View user's profile Send private message

problem using icd2 with PCM compiler on PIC12F629
PostPosted: Thu Apr 08, 2004 4:08 am     Reply with quote

Hi,

I'm having problem in running ICD2 with CCS PCM v3.183 compiler for pic12F629. I'm using MPLAB 6.4 and is using the 12f657_icd module to connect to icd2 for emulation.
Each time I compiled the program and run it, it just stop!

below are my program:

#include <12f629.h>
#device ICD=TRUE
#use delay(clock=4000000,RESTART_WDT)

void main() {

while(TRUE){

}

}

would appreciate if someone out there who has experience in this to help me out.
Ttelmah
Guest







Re: problem using icd2 with PCM compiler on PIC12F629
PostPosted: Thu Apr 08, 2004 5:06 am     Reply with quote

kamyip wrote:
Hi,

I'm having problem in running ICD2 with CCS PCM v3.183 compiler for pic12F629. I'm using MPLAB 6.4 and is using the 12f657_icd module to connect to icd2 for emulation.
Each time I compiled the program and run it, it just stop!

below are my program:

#include <12f629.h>
#device ICD=TRUE
#use delay(clock=4000000,RESTART_WDT)

void main() {

while(TRUE){

}

}

would appreciate if someone out there who has experience in this to help me out.

Since you are specifying 'RESTART_WDT' in your delay definition, you are presumably enabling the watchdog. You are not resetting the watchdog enywhere, so the program will reset when this triggers...

Best Wishes
kamyip



Joined: 14 Oct 2003
Posts: 10

View user's profile Send private message

PostPosted: Fri Apr 09, 2004 8:32 pm     Reply with quote

Hi Telmah,

thanks for pointing out the mistake. After disabling the WDT and add in some #fuse parameter, the 12f629 icd2 is working now.

thank again
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