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

code protection

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



Joined: 02 Oct 2004
Posts: 22
Location: cleveland

View user's profile Send private message Send e-mail

code protection
PostPosted: Sun Mar 13, 2005 7:01 am     Reply with quote

hello,
I inadvertently programmed a 18f252 with CPD(code protect on). Is it possible to erase this device and re-program? I thought a full erase would bring the chip back to being usable but it doesn't seem to work. Is there something I'm missing or Is this a lesson in paying closer attention to the configuration settings.
I'm using a Microchip ICD 2 to program.

Have a nice day
eaton
Ttelmah
Guest







PostPosted: Sun Mar 13, 2005 7:44 am     Reply with quote

A full erase should, _but_ your programmer must be using the high voltage programming mode. The voltage needed to erase this setting, is about the most 'critical' one on the system. How is Vpp wired to your ICD2?. If the resistor on this line is too low, the ICD has problems raising it high enough to disable the code protect, yet most other programming operations will work. The ICD, can connect Vpp, to either 5v, or 12v. It must be connecting it to 12v to erase this setting (verify that the voltage really is going to this value...).

Best Wishes
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Sun Mar 13, 2005 8:25 am     Reply with quote

Make sure that you have the external supply connected.
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