We use cookies to provide our visitors with an optimal site experience. View our privacy notice and cookie notice to learn more about how we use cookies and how to manage your settings. By proceeding on our website you consent to the use of cookies.
Your circuit violates some of Microchip’s recommendations. Check the literature for the specific Microchip programmer you are using.
In particular the capacitor on MCLR and the series resistors on the programming/control lines. I’d start by removing C8, and shorting out R15, R16 & R22.
Once it’s working you can try adding the resistors back. However depending on the specific programmer, PCB trace and programming wire capacitances, the resistors may cause a hard fault or even worse a randomly intermittent fault.
NOTE: Beware of older ICSP documents that are still hanging around they are for older style parts and older design programmers. The 1990’s and 2000’s recommendations may not work with modern parts and programmers. Check that any document you are using is from 2014 or later.
Can you verify that your project in MPLAB 8.92 is set up to use the PIC18F67K40? This device does not appear on the supported device list for MPLAB 8.92.
Every microchip device has a unique ID and if that does not match what your project is set up for it will error out when trying to program.