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
Posted: Sat Mar 07, 2026 7:44 am
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'.
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