I have found a problem with the PIC18f46K40 datasheet or a problem in MCC - I am using the 44-pin TQFP package.
In the datasheet, the pin layout for the PIC18f46K40 is given below:
The MCC (MPLABX IDE v4.15) pin layout is given below:
The NC pins are not consistent. Which layout do I use in my design?
I have a strong feeling the MCC pin layout is right and the datasheet is incorrect for some reason.