Problems with the PIC18F47K40 Xpress Evaluation board
I recently bashed my head against this evaluation board for a while until we discovered that a silicon errata which affects operation of TBLRD instructions on the A2 silicon was the cause.
Turns out the boards you buy today has the A2 silicon, the latest A3 silicon does not have this problem. There is an easy workaround which XC8 can do for you.
I wrote up all the detail over here - https://www.microforum.cc/topic/48-problems-with-mplab-xpress-pic18f47k40-evaluation-board/
if you run into this and need some help.
Also take a look at https://www.microforum.cc/
- a great resource for information on PIC and AVR microcontrollers and embedded programming in general. You can also post questions to the experts there.