Harold, Did you try to go to icd2 program settings, the program tab, select manually select memory and ranges and uncheck the "erase all before Programming" if I understand correctly it will not try a bulk erase and this might solve your problem YMMV Peter van Hoof ----- Original Message ---- From: Harold Hallikainen To: Microcontroller discussion list - Public. Sent: Monday, August 21, 2006 6:48:32 PM Subject: Re: [PIC] 18LF6722 Verify Errors with ICD-2 Thanks! Interesting that it did work for a couple months of development, then stopped last week. I can't raise Vdd without blowing out everything else on the board. More ideas so I can get back to debugging new code? THANKS! Harold > You can't ICSP bulk erase or program some PICs with Vdd <4.5V. What > I've noticed in practice is that programming often works, but erasing > doesn't. So your first program of a new chip will be successful since > the part is blank, but subsequent attempts to erase will fail. > > On Mon, 21 Aug 2006, Harold Hallikainen wrote: > >> Checking the Microchip forums, it appears this is a common problem! It's >> interesting that it started on Friday of last week. I don't think I'd >> done >> any changes to MPLAB between the time it worked and when it didn't work. >> We did change out the chips here (changing from 18F6722 to 18LF6722) and >> they programmed fine... the first time. Now we get programming errors, >> as >> pointed out before. Someone on the Microchip Forums said the problem was >> the chips were not getting erased. I tried just an erase and blank >> check. >> Results are: >> >> MPLAB ICD 2 Ready >> Running ICD Self Test >> ...Passed >> Erasing Target Device... >> ...Erase Succeeded >> MPLAB ICD 2 Ready >> Blank Checking... >> ...Program Memory >> ICD0161: Verify failed (MemType = Program, Address = 0x0, Expected Val = >> 0xFFFF, Val Read = 0x0) >> ...Device not blank >> MPLAB ICD 2 Ready >> >> >> So, it looks like that's the problem! Now, anyone know what can be done >> about it? I'm currently using ICD05010309.hex on the ICD. Is there, >> perhaps, a better older or newer revision? If so, what version works, >> and >> where do I get it? >> >> Though the PM3 may do the job as a production programmer, I DO need a >> debugger! >> >> THANKS! >> >> Harold >> >> >> -- >> FCC Rules Updated Daily at http://www.hallikainen.com - Advertising >> opportunities available! >> -- >> http://www.piclist.com PIC/SX FAQ & list archive >> View/change your membership options at >> http://mailman.mit.edu/mailman/listinfo/piclist >> > > -- > John W. Temples, III > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- FCC Rules Updated Daily at http://www.hallikainen.com - Advertising opportunities available! -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist