Discussion:
Reading/Writing FT4232 EEPROM
Ori Idan
2013-05-26 06:54:14 UTC
Permalink
I have a FT4232 mini module and I want to read/write it's EEPROM.
I tried the utility ftdi_eeprom (on Ubuntu 12.10)
It gave me an error on product_id so I changed it to 0x6011
It then gave me an error on BM_type_chip I commented out this line

I then tried to write the EEPROM it looked like it did but when reading the
EEPROM back I get Checksum Error: 84c1 0000

It seems that ftdi_eeprom is not compatible with FT4232

How do I write the FT4232 EEPROM on Linux?
--
Ori Idan


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+***@developer.intra2net.com
Thomas Jarosch
2013-05-28 08:25:53 UTC
Permalink
Hi Ori,
Post by Ori Idan
I have a FT4232 mini module and I want to read/write it's EEPROM.
I tried the utility ftdi_eeprom (on Ubuntu 12.10)
It gave me an error on product_id so I changed it to 0x6011
It then gave me an error on BM_type_chip I commented out this line
I then tried to write the EEPROM it looked like it did but when reading
the EEPROM back I get Checksum Error: 84c1 0000
It seems that ftdi_eeprom is not compatible with FT4232
How do I write the FT4232 EEPROM on Linux?
which version of ftdi_eeprom does Ubuntu 12.10 ship?

You could give the git HEAD version a try, it _should_ work.

Thomas


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+***@developer.intra2net.com
Ori Idan
2013-05-28 11:56:33 UTC
Permalink
How do I know the version shipped with Ubuntu?
--
Ori Idan



On Tue, May 28, 2013 at 11:25 AM, Thomas Jarosch <
Post by Thomas Jarosch
Hi Ori,
Post by Ori Idan
I have a FT4232 mini module and I want to read/write it's EEPROM.
I tried the utility ftdi_eeprom (on Ubuntu 12.10)
It gave me an error on product_id so I changed it to 0x6011
It then gave me an error on BM_type_chip I commented out this line
I then tried to write the EEPROM it looked like it did but when reading
the EEPROM back I get Checksum Error: 84c1 0000
It seems that ftdi_eeprom is not compatible with FT4232
How do I write the FT4232 EEPROM on Linux?
which version of ftdi_eeprom does Ubuntu 12.10 ship?
You could give the git HEAD version a try, it _should_ work.
Thomas
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+***@developer.intra2net.com
Uffe Jakobsen
2013-05-28 12:03:09 UTC
Permalink
Post by Ori Idan
How do I know the version shipped with Ubuntu?
Look up "libftdi" in your package manager GUI...

OR

do something like this from a terminal:

# dpkg -l | grep -i ftdi

My Ubuntu 12.10 reports libftdi as version 0.20

/Uffe





--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+***@developer.intra2net.com
Ori Idan
2013-05-28 12:29:59 UTC
Permalink
Post by Uffe Jakobsen
Post by Ori Idan
How do I know the version shipped with Ubuntu?
Look up "libftdi" in your package manager GUI...
OR
# dpkg -l | grep -i ftdi
My Ubuntu 12.10 reports libftdi as version 0.20
Here is what I got:
dpkg -l | grep -i ftdi
ii ftdi-eeprom 0.3-2
i386 Tool for reading/erasing/flashing FTDI
USB chip eeproms
ii libftdi-dev 0.20-1
i386 Development files for libftdi
ii libftdi1:i386 0.20-1
i386 Library to control and program the
FTDI USB controller
--
Ori Idan


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+***@developer.intra2net.com
Uffe Jakobsen
2013-05-28 12:41:15 UTC
Permalink
Post by Ori Idan
How do I know the version shipped with Ubuntu?
Look up "libftdi" in your package manager GUI...
OR
# dpkg -l | grep -i ftdi
My Ubuntu 12.10 reports libftdi as version 0.20
dpkg -l | grep -i ftdi
ii ftdi-eeprom 0.3-2
i386 Tool for
reading/erasing/flashing FTDI USB chip eeproms
ii libftdi-dev 0.20-1
i386 Development files for libftdi
ii libftdi1:i386 0.20-1
i386 Library to control and program
the FTDI USB controller
The output shows that you are running libftdi version 0.20 on a 32bit
platform (i386)

PS: I haven't followed your conversation deeply on the list but it
should be fine - if you are aiming for the functionality in the libftdi
version 0.x series releases.
If you need something newer eg libftdi 1.x functionality - you need to
build the library yourself from the ftdi github trunk.

