Open webgeek1234 opened 3 years ago
I believe I found the issue with the resulting eeprom. The string offsets in 0x0E, 0x10, and 0x12 are being written as absolute offsets. However, I note in the libftdi code (1) that the string offset has 0x80 added to it. And flashing these devices with ftdi_eeprom does result in properly detected manufacturer, product, and serial.
Note: I should definitely remove this index thing which is a design error that is 15 year old :)
Thanks for the bug report, I'll try to have a look at it.
Experiencing this with a clone, but I am not sure they don't support USB string desc changes.
Is there any update on this? The current release has problems programming the usb descriptors for both the FT-X and FT232R chips that I'm trying to use. I tracked down the error for the FT-X to be related to the mirroring bug, and the FT232R's issue is this 0x80 offset problem. I've verified that the eeprom regression branch resolves the problem for me, at least.
I have a few identical XYGStudy ft232rl adapters, specifically purchased for the available cbus pins to use in gpio mode. I was able to use ftconf to set the cbus pins to gpio and write the eeprom. Everything worked fine at that point. Then I tried to change the product name to have a human readable differentiation between the adapters and apparently something broke. The adapters no longer enumerate with a product name or a serial and can only be accessed by index 1. And if multiple are plugged in, ftdi_urls lists them as 1, 2, 3; but ftconf will only access index 1 and will randomly pick one of the adapters to operate on.
These commands were run in order without changing attached hardware.
I tried to reset the product name and serial with only one adapter plugged in at a time. The command used was:
It appears that the eeprom does get written, but the issue persists. Product name and serial do not get read in device enumeration. I am uncertain if something bogus is being written to the eeprom and the device firmware is failing to read it or what. Or if something I'm passing ftconf is wrong.
OS: Fedora 34 x86_64 Pyfdti version: 0.52.9-2 from the package repo