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 do= es a build, programs the device and starts the debug session. Since my prog= ram pins are different from my debug pins (I've set them that way) it alway= s 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 debug= 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 fi= nd 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 Register >> >> 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 .