<div dir="ltr">Hi,<div><br></div><div>I'm trying to rewrite a W24X40AL flash on a Seagate hard drive motherboard. I can successfully read the data, although some weird things happened. (First dumped code is nonsense, second time works fine, third or the rest are just partial corrupted code). </div><div><br></div><div>Then I want to flash the code back but get the following error,</div><div><br></div><div><div>parallels@ubuntu:~/Desktop$ sudo flashrom -p buspirate_spi:dev=/dev/ttyUSB0,spispeed=2M -E</div><div>flashrom on Linux 4.4.0-59-generic (x86_64)</div><div>flashrom is free software, get the source code at <a href="https://flashrom.org">https://flashrom.org</a></div><div><br></div><div>Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns).</div><div>Found Winbond flash chip "W25X40" (512 kB, SPI) on buspirate_spi.</div><div>Erasing and writing flash chip... FAILED at 0x00001000! Expected=0xff, Found=0x7f, failed byte count from 0x00001000-0x00001fff: 0x1</div><div>ERASE FAILED!</div><div>Looking for another erase function.</div><div>FAILED at 0x00001800! Expected=0xff, Found=0x00, failed byte count from 0x00000000-0x0000ffff: 0x42b</div><div>ERASE FAILED!</div><div>Looking for another erase function.</div><div>FAILED at 0x00002000! Expected=0xff, Found=0x00, failed byte count from 0x00000000-0x0007ffff: 0x6596</div><div>ERASE FAILED!</div><div>Looking for another erase function.</div><div>Looking for another erase function.</div><div>Looking for another erase function.</div><div>No usable erase functions left.</div><div>FAILED!</div><div>Your flash chip is in an unknown state.</div><div>Please report this on IRC at <a href="http://chat.freenode.net">chat.freenode.net</a> (channel #flashrom) or</div><div>mail <a href="mailto:flashrom@flashrom.org">flashrom@flashrom.org</a>, thanks!</div></div><div><br></div><div>My connection right now is: the motherboard is not powered, using bus pirate 3.3v directly connects to VCC, /WP and /HOLD. I've tried to add 10k, 20k resistor between 3.3v and /WP, /HOLD pin but the chip won't be recognized then.<br></div><div><div><br></div><div>I don't have much experience in electronics. Is this do with write protection? Is there anything I can do with this?</div><div><br></div><div>Thanks for your help.</div><div><br></div><div>Yang Hu</div>
</div></div>