gnupic@linuxhacker.org

gnupic@linuxhacker.org


Subject: Erasing Flash-Memory
From: Sven Brandt
Date: Sun, 16 Feb 2003 22:14:14 +0100

Hi,

I am trying to leave the Windows-World and change to Linux.
Unfortunately I have some problems erasing the memory of some flash-PICs 
using PICP.
If I take a new PIC everythink is OK until the first programming. After 
that erasing is not possible:

svebra@linux:~> picp /dev/ttyS0 12f629 -s -ep
########################################
program memory: not blank
failed to erase program space
svebra@linux:~> picp /dev/ttyS0 12f629 -s -ep

And if I readout the PIC there ist still the code in the memory.
I tried with some 12F629 and a 16F629 and I used different wirings...

It seems to have nothing to do with the configuration-Bits.

I read that there was a discussion in Nov.02 about it. Is there a solution?

If I set the code protection bit, the memory should be erased. This is 
also not the case.

Hope to get an answer

Sven





gnupic@linuxhacker.org