Hello andyf,
I may have an answer for you. Make sure that you compile your code for the PIC16f877A I/P, and also select this in the epic software. I duplicated your problem with a 16f873a. I compiled the code for a 16f873, then I set my programmer to 16f873a and loaded it into the 16f873a. I got the exact error that you got. So, check to make sure that your program is compiled for the PIC16f877A I/P and see if this helps.
Regards,
Greg
Bookmarks