/Uffe





--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+***@developer.intra2net.com
Ori Idan
2013-05-28 17:12:46 UTC
Permalink
Post by Uffe Jakobsen
Post by Ori Idan
How do I know the version shipped with Ubuntu?
Look up "libftdi" in your package manager GUI...
OR
# dpkg -l | grep -i ftdi
My Ubuntu 12.10 reports libftdi as version 0.20
dpkg -l | grep -i ftdi
ii ftdi-eeprom 0.3-2
i386 Tool for
reading/erasing/flashing FTDI USB chip eeproms
ii libftdi-dev 0.20-1
i386 Development files for libftdi
ii libftdi1:i386 0.20-1
i386 Library to control and program
the FTDI USB controller
The output shows that you are running libftdi version 0.20 on a 32bit
platform (i386)
PS: I haven't followed your conversation deeply on the list but it should
be fine - if you are aiming for the functionality in the libftdi version
0.x series releases.
If you need something newer eg libftdi 1.x functionality - you need to
build the library yourself from the ftdi github trunk.
I have to program the EEPROM and tried using ftdi_eeprom but it did not
work.
That's what started this whole conversation.
--
Ori Idan
Post by Uffe Jakobsen
/Uffe
--
libftdi - see http://www.intra2net.com/en/**developer/libftdi<http://www.intra2net.com/en/developer/libftdi>for details.
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+***@developer.intra2net.com
Ori Idan
2013-06-10 11:33:49 UTC
Permalink
I still did not find a solution how to program EEPROM on FT4232
I am using Ubuntu 12.10 with libftdi1 0.20
--
Ori Idan
Post by Ori Idan
Post by Uffe Jakobsen
Post by Ori Idan
How do I know the version shipped with Ubuntu?
Look up "libftdi" in your package manager GUI...
OR
# dpkg -l | grep -i ftdi
My Ubuntu 12.10 reports libftdi as version 0.20
dpkg -l | grep -i ftdi
ii ftdi-eeprom 0.3-2
i386 Tool for
reading/erasing/flashing FTDI USB chip eeproms
ii libftdi-dev 0.20-1
i386 Development files for libftdi
ii libftdi1:i386 0.20-1
i386 Library to control and program
the FTDI USB controller
The output shows that you are running libftdi version 0.20 on a 32bit
platform (i386)
PS: I haven't followed your conversation deeply on the list but it should
be fine - if you are aiming for the functionality in the libftdi version
0.x series releases.
If you need something newer eg libftdi 1.x functionality - you need to
build the library yourself from the ftdi github trunk.
I have to program the EEPROM and tried using ftdi_eeprom but it did not
work.
That's what started this whole conversation.
--
Ori Idan
Post by Uffe Jakobsen
/Uffe
--
libftdi - see http://www.intra2net.com/en/**developer/libftdi<http://www.intra2net.com/en/developer/libftdi>for details.
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+***@developer.intra2net.com
Andreas Helmcke
2013-06-18 08:23:20 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I still did not find a solution how to program EEPROM on FT4232 I am using Ubuntu 12.10 with libftdi1 0.20
Having had the same problem I have modified the eeprom example (see attached program). For my setting it is sufficient
to read and write binary data, since I only have to set a known configuration.
To get the binary data I used the windows configuration program from ftdichip
(http://www.ftdichip.com/Support/Utilities.htm#FT_Prog) to program the eeprom and read it using eeprom-set on linux.

Hope that helps

Greetings
Andreas

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlHAGO8ACgkQDVaV4kk68F8s9gCgrOo4ze0R0EKWTSQELF3/CckV
TD0AoIAzbaRIJxDZHhZtOtfBDweDN5Sz
=GAB9
-----END PGP SIGNATURE-----


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+***@developer.intra2net.com
Anders Larsen
2013-06-18 11:13:35 UTC
Permalink
Hi,
Post by Ori Idan
Post by Ori Idan
I have a FT4232 mini module and I want to read/write it's EEPROM.
I tried the utility ftdi_eeprom (on Ubuntu 12.10)
It gave me an error on product_id so I changed it to 0x6011
It then gave me an error on BM_type_chip I commented out this line
I then tried to write the EEPROM it looked like it did but when
reading
Post by Ori Idan
the EEPROM back I get Checksum Error: 84c1 0000
It seems that ftdi_eeprom is not compatible with FT4232
How do I write the FT4232 EEPROM on Linux?
which version of ftdi_eeprom does Ubuntu 12.10 ship?
You could give the git HEAD version a try, it _should_ work.
the HEAD version indeed works; FT4232 support was added last year.

You can use ftdi_eeprom from HEAD (or v1.0) to program the chip
and still use 0.19/0.20 from your application as long as the application
doesn't use any ftdi*eeprom*() function.

(sorry for joining the discussion so late - I was away on vacation)

Cheers
Anders
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+***@developer.intra2net.com
Ori Idan
2013-06-20 11:01:32 UTC
Permalink
Post by Anders Larsen
Hi,
Post by Thomas Jarosch
Post by Ori Idan
I have a FT4232 mini module and I want to read/write it's EEPROM.
I tried the utility ftdi_eeprom (on Ubuntu 12.10)
It gave me an error on product_id so I changed it to 0x6011
It then gave me an error on BM_type_chip I commented out this line
I then tried to write the EEPROM it looked like it did but when reading
the EEPROM back I get Checksum Error: 84c1 0000
It seems that ftdi_eeprom is not compatible with FT4232
How do I write the FT4232 EEPROM on Linux?
which version of ftdi_eeprom does Ubuntu 12.10 ship?
You could give the git HEAD version a try, it _should_ work.
the HEAD version indeed works; FT4232 support was added last year.
You can use ftdi_eeprom from HEAD (or v1.0) to program the chip
and still use 0.19/0.20 from your application as long as the application
doesn't use any ftdi*eeprom*() function.
(sorry for joining the discussion so late - I was away on vacation)
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?
--
Ori Idan
Post by Anders Larsen
Cheers
Anders
--
libftdi - see http://www.intra2net.com/en/**developer/libftdi<http://www.intra2net.com/en/developer/libftdi>for details.
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+***@developer.intra2net.com
Anders Larsen
2013-06-20 12:18:52 UTC
Permalink
Hi,
Post by Ori Idan
Post by Anders Larsen
Post by Thomas Jarosch
Post by Ori Idan
I have a FT4232 mini module and I want to read/write it's EEPROM.
I tried the utility ftdi_eeprom (on Ubuntu 12.10)
It gave me an error on product_id so I changed it to 0x6011
It then gave me an error on BM_type_chip I commented out this
line
Post by Anders Larsen
Post by Thomas Jarosch
Post by Ori Idan
I then tried to write the EEPROM it looked like it did but when
reading
Post by Anders Larsen
Post by Thomas Jarosch
Post by Ori Idan
the EEPROM back I get Checksum Error: 84c1 0000
It seems that ftdi_eeprom is not compatible with FT4232
How do I write the FT4232 EEPROM on Linux?
which version of ftdi_eeprom does Ubuntu 12.10 ship?
You could give the git HEAD version a try, it _should_ work.
the HEAD version indeed works; FT4232 support was added last year.
You can use ftdi_eeprom from HEAD (or v1.0) to program the chip
and still use 0.19/0.20 from your application as long as the
application
Post by Anders Larsen
doesn't use any ftdi*eeprom*() function.
(sorry for joining the discussion so late - I was away on vacation)
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

the source package of 1.0 is:

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

HTH
Cheers
Anders
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+***@developer.intra2net.com
Ori Idan
2013-06-20 13:47:03 UTC
Permalink
Post by Anders Larsen
Hi,
Post by Ori Idan
Post by Anders Larsen
Post by Thomas Jarosch
Post by Ori Idan
I have a FT4232 mini module and I want to read/write it's EEPROM.
I tried the utility ftdi_eeprom (on Ubuntu 12.10)
It gave me an error on product_id so I changed it to 0x6011
It then gave me an error on BM_type_chip I commented out this line
I then tried to write the EEPROM it looked like it did but when
reading
Post by Anders Larsen
Post by Thomas Jarosch
Post by Ori Idan
the EEPROM back I get Checksum Error: 84c1 0000
It seems that ftdi_eeprom is not compatible with FT4232
How do I write the FT4232 EEPROM on Linux?
which version of ftdi_eeprom does Ubuntu 12.10 ship?
You could give the git HEAD version a try, it _should_ work.
the HEAD version indeed works; FT4232 support was added last year.
You can use ftdi_eeprom from HEAD (or v1.0) to program the chip
and still use 0.19/0.20 from your application as long as the application
doesn't use any ftdi*eeprom*() function.
(sorry for joining the discussion so late - I was away on vacation)
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.
http://www.intra2net.com/en/**developer/libftdi/download.php<http://www.intra2net.com/en/developer/libftdi/download.php>
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>
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
I tried it anyway and it does not work as well.

I am probably doing something wrong.
--
Ori Idan
Post by Anders Larsen
HTH
Cheers
Anders
--
libftdi - see http://www.intra2net.com/en/**developer/libftdi<http://www.intra2net.com/en/developer/libftdi>for details.
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+***@developer.intra2net.com
Anders Larsen
2013-06-20 14:49:15 UTC
Permalink
Hi,
Post by Anders Larsen
Post by Anders Larsen
Post by Ori Idan
Where do I find the HEAD of ftdi_eeprom?
I tried developer.intra2net..com and all I could find was sources
of
Post by Anders Larsen
Post by Ori Idan
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
Post by Anders Larsen
Post by Ori Idan
the EEPROM?
in HEAD (and 1.0) ftdi_eeprom is included in the libftdi package.
http://www.intra2net.com/en/**developer/libftdi/download.php<http://www.intra2net.com/en/developer/libftdi/download.php>
Post by Anders Larsen
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>
http://developer.intra2net.**com/git/?p=libftdi;a=summary<http://developer.intra2net.com/git/?p=libftdi;a=summary>
Post by Anders Larsen
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 ;-)
Post by Anders Larsen
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.
Post by Anders Larsen
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?

