Flashrom, help with unresponsive winbond w25q32 flash - Page 1
Forum section: electronics / general

author: julian1
author_rank: Frequent Contributor
timestamp: February 23, 2021, 03:01:18 am
content: First time using flashrom/ft232.With so many W25 variants I attempted to buy the most generic part I could, a Winbond W25Q32JV SSIMTR .But during probing flashrom appears to only recognizes the manufacturer,$ /sbin/flashrom -p ft2232_spi:type=232H,divisor=32> [...]> Found Winbond flash chip "unknown Winbond (ex Nexcom) SPI chip" (0 kB, SPI) on ft2232_spi.> [...]> This flash part has status NOT WORKING for operations: PROBE READ ERASE WRITEI get the same result for flashrom version 1 and 1.1,Trying to force the chip id to somehting close (suggested by internet search), looks like it *might* work for read$ /sbin/flashrom -p ft2232_spi:type=232H,divisor=32 --chip W25Q32.V -f --read modem.bingets me file full of 0xff. Either it's working, but maybe spi MISO line is being held high. I would half expect an unprogrammed nor flash return garbage.Trying to write, with forced chip id fails,$ flashrom -p ft2232_spi:type=232H,divisor=32 --chip W25Q32.V -f --write modem.bin> No EEPROM/flash device found.eg. rejected, perhaps by flashrom, not accepting the chip id overrideAny ideas?

author: julian1
author_rank: Frequent Contributor
timestamp: February 23, 2021, 05:53:37 am
content: Resolved by substituting a Micron N25Q032 part. Supports read,write,verify etc out of the box.

author: woofy
author_rank: Frequent Contributor
timestamp: February 23, 2021, 09:22:28 am
content: Did you include the "Release Power Down" command (ABh) in your initialisation?

author: julian1
author_rank: Frequent Contributor
timestamp: February 23, 2021, 09:43:11 am
content: Quote from: woofy on February 23, 2021, 09:22:28 amThat's a good command to be aware of. I think flashrom is a bit limited in not exposing a user modifiable configuration script. Instead all configuration options for each product id gets compiled into the binary. When I get a chance to try with a mcu spi, rather than flashrom/ft232h, I will test it.

author: amyk
author_rank: Super Contributor
timestamp: February 23, 2021, 02:37:53 pm
content: Quote from: julian1 on February 23, 2021, 03:01:18 amWith few exceptions, unprogrammed flash is all 1s.

author: SiliconWizard
author_rank: Super Contributor
timestamp: February 23, 2021, 03:36:29 pm
content: Quote from: amyk on February 23, 2021, 02:37:53 pmIndeed.Unless the Flash chip has been messed with, there's no reason that I know of it should contain "random" data.Usually Flash chips have ID registers? So one way to figure out for sure if communication with the chip (and chip itself) is fine is to read its ID.

author: julian1
author_rank: Frequent Contributor
timestamp: February 23, 2021, 05:04:18 pm
content: Quote from: SiliconWizard on February 23, 2021, 03:36:29 pmI concluded that spi/comms was probably Ok, because flashrom correctly identified the manufacturer by reading the id. The specific part number/id however was not in flashrom's db/cache of known parts, so it refused to proceed with any risky command (erase or write). Alternatively, as woofy suggests it may have been a poor init sequence, eg. missing 'release power down', from the generic sequence when using the chip override feature of flashrom. Unfortunately the verbose trace doesn't provide a lot more info.

author: SiliconWizard
author_rank: Super Contributor
timestamp: February 23, 2021, 05:08:18 pm
content: Well, if it's not supported by the tool you use (flashrom), then there's nothing much you can do. Sorry if I missed it, but is there a way to force flashrom to proceed with a write, for instance? And then see how it goes?