Jump to content
I2Cdevlib Forums

Bug in MPU6050_DMP Code? Lockup Problems fixed


Recommended Posts

I tried using the demo code on an 8MHz pro mini board and had continuous problems with random lockups. I think there is a bug in the MPU6050_DMP.INO file.

 

There is a line with the comment

     "otherwise, check for DMP ready interrupt"

and then

    "else if (mpuIntStatus & 0x02)"

 

According to the invensense data sheet, the data ready interrupt is on bit 0 and bit 1 is undefined. Don't know if he was using some undocumented feature in in the MPU-6050 or if this was just a typo in the code,  but changing the "else if" from 0x02 to 0x01 seemed to fix all my lockup problems.

 

 

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...