Paul van der Linden wrote: >> Probably a moot point, but have you set the check box to have the debug >> code load into the part when you program it? Just a thought. > I don't see a checkbox anywhere, I checked by reading it, and only saw my > own code, does that say the debug code isn't programmed? How do I let > the debug code be programmed? I think MPLAB does that automatically, just as it doesn't let you handle the ICD configuration flag manually in debugger mode (it sets it automatically). One other thing: the ICD2 as debugger requires the MCLR pin to be MCLR, not GPIO. Some chips allow this to be configured in the configuration bits. But MPLAB should warn you if this is set incorrectly. [There is at least one datasheet out there that describes the wrong polarity for this bit (18F2431), but the MPLAB configuration and the include files that come with MPASM are correct IIRC.] Maybe too obvious: in the Debugger | Settings, the Status and Power tabs look all good? Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist