I found this http://ww1.microchip.com/downloads/en/devicedoc/93003A.pdf It clearly describes your issue. Maybe you have to tweak MPLAB X settings. Chetan Bhargava http://microz.blogspot.com On Sat, Aug 4, 2012 at 10:55 AM, Chetan Bhargava wrot= e: > Hi Herbert, > > AFAIK, EMUD and EMUC pins allow programming of the part too. Although > I haven't worked on that exact PIC part, I am using PIC24EP64GP202 and > it has no PGC and PGD pins. I use EMUC and EMUD to program and debug > the part using pickit3. > > > Chetan Bhargava > http://microz.blogspot.com > > > On Sat, Aug 4, 2012 at 8:12 AM, Herbert Graf wrote: >> Hello Chetan, >> >> I have done that. >> >> The problem is when I click "debug project" in MPLABX it automatically d= oes a build, programs the device and starts the debug session. Since my pro= gram pins are different from my debug pins (I've set them that way) it alwa= ys fails. >> >> If I have the programmer plugged into the program pins the build happens= , the program happens, and then it errors out saying it can't find the debu= g target. >> >> If I have the programmer plugged into the debug pins, the build happens,= the program fails, and it errors out there. >> >> How, in MPLABX, can you separate the program and debug stages? I can't f= ind a button that JUST starts the debug session? >> >> Thanks, TTYL >> >> On 2012-08-03, at 8:16 PM, Chetan Bhargava wrote: >> >>> Look at this: >>> http://ww1.microchip.com/downloads/en/DeviceDoc/70071E.pdf >>> >>> Page 9 - Register 24-7: FICD: In-Circuit Debugger Configuration Registe= r >>> >>> Chetan Bhargava >> >> >> -- >> http://www.piclist.com PIC/SX FAQ & list archive >> View/change your membership options at >> http://mailman.mit.edu/mailman/listinfo/piclist --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .