I know this may sound simplistic but, I use ICD 2 as well and on occasion, = I run into the same problem. I usually blank (erase) the chip before progra= mming and this issue goes away. It may not be your solution but worth a try= .. Stephen D. Barnes Systems East Inc. 757-766-8400 - Office Phone 757-766-7494 - Office Fax 757-778-2502 - Mobile www.systemseastinc.com -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of= Dwayne Reid Sent: Monday, November 25, 2013 12:55 PM To: pic microcontroller discussion list Subject: [PIC] Problem programming ICD header Good day to all. I've revisiting a project from several years ago. This project uses a PIC1= 6f677 and was developed using the appropriate ICD header and an ICD2. Beca= use it was several years ago, I no longer recall which version of MPLAB was= used. I have everything set up and was about to start a debugging session. Howev= er, I do not seem to be able to program the debug header. I'm hoping that = someone can point out what I'm doing wrong. My setup is: Laptop running Win 7 Home 64-bit (fully updated) Latest 8.x MPLAB (8.92) 16= F690-ICD header Tried with both ICD-2 and Real-ICE This is a fresh install of MPLAB 8.92 on the laptop. There was an earlier = version installed on this machine but I had removed it, then installed 8.92= .. It does look as if the USB driver installed correctly - I see the Microc= hip custom USB driver in the Windows device manager and MPALB does see both= the ICD-2 and the Real-ICE when I connect one or the other to the laptop. The symptom is that although the project assembles just fine, I get an erro= r when attempting to program the ICD header. First, I select the appropria= te tool (Debugger -> Select Tool -> ICD-2), then I press [F10] to assemble.= Then I program the ICD header (Debugger -> Program). The error is that the first location is not programmed correctly (desired v= alue (something), read-back value is 00). I do have an external 9V supply connected to the ICD-2. I tried programmin= g the header two different ways: once while the header was connected to the= target system (5V rail); once with the header disconnected from the target= system (debugger was then set to supply power to the target system: Debugg= er -> Settings -> Power). I've also tried using the header with a Real-ICE. I'm not familiar with th= e Real-ICE yet - I've had it only a short while and this is the first time = that I've used it. What I did find odd was that the Real-ICE doesn't appea= r to have a Vdd adjustment in the Debugger -> Settings menu. Other information: I've tried using both the very short RJ-12 cable that ca= me with the Real-ICE with both the Real-ICE and the ICD-2 as well as using = the longer RJ-12 cable that came with the ICD-2 with the ICD-2. I didn't t= ry the longer cable with the Real-ICE because I've read that it probably wo= n't work (length too long). I've tried both a previously-known-good ICD header and a brand-new header r= emoved from the factory-sealed package. Either I've missed doing something or MPLAB 8.92 doesn't like my=20 setup. Advice greatly appreciated. Many thanks! dwayne --=20 Dwayne Reid Trinity Electronics Systems Ltd Edmonton, AB, CANADA (780) 489-3199 voice (780) 487-6397 fax www.trinity-electronics.com Custom Electronics Design and Manufacturing --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .