Hi,
You need to check the configuration bits before programming the chip.
The whole idea behind them is protect the code from being read out so if you were able to change them in the PICKit2 program AFTER they where written they'd be kind of useless.
Load you .hex file into the software THEN verify that the protect bits aren't set, reprogram the chip - now you should be able to read it back.
/Henrik.
EDIT: If you can't reprogram the chip either, try a full erase first - that should clear the protection bits. I'm not sure if there's a setting or not for that though, my PK3 seems to ALWAYS do an erase before write.





Bookmarks