The PIC18F67k40 is not supported by MPLAB 8.92 (it's pretty old) You had to update your IDE to MPLABX (v5.25) In your source code there should be a configuration section: #pragma config LVP = OFF #pragma config ...