Quote Originally Posted by richard View Post
That osccon looks pretty dodgy
+1

You're enabling the PLL with an osc freq of 16MHz, so it's trying to run at 64MHz.
The max for that chip is 32MHz.