Initialization error using STM32F4 with IMU by Bosch (BMI160)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-03-27 10:48 AM
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.
- Labels:
-
STM32F4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-03-27 10:57 AM
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.
Up vote any posts that you find helpful, it shows what's working..
