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

PIC24 - Missing fuses? Write Protect Flash Pages WPFP

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



Joined: 21 Oct 2005
Posts: 297

View user's profile Send private message Visit poster's website

PIC24 - Missing fuses? Write Protect Flash Pages WPFP
PostPosted: Tue Sep 02, 2014 8:03 am     Reply with quote

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: 19492

View user's profile Send private message

PostPosted: Tue Sep 02, 2014 9:05 am     Reply with quote

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

View user's profile Send private message Visit poster's website

PostPosted: Tue Sep 02, 2014 9:09 am     Reply with quote

Great - thanks! I just didn't see this documented anywhere.
Very Happy
(I have version 5.026)
Ttelmah



Joined: 11 Mar 2010
Posts: 19492

View user's profile Send private message

PostPosted: Tue Sep 02, 2014 9:53 am     Reply with quote

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

View user's profile Send private message Visit poster's website

PostPosted: Tue Sep 02, 2014 9:58 am     Reply with quote

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 ;-)
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