libftdi Archives

Subject: Re: Reading/Writing FT4232 EEPROM

From: Ori Idan <ori@xxxxxxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Thu, 20 Jun 2013 18:00:32 +0300



On Thu, Jun 20, 2013 at 5:49 PM, Anders Larsen <al@xxxxxxxxxxx> wrote:
Hi,


On 2013-06-20 15:47, Ori Idan wrote:
On Thu, Jun 20, 2013 at 3:18 PM, Anders Larsen <al@xxxxxxxxxxx> wrote:

> On 2013-06-20 13:01, Ori Idan wrote:
>
>> Where do I find the HEAD of ftdi_eeprom?
>> I tried developer.intra2net..com and all I could find was sources of
>> libftdi, after compilation it gave me ftdi_eeprom ver. 0.13
>>
>> So how to I find the right sources and finally be able to read and write
>> the EEPROM?
>>
>
> in HEAD (and 1.0) ftdi_eeprom is included in the libftdi package.
>
> The download page is:
>         http://www.intra2net.com/en/**developer/libftdi/download.php<http://www.intra2net.com/en/developer/libftdi/download.php>

>
> the source package of 1.0 is:
>         http://www.intra2net.com/en/**developer/libftdi/download/**
> libftdi1-1.0.tar.bz2<http://www.intra2net.com/en/developer/libftdi/download/libftdi1-1.0.tar.bz2>

>
> and you can even follow the HEAD development in Git here:
>         http://developer.intra2net.**com/git/?p=libftdi;a=summary<http://developer.intra2net.com/git/?p=libftdi;a=summary>

>
> This gives me version 0.17 of ftdi_eeprom while the Ubuntu system by
default gives me version 0.3

correct, ftdi_eeprom 1.0 indeed presents itself as 0.17 ... (perhaps we should update the version number ;-)


I tried it anyway and it does not work as well.

To program the larger EEPROM of the FT4232 you must specify
        eeprom_type=0x56
in the configuration file of ftdi_eeprom.


I am probably doing something wrong.

As we cannot see what you are doing, perhaps you could post the content of your ftdi_eeprom configuration file?

Thank you, it still does not work.
I use the command: sudo ftdi_eeprom --read-eeprom example.conf
I get EEPROM size: -1
Checksum Error: aaaa 0000
Malloc failed, aborting
FTDI close: 0

I used the following configuration:

vendor_id=0x0403 # Vendor ID
product_id=0x6011 # Product ID
eeprom_type=0x56

max_power=0 # Max. power consumption: value * 2 mA. Use 0 if self_powered = true.

###########
# Strings #
########### 
manufacturer="LiveU" # Manufacturer
product="USB Serial Converter" # Product
serial="08-15" # Serial

###########
# Options #
###########
self_powered=true # Turn this off for bus powered
remote_wakeup=false # Turn this on for remote wakeup feature
use_serial=true # Use the serial number string

# Normally out don't have to change one of these flags
#BM_type_chip=true # Newer chips are all BM type
in_is_isochronous=false # In Endpoint is Isochronous
out_is_isochronous=false # Out Endpoint is Isochronous
suspend_pull_downs=false # Enable suspend pull downs for lower power
change_usb_version=false # Change USB Version
usb_version=0x0200 # Only used when change_usb_version is enabled

########
# Misc #
########

filename="eeprom.new" # Filename, leave empty to skip file writing


-- 
Ori Idan



libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx


Current Thread