Other Parts Discussed in Thread: CC2650, CC2650STK
I am trying to use the DMP and FIFO of the mpu 9250
I already managed to initialise the sensor (including uploading the DMP firmware to the mpu-9250) and was able to get fifo reading with some restrictions.
Unfortunaletly I am only able to get fifo reading when the fifo is read directly after initializing, and none of the other sensors is read. Whenever a different sensor is read, I stop being able to read the FIFo.
What I already tried:
- I commented out:
- pin turn off and turn on ( MPU power) PIN_setOutputValue(hGpioPin,Board_MPU_POWER, Board_MPU_POWER_OFF);
- MPU_sleep and wake up sensorMpuSleep()
- After reading all other sensors and it is time to read the fifo again (which I cant), I am able to get the who I am and get the gyro_bias and accel_bias out of the sensor. So the sensor is on and i dont think it is a I2C issue! But the fifo_count value is 0 bytes in this case. I dont think there is overflow as I also reduced the fifo rate so it needs several seconds to overflow.
- after reading all the other sensors, I re-initialised the mpu-9250 and was then able to read the fifo again (but this beats the point as I want to have all the measurements taking place when the cpu is doing something else
I am not sure how the pin interrupt works and whether this has any say in this.
PIN_setInterrupt(hGpioPin, PIN_ID(Board_MPU_INT)|PIN_IRQ_DIS); //found in SensorTag_Mov.c
Maybe power is still being turned off when reading other sensors, but I commented the api that turn power off.
SENSOR_SELECT has nothing to do with it, as I am able to have an I2C connection to read the Who I am, so no bypass issues
Any ideas what I should try next?, I am a beginner and looking forward to make this work!!
