2011-10-20 07:58:02     I2C transfer time out

2011-10-20 07:58:02     I2C transfer time out

gopal krishnan (INDIA)

Message: 104046   

Hi all,

  I'm working with 2010R1 toolchain and distribution in BF527 custom board.

  I'm using below APIs for I2C Read &Write communication from the user space.

  __s32 i2c_smbus_read_byte_data(int file, __u8 command);

  __s32 i2c_smbus_write_byte_data(int file, __u8 command, __u8 value);

  It's working fine,

But in the application framework after sport (enabling both RX & TX) configuration initialized,

i am getting "i2c i2c-0: smbus transfer timeout" often.

  Please could anyone give directions...

Thanks in advance

krish J

QuoteReplyEditDelete

2011-10-20 23:14:55     Re: I2C transfer time out

Sonic Zhang (CHINA)

Message: 104052   

Which uClinux-dist version do you use? 2010R1-RC5? There are some bug fixing for i2c-bfin-twi.c since that release. Please checkout the latest i2c-bfin-twi.c driver from 2010R1 branch in kernel SVN repository.

QuoteReplyEditDelete

2011-10-21 00:10:57     Re: I2C transfer time out

gopal krishnan (INDIA)

Message: 104053   

Hi Sonic Zhang,

                   Thank you for the reply..But  we could not find the i2c-bfin-twi.c ("linux-2.6.x/drivers/i2c/busses/i2c-bfin-twi.c") file in

the following path

"https://blackfin.uclinux.org/gf/project/uclinux-dist/scmsvn/?action=browse&path=%2Fbranches%2F2010R1%2F"

so could you please provide some addtional details to find this file and solve this issue.

thanks  in  advance,

Krish J

QuoteReplyEditDelete

2011-10-21 04:51:49     Re: I2C transfer time out

Sonic Zhang (CHINA)

Message: 104068   

https://blackfin.uclinux.org/git/?p=linux-kernel;a=blob;f=drivers/i2c/busses/i2c-bfin-twi.c;h=2e140e4502a5f8dbea85de74fac1d463cf963b95;hb=refs/heads/2010R1

Update you kernel svn to 2010R1 branch head please.

QuoteReplyEditDelete

2011-10-21 10:48:49     Re: I2C transfer time out

gopal krishnan (INDIA)

Message: 104079   

Hi Sonic Zhang,

                           Thanks. I replaced the i2c-bfin-twi.c with the latest i2c-bfin-twi.c file.Now I2C is working fine, there is no time out error.Thanks for your directions..

with Regards,

Krish J

  • Created
Was this helpful?

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.