This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2650EM-4XS-RD: M41T62 I2C controller read issue

Part Number: CC2650EM-4XS-RD
Other Parts Discussed in Thread: CC2650, TIMAC


We're using TI CC2650 Wireless MCU integrated with M41T62 RTC on DIO 0 and 1 (connected to I2C SDA and SCL with driver interface initialized appropriately using HwAttr table). 

We could implement the I2C transaction structure with I2C_transfer returning TRUE for both write and read transactions. But, the read buffer is 0 irrespective of what is written. Please help.

TIMAC ver: 1.5.2  & IAR Workbench IDE

Code snippet:

i2cTrans.writeCount = 2;
i2cTrans.writeBuf = txBuf;
i2cTrans.readCount = 0;
i2cTrans.readBuf = rxBuf;
i2cTrans.slaveAddress = 0x68;

i2c_ret1 = I2C_transfer(i2c, &i2cTrans);

i2cTrans.writeCount = 1;
i2cTrans.writeBuf = txBuf;
i2cTrans.readCount = 2;

i2cTrans.readBuf = rxBuf;

i2c_ret2 = I2C_transfer(i2c, &i2cTrans);