by mikeW » Tue Nov 29, 2011 3:21 pm
I'm having trouble programming a PIC while preserving Data EEPROM with the Pickit 2. What I'm trying to do is recover EEPROM data from a unit that had a failure in the field. I don't have the option of just reading back the Data EEPROM without programming because I have the CPD fuse set, which read-protects the Data EEPROM. So I have to download a program that prints the contents of EEPROM out on an rs232 pin.
I'm using the Pickit 2 Programmer app:
App Version 2.61.00
Device File Version 1.62.03
OS FW Version 2.32.00
and a PIC18F4685 which has 256 bytes of Data EEPROM.
I unchecked the Data EEPROM box in the app, which says 'preserving device EEPROM data on write'. However, I have to erase before I can write. When I erase, the Data EEPROM is not preserved. So there seems to be no way to preserve it. I also tried unchecking the mysterious 'Clear Memory Buffers on Erase', which seems to be the only setting which may affect the EEPROM. This setting is not discussed in the Pickit documents. Any idea what it means?
Anyway, I seem to be at a dead end and I really need that data. I'd really appreciate any help you guys could offer.