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 support@ccsinfo.com

security settings

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







security settings
PostPosted: Thu Apr 10, 2008 4:25 am     Reply with quote

i have some a program that when it has run x times ( expires ) will delete itself. for this reason i have to have the ebtr fuses disabled and it records how many times it has run in the data eeprom ( its a 2680 ).
so i have to have the eeprom unprotected as well.

what would you recommend security wise to protect the program from being read out.

as i find the security settings for this device very confusing, and the documentation is a bit specialist for me.
Dimmu



Joined: 01 Jul 2007
Posts: 37

View user's profile Send private message

PostPosted: Thu Apr 10, 2008 4:55 am     Reply with quote

Which type of CPU do you use ?
Is it able to write its own memory ?

Dimmu
Guest








PostPosted: Thu Apr 10, 2008 5:09 am     Reply with quote

yes its a 18f2680
Matro
Guest







PostPosted: Thu Apr 10, 2008 6:10 am     Reply with quote

Have a look et page 348 of the datasheet.
There are fuses for code protection.

Matro.
Matro
Guest







PostPosted: Thu Apr 10, 2008 6:12 am     Reply with quote

And complete explanations on page 358.
T think that's what you need.

Matro.
Guest








PostPosted: Thu Apr 10, 2008 6:51 am     Reply with quote

yes thats my problem, ( did anyone actually read my original post)
what i am concerned with, is things like extra code being burnt into memory
that will then use table reads/writes to fetch out the remaining code.
should i enable/disable LVP, the whole thing is quite confusing.
my icd2 requires all secuirity to be turned off, the program works well
on the icd2, but when i turn on the security settings, i have no way of checking everything works properly, i have found that wrtd stops the thing from working.
and i wondered if anyone had a tried and tested setup to do what i have
detailed. or at least suggestions.
Matro
Guest







PostPosted: Thu Apr 10, 2008 7:33 am     Reply with quote

Anonymous wrote:
yes thats my problem, ( did anyone actually read my original post)
what i am concerned with, is things like extra code being burnt into memory
that will then use table reads/writes to fetch out the remaining code.
should i enable/disable LVP, the whole thing is quite confusing.
my icd2 requires all secuirity to be turned off, the program works well
on the icd2, but when i turn on the security settings, i have no way of checking everything works properly, i have found that wrtd stops the thing from working.
and i wondered if anyone had a tried and tested setup to do what i have
detailed. or at least suggestions.

I really don't understand the problem.
Of course a code protection will block icd2 debugging.

What is the problem if you set all CP fuses?
No extra code can be written, and your program memory and EEPROM can't be read and write externally but it is possible internally.

Why is this solution not appropriate?

Matro.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Thu Apr 10, 2008 8:09 am     Reply with quote

Quote:
should i enable/disable LVP, the whole thing is quite confusing.
Low Voltage Programming (LVP) has nothing to do with protection. It is another method to program the CPU but has some limitations and at most 1% of the people are using it. An ICD2 uses High Voltage Programming. Always set the fuse to NOLVP, this will free an I/O pin and prevents problems when by accident the LVP pin is made active.
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