I use BMI160 IMU sensor with STM32 Nucleo. My accel and gyro data are always the same value, they do not change. I also use void update(); function but it didn't work. How can I solve it?
You could refer BMI160 example code on github, check if your code is correct.https://github.com/BoschSensortec/BMI160_driver/tree/master/examples/read_sensor_data
I referred that example code actually, but I cannot solve it. I still have the same problem.
First you should ensure your hardware is ok.
I upload attached BMI160 example for your reference.