On Mon, July 30, 2018 12:09 pm, Key, Kait M. - US wrote:
sudo flashrom -p buspirate_spi:dev=/dev/ttyUSB0,spispeed=30K -c W25X40 -f -w fixed.lod flashrom v0.9.9-r1954 on Linux 4.15.0-kali2-amd64 (x86_64) flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK. Found Winbond flash chip "W25X40" (512 kB, SPI) on buspirate_spi. Reading old flash chip contents... done. Erasing and writing flash chip... FAILED at 0x00049000! Expected=0xff, Found=0x00, failed byte count from 0x00049000-0x00049fff: 0x1000 ERASE FAILED!
I double checked the data sheet and had no problem flashing a chip that wasn't blank of the same type. I added a decoupling capacitor to the circuit because I thought maybe the voltage was dropping below the threshold for the erase function. It is still not working.
CC'ing in the list- I'd help if I could!