Martin wrote: > I have a problem with my new PIC circuit. 18F2221. I try to program with > my USBProg. I get the following error: > > Verification error at program memory address 300005h. Expected 17h, > found 7h. > > > 300005h is a config register: > 7 MCLRE > 6 - > 5 - > 4 - > 3 - > 2 LPT1OSC > 1 PBADEN > 0 CCP2MX > > 7h should be valid. 17h should be impossible, right? >From a quick glance it looks like this is a bug in the configuration file PICPRG.ENV in the ENV directory. In the 18F2221 block the line config 16#300005 2#00010111 should be config 16#300005 2#10000111 It also looks like this error is in the blocks for the other PICs with the same programming spec. Try changing your PICPRG.ENV file for now. I'll look at this more closely when I get back to my office. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist