View previous topic :: View next topic |
Author |
Message |
guy
Joined: 21 Oct 2005 Posts: 297
|
PIC24 - Missing fuses? Write Protect Flash Pages WPFP |
Posted: Tue Sep 02, 2014 8:03 am |
|
|
Hi all,
I am using a bootloader that sits between 0x200-0x7FF and I want to write-protect that area. The PIC24FJ64GA308 supports upper or lower page protection up to a specific page but the fuse declarations on the device header file don't seem to offer specific pages.
Did I miss anything? Did CCS miss anything?
Is there a way to override the #FUSES declaration?
Thanks! |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19498
|
|
Posted: Tue Sep 02, 2014 9:05 am |
|
|
What compiler version?...
On the current compiler, CCS supports WPFP=xxxx in the fuses, with xxxx a page location. |
|
|
guy
Joined: 21 Oct 2005 Posts: 297
|
|
Posted: Tue Sep 02, 2014 9:09 am |
|
|
Great - thanks! I just didn't see this documented anywhere.
(I have version 5.026) |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19498
|
|
Posted: Tue Sep 02, 2014 9:53 am |
|
|
Lack of documentation is a 'joy' sometimes...
Look in the fuses.txt file that comes with the compiler. You have:
WPEND Flash pages WPFP to Configuration Words page are write/erase protected
WPBEG Flash pages 0 to WPFP are write/erase protected
WPFP Write/Erase Protect Page Start/End Location, set to last page or use WPFP=x to set page |
|
|
guy
Joined: 21 Oct 2005 Posts: 297
|
|
Posted: Tue Sep 02, 2014 9:58 am |
|
|
I saw that someone posted fuses.txt in the forum but the last part (WPFP=x) wasn't there yet, as far as I remember. The proper place is of course the header file...
Ah, we learn something every day ;-) |
|
|
|