Hi. I spent most of yesterday trying to get ICD in MPLAB X IDE working with the pickit3 on a PIC16F882. I finally got it working but here are some observations:
- I started off with the CONFIG1 of h'20f2' ie. debugging disabled, external crystal. I changed this to h'00f2', however this wasn't reflected when inspecting the config memory in MPLAB X IDE. ICD still didn't work.
- I then switched to the onboard 4MHz oscillator ie. CONFIG1 = h'00f5'. This change was reflected in the config memory (even tho it showed h'20f5'). ICD started working but I can't find anything in the documentation about ICD not working with 20MHz external crystal.
- I could only have 1 breakpoint at a time. Creating a new breakpoint greyed out the prev breakpoint. I'm not sure why this is a limitation.
- I was using the ADC and saving the result to custom vars, however the vars seemed to be updated unreliably when I inspected then in MPLAB. I have my suspicions whether MPLAB's memory inspection is trustworthy.