Many thanks for the answers. But I cannot see the relations between ICSP (which involves RB6, RB7, MCLR\, Vcc and Gnd) and the clock of the OSCON. Though I will try to see what happens. With the F877 I never had any problem with the same configuration. It programs OK.
Ioannis
Bookmarks