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

Flash Block Protect

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







Flash Block Protect
PostPosted: Wed Mar 26, 2003 12:51 pm     Reply with quote

Hi,
Could someone say how can I protect Block3 flash to write in PIC18F452?(address 0x6000-0x7FFF).
Thanks.
___________________________
This message was ported from CCS's old forum
Original Post ID: 13101
Tomi
Guest







Re: Flash Block Protect
PostPosted: Thu Mar 27, 2003 3:14 am     Reply with quote

In 16F series there was keywords like PROTECT_5\% and others. Maybe these settings are completely missing in 18F series.
Maybe there is a much simpler way but you can try the following:
Open the HEX file after compiling.
Find the following two lines:
:020000040030CA // this line sets the offset address to 0x300000
:0E00000000210C0F000181000FC000E00F4036 //config bytes
-------------------------!!------------
The two digits signed by "!" is the CONFIG5L (0x300008). Modify it to "07" to protect 0x6000-0x7FFF:
:0E00000000210C0F0001810007C000E00F4036



:=Hi,
:=Could someone say how can I protect Block3 flash to write in PIC18F452?(address 0x6000-0x7FFF).
:=Thanks.
___________________________
This message was ported from CCS's old forum
Original Post ID: 13125
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