FTDI Community

Please login or register.

Login with username, password and session length.
Advanced Search  

News:

Welcome to the FTDI Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ FTDI Support


New Bridgetek Community is now open

Please note that we have created the Bridgetek Community to discuss all Bridgetek products e.g. EVE, MCU.

Please follow this link and create a new user account to get started.

Bridgetek Community

Author Topic: Reading 24LC256 EEPROM behind a FT2232D with I2C  (Read 831 times)

axxel95

  • Newbie
  • *
  • Posts: 1
    • View Profile
Reading 24LC256 EEPROM behind a FT2232D with I2C
« on: April 10, 2024, 02:00:28 AM »

Hi everybody

I'm trying to read an external I2C 24LC256 eeprom content using a FT2232D connected to the computer with USB
I have a very old (2007) c++ application that works and I can see the signals with a logic analyser (az delivery + saelae)

But when I try to do it with a new c# code, it fails. Here is my code to read 32 bytes

using Iot.Device.Ft232H;
using Iot.Device.FtCommon;
using System.Device.I2c;
....
Ft232HDevice ft232h = new Ft232HDevice(FtCommon.GetDevices()[0]);
I2cConnectionSettings i2cSettings = new I2cConnectionSettings(0, 0xA0);
I2cDevice i2cDevice = ft232h.CreateI2cDevice(i2cSettings);
byte[] b = new byte[32];
i2cDevice.WriteByte(0);
i2cDevice.WriteByte(0);
i2cDevice.Read(b);
Console.WriteLine(BitConverter.ToString(b));


When I look the logic analyser, there is no signal between the FT2232D and the EEPROM
It would be great if someone could give me any idea to fix this...
Thanks
« Last Edit: April 10, 2024, 08:26:17 AM by axxel95 »
Logged