Programming 12F629 with PICALL causes a strange problem.. if the code contains any NAP or Sleep the device becomes useless after the first time -even during first time the configuration part reports error. I can erase it and read it but cannot program at all. The device blank checks OK!

What am I doing wrong? Any suggestion?