Re:IPE V1.4 - Program memory options
The device is code protected and can't be erased or programmed without going to the Secure Segment properties page and indicating that you do indeed want to program over a code protected device. This is a security feature that is particular to some dsPIC/PIC24 devices. Unfortunately, the IPE does not support secure segment programming so the security check should not be made in the IPE (at least not until the support is added). We will look into this. In the mean time, you can erase the device in with MPLAB X. Erasing it will clear the code protection and allow you to program it in the IPE.
Make sure to make the proper secure segment selection in MPLAB X before you try to erase the device or you will get the same warning you got in the IPE. To get to the secure segment property page in MPLAB X, click the debug tool node of the project properties. Then expand the Option Categories drop down box and select Secure Segment. From there, select the segments to be programmed. If you are trying to program all of program memory then you'll want the Boot, Secure and general segments.