Hey, Make sure in your config bits/settings, you have the oscillator set to output. If the PIC doesn't output the clock signal, the ICD throws that error. Also, ensure you programmed the chip in debug mode - don't just program it in programmer mode, and then switch to debug and click run - in debug mode, click the program button, making sure the ICD2 isn't selected as programmer, but debugger. When programmed in debug mode, the ICD2 programs a special piece of code called a debug executive - this sits there while your program is running, and stop it , reads variables, etc. In programmer mode, the debug executive isn't programmed - programmer mode is designed for final copies, in which you won't want debug things taking up space. Also, if this still doesn't fix it, try double clicking on the blue text in the output window - on the line with the error, the error number should be in blue - double click it to open the help file, on the right page for that error. Finally, with some microchips, they don't support the ICD2 in the normal version - with these chips, you have to get the -ICD2 version. I'm not quite sure which chips these are, so check before you go and buy some -ICD2 versions. On 5/23/05, Howard Winter wrote: > Paul, > > On Mon, 23 May 2005 10:01:07 +0200, Paul van der Linden wrote: > > > Hi, > > I'm just starting with pic-microcontrollers, and have ordered the icd2 > > from microchip. > > But it isn't working, I always get this error after programming the > > device ( I have selected the icd2 as debugger): > > ICD0083: Target not in debug mode, unable to perform operation > > Can anyone help me, what do I wrong? > > Yes, the ICD2 can act in two modes, as a Programmer or as a Debugger - the latter needs a PIC that supports > debug mode, and it looks like you're just trying to program it. > > The correct procedure to start up is from the top menu to select "Configure" then "Select Device" and choose > the PIC you're using, then "Programmer" then "Select Programmer" from the top menu, then "MPLAB ICD2" and > you'll be set up properly to use it as a programmer. Don't touch "Debugger" unless you want to use it that > way and know how to do so! :-) > > Cheers, > > 4 > Howard Winter > St.Albans, England > > > -- > 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