FTDI Community

General Category => Discussion - Software => Topic started by: Festiva Parana on March 05, 2020, 09:10:09 PM

Title: FT_PROG DOES NOT MODIFY USB MODULE TO RS485 (FT232RL)
Post by: Festiva Parana on March 05, 2020, 09:10:09 PM
Hi everyone! I'm new to this great electronic universe, lol that's why I come with a question that has been raised when trying to modify the EEPROM of a USB module to RS485 that uses FT232RL using the FT PROG that is recommended for that.
The case is the one that makes the modifications and then performs the programming process, by repeatedly reconnecting the module and scanning it again with the Prog FT It shows me the original data that it brought from the factory .... bone, as if it had not changed nothing from the EEPROM: - \: - \: - \

I appreciate some information of what may be happening, thanks!
Title: Re: FT_PROG DOES NOT MODIFY USB MODULE TO RS485 (FT232RL)
Post by: amolina on June 18, 2020, 03:24:09 PM
Hi.. I have this problem too.. or similar.

I have a device with two FT4232H, and to distingish them with lsusb on linux, I add a external EEPROM 93LC66D and program with FT_Prog.
Looks that FT_Prog do the work programming EEPROM (turn off/on and read the data is ok) but changes are not visible on Windows and linux.


Programming EEPROM with FT_prog to change, first serial number, Manufacturer Description, product description, an also Product ID..
None of the changes will be visible, only with FT_prog but not are effective.

May be there are a external pin to activate on FT4232H to enable EEPROM contents?


That's USBVIEW printout:

Code: [Select]
Device Descriptor:
bcdUSB:             0x0200
bDeviceClass:         0x00
bDeviceSubClass:      0x00
bDeviceProtocol:      0x00
bMaxPacketSize0:      0x40 (64)
idVendor:           0x0403 (Future Technology Devices International Limited)
idProduct:          0x6011
bcdDevice:          0x0800
iManufacturer:        0x01
0x0409: "FTDI"
iProduct:             0x02
0x0409: "Quad RS232-HS"
0x0409: "Quad RS232-HS"
0x0409: "Quad RS232-HS"
0x0409: "Quad RS232-HS"
0x0409: "Quad RS232-HS"
iSerialNumber:        0x00
bNumConfigurations:   0x01

ConnectionStatus: DeviceConnected
Current Config Value: 0x01
Device Bus Speed:     High
Device Address:       0x04
Open Pipes:              8

Endpoint Descriptor:
bEndpointAddress:     0x81  IN
Transfer Type:        Bulk
wMaxPacketSize:     0x0200 (512)
bInterval:            0x00

Endpoint Descriptor:
bEndpointAddress:     0x02  OUT
Transfer Type:        Bulk
wMaxPacketSize:     0x0200 (512)
bInterval:            0x00

Endpoint Descriptor:
bEndpointAddress:     0x83  IN
Transfer Type:        Bulk
wMaxPacketSize:     0x0200 (512)
bInterval:            0x00

Endpoint Descriptor:
bEndpointAddress:     0x04  OUT
Transfer Type:        Bulk
wMaxPacketSize:     0x0200 (512)
bInterval:            0x00

Endpoint Descriptor:
bEndpointAddress:     0x85  IN
Transfer Type:        Bulk
wMaxPacketSize:     0x0200 (512)
bInterval:            0x00

Endpoint Descriptor:
bEndpointAddress:     0x06  OUT
Transfer Type:        Bulk
wMaxPacketSize:     0x0200 (512)
bInterval:            0x00

Endpoint Descriptor:
bEndpointAddress:     0x87  IN
Transfer Type:        Bulk
wMaxPacketSize:     0x0200 (512)
bInterval:            0x00

Endpoint Descriptor:
bEndpointAddress:     0x08  OUT
Transfer Type:        Bulk
wMaxPacketSize:     0x0200 (512)
bInterval:            0x00

Configuration Descriptor:
wTotalLength:       0x0065
bNumInterfaces:       0x04
bConfigurationValue:  0x01
iConfiguration:       0x00
bmAttributes:         0x80 (Bus Powered )
MaxPower:             0xFA (500 Ma)

Interface Descriptor:
bInterfaceNumber:     0x00
bAlternateSetting:    0x00
bNumEndpoints:        0x02
bInterfaceClass:      0xFF
bInterfaceSubClass:   0xFF
bInterfaceProtocol:   0xFF
iInterface:           0x02
0x0409: "Quad RS232-HS"
0x0409: "Quad RS232-HS"
0x0409: "Quad RS232-HS"
0x0409: "Quad RS232-HS"
0x0409: "Quad RS232-HS"

Endpoint Descriptor:
bEndpointAddress:     0x81  IN
Transfer Type:        Bulk
wMaxPacketSize:     0x0200 (512)
bInterval:            0x00

Endpoint Descriptor:
bEndpointAddress:     0x02  OUT
Transfer Type:        Bulk
wMaxPacketSize:     0x0200 (512)
bInterval:            0x00

Interface Descriptor:
bInterfaceNumber:     0x01
bAlternateSetting:    0x00
bNumEndpoints:        0x02
bInterfaceClass:      0xFF
bInterfaceSubClass:   0xFF
bInterfaceProtocol:   0xFF
iInterface:           0x02
0x0409: "Quad RS232-HS"
0x0409: "Quad RS232-HS"
0x0409: "Quad RS232-HS"
0x0409: "Quad RS232-HS"
0x0409: "Quad RS232-HS"

