Other Parts Discussed in Thread: CC2650
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.
Below is the code which I have written to read temperature value from register
i2cStart();
i2cTx(I2C_OP_WRITE | Sensor_I2C_ADDR);
i2cTx(Temp_Reg_Address);
fwDelayUs(10000, FW_DELAY_RANGE_10_MS);
if (state.i2cStatus == 0x0000) {
i2cRepeatedStart();
i2cTx(I2C_OP_READ | Sensor_I2C_ADDR);
i2cRxNack(output.humidityval);
}
i2cStop();
This is the code written in Execution Code field of sensor controller studio.
Has anyone faced such issues?
Please advice.
Thanks.