Hi there
I’m using a CH341a to flash a W25Q128.V chip. Read and write operations were working until my flashing machine fell asleep halfway through a write to the chip. Since then I’ve had no luck writing to this chip, either using flashrom 1.3 or 1.4-dev on both macOS and Linux.
Some output:
``` Found Winbond flash chip "W25Q128.V" (16384 kB, SPI). This chip may contain one-time programmable memory. flashrom cannot read and may never be able to write it, hence it may not be able to completely clone the contents of this chip (see man page for details). write_wp_bits: wp_verify reg:1 value:0x0 write_wp_bits: wp_verify reg:2 value:0x0 write_wp_bits: wp_verify reg:3 value:0x60 write_wp_bits: wp_verify reg:1 value:0x30 write_wp_bits: wp_verify failed: reg:1 actual:0x30 expected:0x0 write_wp_bits: wp_verify reg:2 value:0x30 write_wp_bits: wp_verify reg:3 value:0x60 Failed to unlock flash status reg with wp support. Block protection is disabled. Reading old flash chip contents... read_flash: region (00000000..0xffffff) is readable, reading range (00000000..0xffffff). done. erase_write: region (00000000..0xffffff) is writable, erasing range (0x204000..0x204fff). 0x204000..0x204fff verify_range: Verifying region (00000000..0xffffff) read_flash: region (00000000..0xffffff) is readable, reading range (0x204000..0x204fff). FAILED at 0x00204000! Expected=0xff, Found=0x02, failed byte count from 0x00204000-0x00204fff: 0x1000 ERASE FAILED! Erase/write done from 0 to ffffff Write Failed!Uh oh. Erase/write failed. Checking if anything has changed. Reading current flash chip contents... read_flash: region (00000000..0xffffff) is readable, reading range (00000000..0xffffff). done. Apparently at least some data has changed. Your flash chip is in an unknown state. Please report this to the mailing list at flashrom@flashrom.org or on IRC (see https://www.flashrom.org/Contact for details), thanks! write_wp_bits: wp_verify reg:1 value:0xff write_wp_bits: wp_verify failed: reg:1 actual:0xfc expected:0x84 write_wp_bits: wp_verify reg:2 value:0xff write_wp_bits: wp_verify failed: reg:2 actual:0x41 expected:0x1 write_wp_bits: wp_verify reg:3 value:0x8 ```
Is there anything I can do, or is something fundamentally broken?
https://www.janga.la/ Rich Thanki | MD | Technology
rich@janga.la <mailto:Rich%20Thankirich@janga.la> | +44 7956 109547 tel:+447956109547 http://theworldwidetribe.com/ https://www.facebook.com/jangalawifi https://www.twitter.com/jangalawifi https://www.instagram.com/jangalawifi
Hello Richard,
I think the most important lines in the logs are:
write_wp_bits: wp_verify failed: reg:1 actual:0x30 expected:0x0
and
Failed to unlock flash status reg with wp support.
wp means write-protection, write fails because chip fails to unlock. Can you try this just in case (might be the same result but still) https://www.flashrom.org/user_docs/fw_updates_vs_spi_wp.html#flashing-whole-...