View previous topic :: View next topic |
Author |
Message |
cfernandez
Joined: 18 Oct 2003 Posts: 145
|
PROTECT FUSE AND WRITE PROTECT PIC24HJ |
Posted: Mon Jun 20, 2011 2:18 pm |
|
|
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
|
|
Posted: Mon Jun 20, 2011 3:11 pm |
|
|
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
|
|
Posted: Mon Jun 20, 2011 3:29 pm |
|
|
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, |
|
|
|