Skip to content

I2C does not send correct data #319

Closed
@ghost

Description

Details about Problem

When writing to an eeprom (I2C device), no data is written (resulting in no data read in this case).
The SDA line does not show any activity.

Quail firmware : preview617
Worked before? Yes, but can't remember which firmware version was ok.

Detailed repro steps so we can see the same problem

The following code was working "before" and is currently working as is on the same board with TinyCLR.

public override void ReadData(Int32 address, Byte[] data, Int32 index, Int32 count)
{
  _eeprom.Write(new[] { (Byte)(address >> 8), (Byte)(address & 0xFF) });
  Thread.Sleep(5);
  var buffer = new Byte[count];
  _eeprom.Read(buffer);
  Array.Copy(buffer, 0, data, index, count);
}

Screenshot (if applicable/relevant)

Screenshot using nanoFramework :
image

Screenshot using TinyCLR :
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions