Well, it's probably the oscillator - I'm not sure, but the ICD2 probably can't run from a USB clock. Try using either the internal or external RC, or an external crystal - Crystals are only really needed for anything that uses a clock, etc - RCs are useless for clocks, but fine for everything else. On 5/23/05, Paul van der Linden wrote: > > LIST P=18F4550, R=DEC > > > > #include "P18F4550.INC" > > > > CLRF TRISB > > BSF PORTB, 0 > > END > > > Ok, if I program the device, this is working, so it runs, only debugging > isn't working. > I've these configuration bits: > http://members.lycos.nl/pvdl1984/icd2.html > > Log of the icd2: > Connecting to MPLAB ICD 2 > ...Connected > Setting Vdd source to target > Target Device PIC18F4550 found, revision = a3 > ...Reading ICD Product ID > Running ICD Self Test > ...Passed > MPLAB ICD 2 Ready > Programming Target... > ...Validating configuration fields > ...Erasing Part > ...Programming Program Memory (0x0 - 0x3F) > ...Loading DebugExecutive > ...Programming DebugExecutive > ...Programming Debug Vector > ...Programming RSBUG > Verifying... > ...Program Memory > ...Debug Executive > ...Debug Vector > ...Verify Succeeded > Programming Configuration Bits > .. Config Memory > Verifying configuration memory... > ...Verify Succeeded > Connecting to debug executive > ICD0083: Target not in debug mode, unable to perform operation > MPLAB ICD 2 Ready > > Is there anything wrong with the settings? > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- Dave All us base are belong to you. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist