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.

Use compdcm_mpu9150.c example with a MPU9250 (EK-TM4C1294XL)

Hello,


I am trying to use the  compdcm_mpu9150.c  that comes in the ek-tm4c1294xl-boostxl-senshub folder (TivaWare_C_Series-2.1.2.111) with a MPU9250 instead of a MPU9150. I looked at the registers map of each module and they are almost the same, so I assumed I could use the project as it is without changing the libraries. I used 3.3k pull up resistors in the SDA/SCL lines (the Sensor Hub board does this when connecting it to J1&J2) and also connected AD0 to ground to set the module I2C address to 0x68. The problem is that I do not receive any data and the program stops working when reaching this line:  MPU9150AppI2CWait(__FILE__, __LINE__);. Also the following error appears: Error 3 - I2CM_STATUS_ARB_LOST

I want to know if it is possible to fix this problem and use the MPU9250 with these code,

Regards,

Joana