|
|
View previous topic :: View next topic |
Author |
Message |
barryg
Joined: 04 Dec 2006 Posts: 41
|
PIC12F675 wrong #FUSES |
Posted: Mon Aug 18, 2008 7:43 pm |
|
|
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
|
|
|
barryg
Joined: 04 Dec 2006 Posts: 41
|
|
Posted: Tue Aug 19, 2008 2:42 pm |
|
|
No, I'm not. It's just the ordinary part. So I had to solve it the old fashioned way, by thinking
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. |
|
|
|
|
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
|