Cheers
Anders
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+***@developer.intra2net.com
Ori Idan
2013-06-20 15:00:32 UTC
Permalink
Post by Anders Larsen
Hi,
Post by Anders Larsen
Post by Ori Idan
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
Post by Anders Larsen
Post by Ori Idan
the EEPROM?
in HEAD (and 1.0) ftdi_eeprom is included in the libftdi package.
http://www.intra2net.com/en/****developer/libftdi/download.php<http://www.intra2net.com/en/**developer/libftdi/download.php>
**<http://www.intra2net.com/en/**developer/libftdi/download.php<http://www.intra2net.com/en/developer/libftdi/download.php>
**>
Post by Anders Larsen
http://www.intra2net.com/en/****developer/libftdi/download/**<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<http://www.intra2net.com/en/developer/libftdi/download/libftdi1-1.0.tar.bz2>
Post by Anders Larsen
http://developer.intra2net.****com/git/?p=libftdi;a=summary<h**
ttp://developer.intra2net.com/**git/?p=libftdi;a=summary<http://developer.intra2net.com/git/?p=libftdi;a=summary>
Post by Anders Larsen
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+***@developer.intra2net.com
Anders Larsen
2013-06-21 08:31:45 UTC
Permalink
Hi,
Post by Ori Idan
Thank you, it still does not work.
I use the command: sudo ftdi_eeprom --read-eeprom example.conf
I get EEPROM size: -1
aah, that means that the EEPROM is erased (all 0xff);
see ftdi_read_eeprom() in ftdi.c: "Guesses size of eeprom ... will not
work with blank eeprom"
Post by Ori Idan
Checksum Error: aaaa 0000
Malloc failed, aborting
these errors follow from EEPROM size being -1
Post by Ori Idan
FTDI close: 0
looks good

