I'd try changing these to start with:
DEBUG is controlled from within MPLAB when you program it for debugging.Code:CONFIG PLLCFG = OFF ; Oscillator used directly CONFIG IESO = OFF ; Oscillator Switchover mode disabled CONFIG DEBUG = OFF ; Disabled
Usually "The target device is not ready for debugging" is an osc issue.
Bookmarks