As i say couple reply above, for sure LVP pin may cause that(that's what i said F877 prob + link of melabs ICSP tips). Since i don't know wich programmer you using, also check for load on PGC & PGD pin. If there's anything on, remove it and post result.
regards




Bookmarks