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

PIC12F675 wrong #FUSES

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



Joined: 04 Dec 2006
Posts: 41

View user's profile Send private message

PIC12F675 wrong #FUSES
PostPosted: Mon Aug 18, 2008 7:43 pm     Reply with quote

I found in the archives, that others have bumped into this.

Firstly, using MPLAB and ICD2, I tried to put the PIC12F675 into debug mode, but it's not possible.

Then, I got complaints from MPLAB that not having an external MCLR was going to be a problem. Thing is, MCLR is external and the #FUSES line said so. So I changed the config setting manually in MPLAB, and programmed it OK. But after every compile, I had to go change it again.

So, I went to find out why...and discovered right off that the line "DEVICE ICD=TRUE" was the problem here. Seems it causes the compiler to try to set some config bits that it should leave alone, and it had the effect of changing the MCLR bit as well as the power-up timer. Deleting this fixed that problem

So, I think a note to CCS may be in order. Trying to do what I did should throw an error, rather than messing up the config.

And maybe one to Microchip, since MPLAB's "top ten reasons you can't debug" doesn't seem to mention that maybe your device can't handle it!

For what it's worth.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Aug 18, 2008 7:46 pm     Reply with quote

Are you using the special "-ICD" header that's required for the 12F675 ?
See this thread and the links in it:
http://www.ccsinfo.com/forum/viewtopic.php?+t=28294
barryg



Joined: 04 Dec 2006
Posts: 41

View user's profile Send private message

PostPosted: Tue Aug 19, 2008 2:42 pm     Reply with quote

No, I'm not. It's just the ordinary part. So I had to solve it the old fashioned way, by thinking Rolling Eyes

Seems to me from its behavior, that the -ICD is a different part, not just a bonding option. So the compiler ought to differentiate between the the two.
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