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.

CC2640R2F: Sensor controller Studio i2c timeout status always

Part Number: CC2640R2F

Hello,

I'm working on custom made  cc2640r2f sensortag devices with Sensor controller studio 2.0.0.324.

I'm trying to communicate with the temperature sensor via I2C using sensor controller studio and I'm always getting i2cStatus==0x0002(timeout) and not getting the values of the temperature register.

I have a working code for I2C with the help of CCS and BLE 5 stack 1.40 but I want to integrate sensor controlling using sensor controller studio as it has less power consumption.

I working on temperature sensor of silicon labs Si-7006-A20 and I'm not able to do the integration with the I2C.

I have made even the board files for the custom devices but always get error for the i2cStatus=0x0002.

After integrating it CCS multirole project I'm getting i2cstatus sometimes 775 and sometimes 779 and the output data as BDE7 or BDA7 which actually is wrong.

My sensor controller code is as below:

i2cStart();

i2cTx(I2C_OP_WRITE | Sensor_I2C_ADDR); //Sensor_I2C_ADDR=0x0040

i2cTx(Temp_Reg_Address); //Temp_Reg_Address=0x00E5

i2cRepeatedStart();

i2cTx(I2C_OP_READ | Sensor_I2C_ADDR);

i2cRxNack(output.humidityval);

i2cStop();

Please advice.


Thanks.