Cheers
Anders
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+***@developer.intra2net.com
Ori Idan
2013-06-21 09:36:26 UTC
Permalink
Post by Anders Larsen
Hi,
Post by Ori Idan
Thank you, it still does not work.
I use the command: sudo ftdi_eeprom --read-eeprom example.conf
I get EEPROM size: -1
aah, that means that the EEPROM is erased (all 0xff);
see ftdi_read_eeprom() in ftdi.c: "Guesses size of eeprom ... will not
work with blank eeprom"
If EEPROM is erased, how do I get the Vendor Id and Product Id when doing
lsusb?
--
Ori Idan


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+***@developer.intra2net.com
Anders Larsen
2013-06-21 14:31:42 UTC
Permalink
Hi,
Post by Ori Idan
Post by Anders Larsen
Post by Ori Idan
Thank you, it still does not work.
I use the command: sudo ftdi_eeprom --read-eeprom example.conf
I get EEPROM size: -1
aah, that means that the EEPROM is erased (all 0xff);
see ftdi_read_eeprom() in ftdi.c: "Guesses size of eeprom ... will
not
Post by Anders Larsen
work with blank eeprom"
If EEPROM is erased, how do I get the Vendor Id and Product Id when doing
lsusb?
with an erased EEPROM the FTDI chip falls back to the default
vendor:product (which is 0403:6011)

