I don't know if this is your problem, but I've used some PIC24H devices, and they have multiple debug ports. You can use any of them to program the device, but you must use the one specified in the config bits to debug the device. Also, in one of my projects, I'm using a 32kHz oscillator for RTC. The crystal pins are debug pins. There are other pins also available for debug, but they tie up other resources I need. Therefore, when debugging the RTC, I use one debug port. When debugging the rest of the system, I use the other debug port. One time I spent a lot of time trying to figure out why debug stopped working. It turned out I was using the low power oscillator pins for debug (which is what I wanted to do), but was also enabling the oscillator. That kept debug from working. Good luck! Harold -- FCC Rules Updated Daily at http://www.hallikainen.com - Advertising opportunities available! -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist