I have some data loggers using the 18LF4620 storing data in multiple M25P64 fllash memory chips. In an attempt to recover data from some data loggers where the battery went flat and the processor code memory has been largely erased, I have stitched some wires to the on-board 18LF4620-PT, 44 pin TQFP package, to allow my MeLabs USB programmer to program the chip via ICSP.
I am running the latest 4.22 beta code for the USB programmer. I can read the processor main memory, the configuration data and the data EEROM. I can see that the EEROM data is correct so I am definitely reading the chip BUT I cannot program the chip. I have the 18F4620 as the selected device in the programmer selection window.
Every time I try to program I get the message 'Target device does not match selected device' yet the chip is a genuine 18LF4620 and they have programmed before.
When I turn off the target device checking it then fails with an 'Erase failed' message. If I turn off the erase before programming it prompts for 'device not blank - program anyway?' . I say yes to that then it looks like it is programming but comes up with many 'code verify' errors.
How come the USB programmer can read the PIC but not program it?
Cheers
Brian
Bookmarks