Cheers
Anders
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+***@developer.intra2net.com
Ori Idan
2013-06-23 06:23:57 UTC
Permalink
Post by Anders Larsen
Hi,
Post by Ori Idan
Post by Anders Larsen
Post by Ori Idan
Thank you, it still does not work.
I use the command: sudo ftdi_eeprom --read-eeprom example.conf
I get EEPROM size: -1
aah, that means that the EEPROM is erased (all 0xff);
see ftdi_read_eeprom() in ftdi.c: "Guesses size of eeprom ... will not
work with blank eeprom"
If EEPROM is erased, how do I get the Vendor Id and Product Id when doing
lsusb?
with an erased EEPROM the FTDI chip falls back to the default
vendor:product (which is 0403:6011)
Assuming my EEPROM is erased, I tried doing flash-eeprom.
The result was even stranger:
Unable to find FTDI devices under given vendor/product id: 0x403/0x6011
Error code: -4 (usb_open() failed)
Retrying with default FTDI pid=0x6001.
Error: device not found

I did lsusb again to make sure the device is connected and got the expected
result:
Bus 001 Device 005: ID 0403:6011 Future Technology Devices International,
Ltd FT4232H Quad HS USB-UART/FIFO IC
--
Ori Idan


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+***@developer.intra2net.com
Anders Larsen
2013-06-23 15:47:54 UTC
Permalink
Hi,
Post by Ori Idan
Post by Anders Larsen
with an erased EEPROM the FTDI chip falls back to the default
vendor:product (which is 0403:6011)
Assuming my EEPROM is erased, I tried doing flash-eeprom.
0x403/0x6011
Error code: -4 (usb_open() failed)
this is indeed strange; that particular error message comes from
ftdi_usb_open_desc_index() in ftdi.c when your device was found by
libusb_get_device_list() but couldn't be opened by libusb_open()
immediately thereafter.

Assuming you didn't forget 'sudo' it looks like a problem with libusb,
outside the scope of libftdi.

Cheers
Anders

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+***@developer.intra2net.com
Ori Idan
2013-06-23 17:36:39 UTC
Permalink
Post by Anders Larsen
Hi,
Post by Ori Idan
Post by Anders Larsen
with an erased EEPROM the FTDI chip falls back to the default
vendor:product (which is 0403:6011)
Assuming my EEPROM is erased, I tried doing flash-eeprom.
Unable to find FTDI devices under given vendor/product id: 0x403/0x6011
Error code: -4 (usb_open() failed)
this is indeed strange; that particular error message comes from
ftdi_usb_open_desc_index() in ftdi.c when your device was found by
libusb_get_device_list() but couldn't be opened by libusb_open()
immediately thereafter.
Assuming you didn't forget 'sudo' it looks like a problem with libusb,
outside the scope of libftdi.
Thank you, it seems the problem was sudo.
Now when I write I get:

FTDI eeprom generator v0.17
(c) Intra2net AG and the libftdi developers <***@intra2net.com>
FTDI read eeprom: 0
EEPROM size: -1
Used eeprom space: 230 bytes
FTDI write eeprom: 0
Writing to file: eeprom.new
FTDI close: 0

When I read I get:
FTDI eeprom generator v0.17
(c) Intra2net AG and the libftdi developers <***@intra2net.com>
FTDI read eeprom: 0
EEPROM size: 256
FTDI close: 0

That seems fine to me.
However after write I see no change in lsusb, I assume the serial number
should be changed, but I see no change so I have no idea if it did write or
not.
--
Ori Idan
Post by Anders Larsen
Cheers
Anders
--
libftdi - see http://www.intra2net.com/en/**developer/libftdi<http://www.intra2net.com/en/developer/libftdi>for details.
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+***@developer.intra2net.com
Xiaofan Chen
2013-06-24 01:44:48 UTC
Permalink
Post by Ori Idan
Thank you, it seems the problem was sudo.
FTDI eeprom generator v0.17
FTDI read eeprom: 0
EEPROM size: -1
Used eeprom space: 230 bytes
FTDI write eeprom: 0
Writing to file: eeprom.new
FTDI close: 0
FTDI eeprom generator v0.17
FTDI read eeprom: 0
EEPROM size: 256
FTDI close: 0
That seems fine to me.
However after write I see no change in lsusb, I assume the serial number
should be changed, but I see no change so I have no idea if it did write or
not.
What if you unplug and plug it back in (to force re-enumeration of
the USB device)?
--
Xiaofan

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