Hasan A. Khan wrote: > I am using my icd2 for the first time which I had bought only a month > before icd3 was released but that's a sad story for later... > > I am using icd2 to debug/program (ICSP) 16f628A in mplab3.2. It > connects to target just fine but when I try to run the program (an LED > blinker) I get two errors: > > ICD0083: Debug: Unable to enter debug mode. Please double click this > message for more information. > ICD0069: Debug: Unable to run target > Entering Debug Mode > ...Programming GOTO 0x00 command > ...Restoring users code > MPLAB ICD 2 ready for next operation > > I have looked at the help by double clicking the error but none of the > suggestions help me except may be one strange fact. The MCLR/Vpp pin is > held low by icd2 when in debug/run mode which doesn't make sense because > MCLR is supposed be high for the pic to run. When I physically > disconnect icd2 Vpp lead from my circuit the pin goes high and pic > starts working fine. Why would icd2 keep this pin low? I have 10k > resistor connected from MCLR/Vpp to Vdd as recommended by icd docs. > > I have an old pic programmer K150 from kitsrus.com I connected this > programmer to the circuit in ICSP mode same thing happens. It also > keeps Vpp/mclr low. > > I changed my pic chip but no difference. > > Please HELP! It makes sense that the ICD2 holds MCLR in reset: because it wasn't able to enter debug mode. This usually means that the chip could not start up for some reason. Program the PIC in release mode, and see if it starts up. If it doesn't, likely culprits are the oscillator circuit, and the configuration bits. Vitaliy -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist