anybody use mpu9250 dmp for arduino or rfduino?i meet a problem

Ho,all. I am doing my final year project which need to use dmp inside mpu9250, the microcontroller i use is Rfduino(basde on Arduino).

i have been working on porting for two weeks, but when i test it , the value of API is always -1, which means I2C function are incorrect. (such as mpu_set_sensors())

but i really can not find the problem. so the attached is the files that i ported, hope you will see that and give me some feedback! thanks a lot, i really need help. (41.1 KB)