Actually the PICkit2 software warns you with a red alert message that the code protection is on. However, it is better to have the config in the HEX as Wouter mentioned. Tamas On Mon, Sep 1, 2008 at 7:07 PM, Harry H. Arends wrote: > Found it. Somehow i read a codeprotected device at the end of last week and > ik looks that the software remembered this state. It remains in it even > after loading a new HEX file. > > Harry > > -----Oorspronkelijk bericht----- > Van: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] Namens Harry > H. Arends > Verzonden: maandag 1 september 2008 17:40 > Aan: 'Microcontroller discussion list - Public.' > Onderwerp: [PIC] strange behaivior of PICkit 2 programmer > > Last week i programmed some devices using this programmer but suddenly > today > there is a strange thing going on. > I used it to program a 16F628 and programming went well. After use the > application i want to use the PICkit as usual to read the device to check > some values from the EEPROM to check if the programm runs correct. > > But reading the device gives me all Zeros. A other thing i see in the > PICkit2 screen is that the config word in the hexfile read 3F62 but on the > screen it shows 0062 and underneed in red the text Allprotect. > > I dint alter anything on my setup so how could this happen? > > Harry > -- > 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 > -- Rudonix DoubleSaver http://www.rudonix.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist