This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52832 with MPU9250 using i2c (TWI) on SDK15.2, SD132, Segger Embedded Studio

Hi. 

I'm trying to integrate the MPU9250 with nRF52832 using i2c (TWI) on my nRF52-DK

I have found various libraries but none of them are working on my hardware. All of them have compilation errors and missing files (or parts inside files)

If anyone has made a project integrating these two and using Segger Embedded Studio for compilation and flashing, please give me some advice as to how I can do it on my side too? 

Any help would be appreciated.

Best regards,

Usman

Parents
  • I have found various libraries

    What libraries, exactly?

    Would help if you said what you've tried - so people don't just repeat ones you've already looked at.

    Most of them have compilation errors

    So what about the one(s) that build OK? What testing / debugging / investigation did you do to find out what's going on and, thus, what's wrong?

    Remember that the MPU9250 neither knows nor cares what microcontroller you use - all it sees is the transactions on the I2C bus.

    Therefore key to this is being able to check what's happening on the I2C bus - and verify that it's correct, or see where it's going wrong.

    So do you have an oscilloscope or analyser to see what's happening on the I2C bus?

Reply
  • I have found various libraries

    What libraries, exactly?

    Would help if you said what you've tried - so people don't just repeat ones you've already looked at.

    Most of them have compilation errors

    So what about the one(s) that build OK? What testing / debugging / investigation did you do to find out what's going on and, thus, what's wrong?

    Remember that the MPU9250 neither knows nor cares what microcontroller you use - all it sees is the transactions on the I2C bus.

    Therefore key to this is being able to check what's happening on the I2C bus - and verify that it's correct, or see where it's going wrong.

    So do you have an oscilloscope or analyser to see what's happening on the I2C bus?

Children
Related