Firstly, thanks for the program.
I followed the following thread and got the same results when trying to write, I can find the chip, it respond to commands, but fail to erase.


What I have tried is powering the chip from motherboard and the PI from it to avoid ground loops.