Make sure that you have the correct register map set for the chip you are using. I tend to do my debugging on flash chips, then do a final check on a JW, then program OTP. Martin > Hi. Today I have trashed two 16C711 JW devices. Although I > spent a lot of attention to the code protection being set to OFF, > both chips reported a programming error, namely the CP setting > "illegal". > > Both are now not erasable anymore and ready for the trashcan. > I ordered another two, and 20 OTP devices just in case I can't > fix the problem. > > Why did MPLAP / Picstart+ programm a part of the bits, although > I explicitly set CP to off? I have no config bits defined in > the source code, I entered the settings manually in the PS+ > programmer window. I even clicked CP on then off to be sure that > that MPLAB "touches" the bits and doesn't leave them in an undefined > previous state. > > > What's wrong? Am I better off with debugging with OTP chips instead > of those expensives JWs when I have to toss them away anyway after 1 > use?