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

Code Export Protection on PIC18F25K83

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



Joined: 25 May 2018
Posts: 52
Location: Nigeria

View user's profile Send private message

Code Export Protection on PIC18F25K83
PostPosted: Sat Mar 07, 2026 7:05 am     Reply with quote

Hello friends, I was trying to protect HEX from being reaped out of my MCU for reverse engineering but it seems not to be working. I set PROTECT in the fuse. CP and CPD is not in the 18F25K83 header file nor in the configuration bits. Please how can I efectively acheive this. Thanks.
_________________
All is well even in the well!
Ttelmah



Joined: 11 Mar 2010
Posts: 20048

View user's profile Send private message

PostPosted: Sat Mar 07, 2026 7:44 am     Reply with quote

Protect should work.
However it will not be set if you have debug enabled.
Also there were a couple of old programmers that could not set the
protection.
Also some programmers require that the fuses are set manually in their
own control program, they don't take them direct from the hex.
Also what are you reading back?.
Understand that on most of the smaller PIC's you will read back hex data.
It'll be garbage though.

So:
Check debug is off.
What programmer?.
What program controlling this?.
Check what is being read back?. Does it look like the real hex.

Also, what compiler version?.

If you look at the end of the .lst file, the fifth word is the one handling
protection on this chip. If PROTECT is set, you should see this being set to
FFFE. while when protection is off, it will be FFFF. This is the CP fuse.
It should be labelled 'PROTECT'.
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