I was wondering about erasing a PIC that was programmed with the code protect enabled. I don't want to read the code, I was just thinking that if I accidentally enabled code protect, could I reprogram the chip? I found these two documents on the microchip website that show you can erase a flash pic where the code protection was enabled and give the algorithm to do so...
Dont know about the tools that you are using, but ICD-2 can erase a protected PIC. The code protection is for the read only. If you want to re-write on the PIC you have no problem, as long as you erase the PIC completle.