Sir, I have tried to erase the chip 16F1503 and it returns an error there is no log file generated while this error. I can program with a hex file. I can read the chip, but while writing blank, it returns this error.
First of all: why are you trying to erase the device? It is automatically erased before a write.
Then if you really want to erase it you have to write an empty file, but one that contains 0x3FFF at config locations.
The error you see happens when no data is available for config locations.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sir, It's because I need to confirm the chip is erased, that's all. Let me ask you one doubt. If I program 1.5K of data to the chip and then I reprogram the same chip with 1K data, the rest 0.5K data location will be erased or not? thank you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The chip is erase altogether using the bulk erase command.
The same command is used if you write an empty file, so all you're doing is decreasing the endurance (RW cycles) twice as fast.
This is precisely the reason why an erase button is not present.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sir, I have tried to erase the chip 16F1503 and it returns an error there is no log file generated while this error. I can program with a hex file. I can read the chip, but while writing blank, it returns this error.
Last edit: Mohammed 2014-10-21
First of all: why are you trying to erase the device? It is automatically erased before a write.
Then if you really want to erase it you have to write an empty file, but one that contains 0x3FFF at config locations.
The error you see happens when no data is available for config locations.
Sir, It's because I need to confirm the chip is erased, that's all. Let me ask you one doubt. If I program 1.5K of data to the chip and then I reprogram the same chip with 1K data, the rest 0.5K data location will be erased or not? thank you.
The chip is erase altogether using the bulk erase command.
The same command is used if you write an empty file, so all you're doing is decreasing the endurance (RW cycles) twice as fast.
This is precisely the reason why an erase button is not present.