Other Parts Discussed in Thread: CC1350, CC2650
I am trying to communicate with an MPU9250 via the sensor controller. I have a gy-91 breakout board that combines a BMP280 and MPU9250 connected to a 2650 launchpad.
I have no trouble reading the BMP280, but on the 2nd i2c transaction with the MPU9250, I get a i2cstatus of 1. I can read the whoami byte from the 9250, but anything after that fails.
Any idea on how to troubleshoot this without a oscilloscope?
i2cStart(); i2cTx(I2C_OP_WRITE | (MPU9250_I2C_ADDR<<1)); i2cTx(MPU9250_WHO_AM_I); //WHO_AM_I is the register for device ID i2cRepeatedStart(); i2cTx(I2C_OP_READ | (MPU9250_I2C_ADDR<<1)); i2cRxAck(output.whoamiMPU9250); i2cStop(); i2cStart(); i2cTx(I2C_OP_WRITE | (MPU9250_I2C_ADDR<<1)); i2cTx(MPU9250_WHO_AM_I); //<<<<<< fails here with i2cstatus on 1 i2cRepeatedStart(); i2cTx(I2C_OP_READ | (MPU9250_I2C_ADDR<<1)); i2cRxAck(output.whoamiMPU9250); i2cStop();