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

Show Posts

You can view here all posts made by this member. Note that you can only see posts made in areas to which you currently have access.

Messages - axxel95

Pages: [1]
1
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

Pages: [1]