I was trying to get my EEPROM read/write working on my PIC.
I first programmed a write cycle, and then reprogrammed it to read it out. (To avoid writing every time I start the program/pic)
But I luckily found out that re-programming your PIC causes EEPROM to get... changed? I found a way to fix this, by using the setting "Preserve EEPROM".
My questions on this are:
- Does "Preserve EEPROM" write the EEPROM everytime you program your chip? (So re-programming a million times will break EEPROM theoretically)
- What value is EEPROM after it's programmed...
(val != 0xFF)returns
trueCan I say it's corrupted after programming, or does it get a default value I could check on?
Using: (though it's more theoretical)
- MPLAB X IDE
Flash (0x00 to 0xFF) EEPROM. But I'm unable to replicate this. Using preserve EEPROM does not have any disadvantages? What about the value of the EEPROM after programming (withouth preserve), is it 0xFF or
The following memory area(s) will be programmed: program memory: start address = 0x0, end address = 0x347f configuration memory EEData memoryProgrammer output when programming the chip... ...for me it looks like it's 'rewriting' the EEPROM. As it says
area(s) will be programmed~