Endpoint Descriptor:
bEndpointAddress:     0x83  IN
Transfer Type:        Bulk
wMaxPacketSize:     0x0200 (512)
bInterval:            0x00

Endpoint Descriptor:
bEndpointAddress:     0x04  OUT
Transfer Type:        Bulk
wMaxPacketSize:     0x0200 (512)
bInterval:            0x00

Interface Descriptor:
bInterfaceNumber:     0x02
bAlternateSetting:    0x00
bNumEndpoints:        0x02
bInterfaceClass:      0xFF
bInterfaceSubClass:   0xFF
bInterfaceProtocol:   0xFF
iInterface:           0x02
0x0409: "Quad RS232-HS"
0x0409: "Quad RS232-HS"
0x0409: "Quad RS232-HS"
0x0409: "Quad RS232-HS"
0x0409: "Quad RS232-HS"

Endpoint Descriptor:
bEndpointAddress:     0x85  IN
Transfer Type:        Bulk
wMaxPacketSize:     0x0200 (512)
bInterval:            0x00

Endpoint Descriptor:
bEndpointAddress:     0x06  OUT
Transfer Type:        Bulk
wMaxPacketSize:     0x0200 (512)
bInterval:            0x00

Interface Descriptor:
bInterfaceNumber:     0x03
bAlternateSetting:    0x00
bNumEndpoints:        0x02
bInterfaceClass:      0xFF
bInterfaceSubClass:   0xFF
bInterfaceProtocol:   0xFF
iInterface:           0x02
0x0409: "Quad RS232-HS"
0x0409: "Quad RS232-HS"
0x0409: "Quad RS232-HS"
0x0409: "Quad RS232-HS"
0x0409: "Quad RS232-HS"

Endpoint Descriptor:
bEndpointAddress:     0x87  IN
Transfer Type:        Bulk
wMaxPacketSize:     0x0200 (512)
bInterval:            0x00

Endpoint Descriptor:
bEndpointAddress:     0x08  OUT
Transfer Type:        Bulk
wMaxPacketSize:     0x0200 (512)
bInterval:            0x00


Template is:

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<FT_EEPROM>
  <Chip_Details>
    <Type>FT4232H</Type>
  </Chip_Details>
  <USB_Device_Descriptor>
    <VID_PID>1</VID_PID>
    <idVendor>0403</idVendor>
    <idProduct>[code]
6012</idProduct>
    <bcdUSB>USB 2.0</bcdUSB>
  </USB_Device_Descriptor>
  <USB_Config_Descriptor>
    <bmAttributes>
      <RemoteWakeupEnabled>false</RemoteWakeupEnabled>
      <SelfPowered>false</SelfPowered>
      <BusPowered>true</BusPowered>
    </bmAttributes>
    <IOpullDown>false</IOpullDown>
    <MaxPower>100</MaxPower>
  </USB_Config_Descriptor>
  <USB_String_Descriptors>
    <Manufacturer>FTDI-a</Manufacturer>
    <Product_Description>USB Serial Converter x4</Product_Description>
    <SerialNumber_Enabled>true</SerialNumber_Enabled>
    <SerialNumber />
    <SerialNumberPrefix>33</SerialNumberPrefix>
    <SerialNumber_AutoGenerate>true</SerialNumber_AutoGenerate>
  </USB_String_Descriptors>
  <Hardware_Specific>
    <TPRDRV>0</TPRDRV>
    <Port_A>
      <VCP>true</VCP>
      <D2XX>false</D2XX>
      <RI_RS485>false</RI_RS485>
    </Port_A>
    <Port_B>
      <VCP>true</VCP>
      <D2XX>false</D2XX>
      <RI_RS485>false</RI_RS485>
    </Port_B>
    <Port_C>
      <VCP>true</VCP>
      <D2XX>false</D2XX>
      <RI_RS485>false</RI_RS485>
    </Port_C>
    <Port_D>
      <VCP>true</VCP>
      <D2XX>false</D2XX>
      <RI_RS485>false</RI_RS485>
    </Port_D>
    <IO_Pins>
      <Group_A>
        <SlowSlew>false</SlowSlew>
        <Schmitt>false</Schmitt>
        <Drive>4mA</Drive>
      </Group_A>
      <Group_B>
        <SlowSlew>false</SlowSlew>
        <Schmitt>false</Schmitt>
        <Drive>4mA</Drive>
      </Group_B>
      <Group_C>
        <SlowSlew>false</SlowSlew>
        <Schmitt>false</Schmitt>
        <Drive>4mA</Drive>
      </Group_C>
      <Group_D>
        <SlowSlew>false</SlowSlew>
        <Schmitt>false</Schmitt>
        <Drive>4mA</Drive>
      </Group_D>
    </IO_Pins>
  </Hardware_Specific>
</FT_EEPROM>[/code]


lsusb:
Bus 001 Device 026: ID 0403:6011 Future Technology Devices International, Ltd FT4232H Quad HS USB-UART/FIFO IC
Bus 001 Device 025: ID 0403:6011 Future Technology Devices International, Ltd FT4232H Quad HS USB-UART/FIFO IC



Thanks for you help