cancel
Showing results for 
Search instead for 
Did you mean: 

Initialization error using STM32F4 with IMU by Bosch (BMI160)

marsupilami
Associate II

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.

1 REPLY 1

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..