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

Make checksum in the PIC or copy protection?

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



Joined: 09 Mar 2010
Posts: 314
Location: Denmark

View user's profile Send private message

Make checksum in the PIC or copy protection?
PostPosted: Tue Jun 07, 2011 1:47 pm     Reply with quote

Hi

I want some copy protection or call it code change protection in my program, but how ?

CCS function #id checksum is it possible to make a verify on execute time in the PIC. I want a function to compare the CCS #id checksum with it.

#id checksum is stored in EEPROM.

Hints
Ttelmah



Joined: 11 Mar 2010
Posts: 19559

View user's profile Send private message

PostPosted: Thu Jun 09, 2011 8:32 am     Reply with quote

Why not just use the code protection fuses?. Superior to anything you are likely to generate on your own.
Remember you can set the chip to still allow a bootloader to operate, then add an encryption algorithm to this, and depending on how 'strong' this is, even people with your supplied code, to write the program, won't be able to tell what goes into the chip.

If you want to calculate the checksum that will be put in the ID, look at this thread:
<http://www.ccsinfo.com/forum/viewtopic.php?t=17536>

where code is posted to do this.

Best Wishes
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