ShanGlor / INAV-Blackpill-Flight-Controller

INAV/Betaflight Firmwares for STM32F411 (Blackpill) Flight Controller
Other
18 stars 2 forks source link

MPU6050 with INAV 5.1.0 not booting and connecting to inav configurator #5

Open NilsLab opened 6 months ago

NilsLab commented 6 months ago

MPU6050 with INAV 5.1.0 not booting and connecting to inav configurator I am facing an issue with the MPU6050 build with Inav 5.1.0 only the following changes are done for 5.1.0

  1. CMakeLists.txt target_stm32f411xe(STM32F411CE HSE_MHZ 25)
  2. updated src/main/target/system_stm32f4xx.c
    -    #if HSE_VALUE == 24000000
    +    #if HSE_VALUE == 25000000
    +        #define PLL_M   25
    +    #elif HSE_VALUE == 24000000

    If I removed the MPU6050 definition from the target.h board is booting fine

    #define USE_IMU_MPU6050
    #define IMU_MPU6050_ALIGN CW0_DEG
    #define MPU6050_I2C_BUS BUS_I2C1

Can you suggest what might be missing on inav5.1.0 to get MPU6050 working?

3258023215 commented 2 months ago

thanks