2009-11-12 07:40:09     i2c problem

Document created by Aaronwu Employee on Aug 19, 2013
Version 1Show Document
  • View in full screen mode

2009-11-12 07:40:09     i2c problem

Daniele Pagani (ITALY)

Message: 82312   

 

Dear sirs,

 

I've a BF537 custom board, with uClinux 2009R1-RC6.

 

The board has a Atmel AT24C1024B Two-wire serial eeprom.

 

I enable the I2C and then I develop a small application in order to test the situation.

 

The application is i2c.c

 

Then, I know that in address 2048 I've a byte with value 0x00.

 

Typically I read the right value, but in some situation the value is 0xFF.

 

So, I've connected the oscilloscope and I see a strange situation.

 

When I read 0xFF, I see that Blackfin sends only two bytes and not three bytes.

 

I've no error from functions ioctl, write and read.

 

What could be the reason? How can I solve the problem?

 

Best regards,

 

Daniele.

 

(In attach:

 

- i2c.c test application

 

- wrong.jpg, right.jpg images from oscilloscope

 

- show.txt  serial port terminal interface

 

)

 

right.JPG

wrong.jpg

i2c.c

show.txt

i2c-dev.h

Attachments

Outcomes