AnsweredAssumed Answered

I2C Write Error

Question asked by gopalakrishnan on Nov 17, 2011
Latest reply on Nov 29, 2011 by gopalakrishnan

Hi all,


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


I  used 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);


Its working fine.But sometime after Power off and Power on , I am getting I2C write error.Is there anything I have missed?


Here is my code flow..


I2C_DevDriv_ID = open("/dev/i2c-0",O_RDWR)  // once

ioctl(I2C_DevDriv_ID,I2C_SLAVE,(long) RegMapAddr)



I have configured i2c dev as module.


Could anyone give directions?




Thanks in advance


Krish J