I have done many 8 bit PIC projects but this my first excursion into 16 bit PICs.
I have a very basic program created by MCC and 'make and program device main project' works OK.
However, I cannot program for debugging. I get 'The target device is not ready for debugging'
This happens with either internal oscillator or a 4MHz crystal.
So how do I fix this?