-
Notifications
You must be signed in to change notification settings - Fork 427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ftdi_read_data: -1, usb bulk read failed using FT232H Adafruit breakout board #237
Comments
I get the same issue with this board. Based on https://forums.adafruit.com/viewtopic.php?f=19&p=556557, reducing the read size to 16 bytes (you can probably bump it to 18) allows it to read properly. I was able to get it to work by decreasing the 16 MiB in to_read = min(ALIGN_DOWN(start + 16, 16) - start, len); Though it takes several minutes to read (in my case) a 4 MiB flash. I assume this is longer than if larger reads were used, as there is a (relatively) large gap between reads. |
Though that's a very hacky way to do it. I'd think it would make more sense (assuming this isn't a bug elsewhere causing large reads to fail) to reduce the Edit: Upon further testing, it appears to work with |
Created patch for review: https://review.coreboot.org/c/flashrom/+/63798 |
I have the same problem with FT2232H Edit: |
I am trying to read a Winbond flash chip "W25Q80.V" (1024 kB, SPI) using a Adafruit FT232H breakout board. The chip is detected correctly but then it fails to read:
I can successfully read the chip with ftdiflash for example so I know the chip is readable.
When trying to read with flashrom I connected the chip up as described in the "Generic Pinout" section at the bottom of https://flashrom.org/FT2232SPI_Programmer
Above output as you can see was from a recent build of flashrom from git. I also tried with the latest released version of flashrom (v1.2) with the same result.
The text was updated successfully, but these errors were encountered: