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

PROTECT FUSE AND WRITE PROTECT PIC24HJ

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



Joined: 18 Oct 2003
Posts: 145

View user's profile Send private message

PROTECT FUSE AND WRITE PROTECT PIC24HJ
PostPosted: Mon Jun 20, 2011 2:18 pm     Reply with quote

Hi,

I am use PIC24HJ and I want to protect the code for READ (which ICD) for this I use PROTECT fuse, but I see that the disable the write protect bit and I cannot write.

I am develop a BootLoader and if I use PROTECT fuse cannot write the new program.

How to set PROTECT for read and enable Write Protect ???

Best Regards,
Ttelmah



Joined: 11 Mar 2010
Posts: 19504

View user's profile Send private message

PostPosted: Mon Jun 20, 2011 3:11 pm     Reply with quote

When an ICD is in use, the protect fuses are turned off. You cannot use an ICD with protect enabled.

There is a separate application note about the code protection on the 24HJ family from Microchip, and the details will depend on your exact chip. Normally though you would enable boot block write protection, and leave write protection off on the rest of the code. Look at the PROTECT_CODE, and PROTECT_USER fuses.

Best Wishes
cfernandez



Joined: 18 Oct 2003
Posts: 145

View user's profile Send private message

PostPosted: Mon Jun 20, 2011 3:29 pm     Reply with quote

Ttelmah

I try with the PROTECT_HIGH fuse and put this:

Word 3L: 0003 PROTECT_HIGH
H: 0000

The 3 is enable the write.

Regards,
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