code and eeprom protection on 18F4620

Status
Not open for further replies.

Urahara

Member
Hi

Wanted to play with the code protection and eeprom protection so that it cannot be read by others. Added these to my C18 codes but it failed:

#pragma config CP0 = ON
#pragma config CP1 = ON
#pragma config CP2 = ON
#pragma config CP3 = ON
#pragma config CPD = ON

Without them, project was working fine.

Project has some reading and writing onto the 18F4620's EEPROM (as well as the 24LC32 but don't think the above protects it, nor is it necessary at the moment).

Have I done something wrong?

Advice, comments much appreciated. Thks!
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…