With reference to submitted query subject : "Porting Embedded MotionDriver 6.12 to CC2640" I have a few more questions:
1. Some of the I2C writes/reads in the mpi_init code of EMD drivers are being done on the reserved bit. eg following code snippet from mpu_init is writing on reserved bits of accel config register:
/* MPU6500 shares 4kB of memory between the DMP and the FIFO. Since the
* first 3kB are needed by the DMP, we'll use the last 1kB for the FIFO.
*/
data[0] = BIT_FIFO_SIZE_1024 | 0x8;
if (i2c_write(st.hw->addr, st.reg->accel_cfg2, 1, data))
return -1;
Is it possible to share the document of the DMP related register bits and its functionality. MPU RM talks about "Programming Sequence for DMP Hardware Functions" which is not available with the Driver documents.
2. Is it possible to retain the DMP memory contents (3K image that is flashed in DMP memory), while the MPU goes in Sleep/Standby state.