jrowberg / i2cdevlib

I2C device library collection for AVR/Arduino or other C++-based MCUs
http://www.i2cdevlib.com
3.95k stars 7.51k forks source link

MPU6050 DMP support for STM32 #458

Open BronantheBrobarian opened 5 years ago

BronantheBrobarian commented 5 years ago

Does anyone have an idea about when the STM32 lib will support DMP? Is it under development currently? Any information is greatly appreciated Thank you

Pluscrafter commented 5 years ago

I have an working example with the STM32 HAL library(created with CubeMX). I'll post the code this evening you just have to change the spi port and the pins for the library. It DMP works but the code is a little tidy.

Pluscrafter commented 5 years ago

https://github.com/Pluscrafter/i2cdevlib/tree/master/STM32_HAL/Nucleo-144F722ZE The KeilMDK isn't a good alternative because you have to give your data to download.

BronantheBrobarian commented 5 years ago

Hi, thanks for the reply! Would really appreciate taking a look at the code. I don't think your link is working though. I am using the Sparkfun Pro nRF52840 mini dev board and I wanted to use the DMP on the MPU6050.

Pluscrafter commented 5 years ago

New link

https://github.com/Pluscrafter/i2cdevlib/tree/master/STM32_HAL/Nucleo-144F722ZE

I'm using a Nucleo F722ZE board.

josb86 commented 4 years ago

New link

https://github.com/Pluscrafter/i2cdevlib/tree/master/STM32_HAL/Nucleo-144F722ZE

I'm using a Nucleo F722ZE board.

Hi, I need you help whhen I build the project in stm32CubeIde, this show 2 errors, the frist is:

Description Resource Path Location Type fatal error: MPU6050_.h: No such file or directory stm32f7xx_it.cpp /Nucleo-144F722ZE/Src line 43 C/C++ Problem

Description Resource Path Location Type make: *** [Src/subdir.mk:66: Src/stm32f7xx_it.o] Error 1 Nucleo-144F722ZE C/C++ Problem

Then I change #include "MPU6050_.h" for #include "MPU6050.h" in stm32f7xxit.cpp

and build again and get another error:

Description Resource Path Location Type 'Sensors' has not been declared stm32f7xx_it.cpp /Nucleo-144F722ZE/Src line 231 C/C++ Problem

if(HAL_GPIO_ReadPin(GPIOC,GPIO_PIN_6)){ // @suppress("Invalid arguments") // @suppress("Symbol is not resolved") Sensors::MPU6050::dataRDY = true; }

What is worng? I need run this on a nucleo-f746ZG.