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
I have configured i2c dev as module.
Could anyone give directions?
Thanks in advance