Hi
In my current board having OMAPL138 Iam facing problem for I2C write
i have initialize pin mux 4 for I2C0 signals
Iam using the same driver API's from LogicPd experimeter for I2C
My code looks like this
I2C_init(I2C0, I2C_CLK_100K);
i2c_data[0] = 0x01;
i2c_data[1] = 0x02;
ret = I2C_write(I2C0, 0x90, i2c_data, 1, 0x1);
But the below condition is always satisfied in I2C code ie ICXRDY is always 0 after i write a data in register
if (cnt++ > I2C_TIMEOUT)
{
// timed out waiting for data...reinit and return error.
I2C_init(i2c, g_clock_rate);
return (ERR_TIMEOUT);
}
so the I2C gets reinit everytime.. Kindly suggest me what could be issue
Regards
Vijayabharathi