Skip to main content
Visitor II
March 27, 2022
Question

Initialization error using STM32F4 with IMU by Bosch (BMI160)

  • March 27, 2022
  • 1 reply
  • 1300 views

Hi,

I use STM32F4 with BMI160. But i have a problem. I cannot initiate BMI160 so I can not get gyro and accel data. You can see here my init functions:

"init_sensor_interface();

bmi160_init(&bmi160dev);

init_bmi160_sensor_driver_interface();"

When i write, i get new error: They are indefined references. I also get "BMI160 initialization fail!" message from my serial screen because "rslt == BMI160_OK" is not true. If you have any idea, please share with me. I couldn't fix it.

Thanks.

    This topic has been closed for replies.

    1 reply

    Graduate II
    March 27, 2022

    Likely to be entirely unrelated to the code shown. Start at the lowest level code, and work upward.

    Make sure the clocks, pins, and interfaces are set up properly.

    Check that the I2C or SPI interface routines are working.