Jump to content
I2Cdevlib Forums

Recommended Posts

Hi All,

I am trying to operate the MPU6050 on nucleo-STM32f446re,

everything works just fine with the raw data, i get values for the a_x,a_y,a_z,g_x,g_y,g_z.

When i try to initialize the DMP exactly as written in the Arduino library, the initialization passes :

    if (MPU6050_writeProgMemoryBlock(dmpMemory, MPU6050_DMP_CODE_SIZE)) {
        if (MPU6050_writeProgDMPConfigurationSet(dmpConfig, MPU6050_DMP_CONFIG_SIZE)) {

the I2C bus hangs during the call for - 

getFIFOBytes(fifoBuffer, fifoCount);

 

After the BUS halts the only thing that helps is to switch the power to the device, probably related to the DMP error halt.

tried to lower the clock to 100Khz, change the rate, change the register - 0x02,   0x16,   0x02,   0x00, #0x01#, None of them helped.

Someone maybe had the same issues?

 

 

Appreciate your help,

Itamar

 

 

 

Link to comment
Share on other sites

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...