I have already received the PICs 18f26Q10 and I am trying to program them.
When I try, I get two error messages from PICKIT3:
Target Device ID (0xe300) is an Invalid Device ID. Please check your connections to the Target Device.
After that, the pickit program the device and appears other verify error:
Address: 300000 Expected Value: 2922 Received Value: 2954
Failed to program device
Despite everything, the program works:
#include <xc.h>
#pragma config FEXTOSC = HS
#pragma config RSTOSC = EXTOSC_4PLL
void main(void) {
while(1) {
TRISCbits.TRISC4 = 0;
LATCbits.LATC4 = 1;
LATCbits.LATC4 = 0;
}
}
And the pin C4 shows a signal of 2MHz.
Why do errors appear?