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

locking PIC program
Goto page 1, 2  Next
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Einly



Joined: 10 Sep 2003
Posts: 60

View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger ICQ Number

locking PIC program
PostPosted: Sat Feb 12, 2005 2:26 am     Reply with quote

Anybody has idea to lock PIC and avoid people copy my firmware?

Seems like the 'protect' command doesn't block others from copying
PIC. And there is also no security code to lock the chip.

What is your suggestion on this?

regards: Einly,
_________________
Einly
libor



Joined: 14 Dec 2004
Posts: 288
Location: Hungary

View user's profile Send private message

PostPosted: Sat Feb 12, 2005 3:38 am     Reply with quote

What do you mean by 'protect doesn't block others from copying' ?
I suppose you mean, that you can still 'read' a code-protected PIC. Have you ever looked at the 'code' you managed to 'read out'? You should have seen that it is garbage and not a valid code, there's no way you can program this into another PIC an get a running program.
Sherpa Doug
Guest







PostPosted: Sat Feb 12, 2005 7:53 am     Reply with quote

If you read a protected PIC all you get is a hash code. The hash code is like a word by word checksum which is usefull to verify the chip programming, but (almost) impossible to translate back to the original binary image.
By (almost) impossible we are talking mega dollar, thousands of man months effort. If they want your code that bad they will just kidnap you and beat it out of you ;-)

Sherpa Doug
libor



Joined: 14 Dec 2004
Posts: 288
Location: Hungary

View user's profile Send private message

PostPosted: Sat Feb 12, 2005 8:12 am     Reply with quote

Quote:
If they want your code that bad ...

..they rather write their own.
Einly



Joined: 10 Sep 2003
Posts: 60

View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger ICQ Number

???
PostPosted: Tue Feb 15, 2005 11:26 am     Reply with quote

If they can read/load my 'garbage codes' means they can then
copy it all into a new PIC. And thus they can manufacture the
same product without passing through my copyright, correct?

Thanks! ;-)
_________________
Einly
bluetooth



Joined: 08 Jan 2005
Posts: 74

View user's profile Send private message

PostPosted: Tue Feb 15, 2005 12:59 pm     Reply with quote

Einly:

Give it a try. Let us know what happens!

Question
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

PostPosted: Tue Feb 15, 2005 1:22 pm     Reply with quote

NO, you cannot read code protected info ("garbage") from one chip, move it to another chip and expect it to work. Thats why they call it CODE PROTECT and IT DOES PROTECT THE CODE!

These type of questions should be asked on the Microchip site, not here. This is a CCS compiler site not a PIC hardware site.

Below is a link to the Microchiops site document that explains Code Protection.

http://ww1.microchip.com/downloads/en/DeviceDoc/config.pdf

Also you can go to the Microchip Forums for a lot more info.
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Tue Feb 15, 2005 9:29 pm     Reply with quote

dyeatman wrote:

These type of questions should be asked on the Microchip site, not here. This is a CCS compiler site not a PIC hardware site.


Nope, they shouldn't be asked Very Happy
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

PostPosted: Tue Feb 15, 2005 9:31 pm     Reply with quote

Good point Mark! Some folks get dont seem to get it...

Rolling Eyes
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Tue Feb 15, 2005 9:40 pm     Reply with quote

Maybe they just like to hear it over and over Very Happy

Code Protect - setting this WILL PROTECT YOUR CODE
Code Protect - setting this WILL PROTECT YOUR CODE
Code Protect - setting this WILL PROTECT YOUR CODE
Code Protect - setting this WILL PROTECT YOUR CODE
Code Protect - setting this WILL PROTECT YOUR CODE
Code Protect - setting this WILL PROTECT YOUR CODE

Laughing Alright, 6 hours driving plus 9 hours working means its time to go to bed
bluetooth



Joined: 08 Jan 2005
Posts: 74

View user's profile Send private message

PostPosted: Wed Feb 16, 2005 6:01 am     Reply with quote

If you guys don't knock it off we're never going to see the test result! Shocked

Back to reading datasheets..... Laughing
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Wed Feb 16, 2005 8:23 am     Reply with quote

Who needs a test result! I know it will "Code Protect" the device.
bluetooth



Joined: 08 Jan 2005
Posts: 74

View user's profile Send private message

PostPosted: Wed Feb 16, 2005 8:28 am     Reply with quote

I think the original poster needs the test result! That was the whole point! Cool
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Wed Feb 16, 2005 8:30 am     Reply with quote

The orginal poster doesn't seem to want to believe us. He is asking and then doubting the responses. In my opinion, there isn't a test. Just do it, that is what it is for Cool
bluetooth



Joined: 08 Jan 2005
Posts: 74

View user's profile Send private message

PostPosted: Wed Feb 16, 2005 8:39 am     Reply with quote

I've gotta go back to Humor U Razz
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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